Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / Archived Projects / Re: SVG-based tower defense engine on: 2011-01-26 10:52:25
Quote
I'm wrestling with Batik and inkscape at the moment
Just an advice then, in Inkscape, always use "Save as", and select "SVG (Plain)" as format and not the inkscape svg. Inkscape will complain about loss of information, but these information would not be readable by Batik.

Quote
An interesting thing i saw KevGlass do in Slick2D is use java's default XML reader to read the SVG files as Strings.
Well, I used Batik because I don't want to parse SVG myself and call the drawing primitives accordingly. I'm way too lazy.

Quote
But I guess that because you're rendering the SVG files to images on-the-fly you need batik's rasteriser and therefore all of the jars.
Indeed, but why the hell do I have to include "pdf-transcoder.jar" to my classpath for rasterization Huh??  Angry

Caching the images would imply to select a set of available resolutions, and I want to be as system-agnostic as possible. Wanna play fullscreen on a 768*1024 screen ? possible. Wanna play on a 2K*2K ? possible. I use a fixed set of resolutions for Windowed mode (only 16:9 resolutions), but for fullscreen, I get the available modes directly from the system.
However, downloading the sources of Batik and importing it as an eclipse project would enable me to use the Fatjar addon that will crawl in the code, and create a single jar with all used classes. If batik uses Class.forName(), then I'm doomed. Shocked
2  Games Center / Archived Projects / Re: SVG-based tower defense engine on: 2011-01-26 08:31:44
Quote
How did you do the inkscape integration?
Using batik indeed. However, the batik jars' hell made the download go from 3MB to 17MB.... Maybe I'll try using fatjar one day to shrink batik (if there's no legal issues with that too).
There's a .properties file containing for each sprite the svg file path, and a fixed width (or height) that is the sprite size in full HD (1920*1080). Depending on the chosen resolution, they are rendered in-memory by batik to the right size.

Quote
It actually doesn't look too bad. Are gradients supported? If you throw in some radial gradients it will look a lot nicer. Bezier curves will also spruce it up, they'll make it less square looking and modern.
Thanks, with time I came to like those sprites too, but I guess seeing them so often helped (oh, and the fact that I drew them myself too ^^ ). Everything in SVG that is supported by both Inkscape and Batik can be used for sprites, alpha channel included. I noticed that inkscape bitmap textures (like camouflage) do not work for example (inkscape extension). As said, I'm just a coder, and have no talent/wish/time to do "pretty" graphics.

Quote
Personally i'd have picked Slick2D over GTGE but still if its working for you it should be good enough..
GTGE's development seems stalled ATM, but one or two coders are still working on it, and they are planning an interesting release feature-wise.
What I really liked in GTGE was a very simple integration of OpenGL : they implemented a Graphics2D subclass that implements the usual 2D functions with LWJGL or JOGL calls. I extended the LWJGL one to add additive alpha blending, and a little optimisation when the same sprite is to be rendered a lot of times at different places (particles !)

I'll look at GameJolt and Games4j for JWS version, but I'll keep the .zip release as it lets the user modify everything. Seeing the current game content, if some artist/game designer/level designer want to add stuff, I'll be more than happy.
I don't know if I'll have time to add loads of code to it (working on another game, a much more ambitious project), but if anyone has ideas to turn the engine into a game, I can help.
3  Games Center / Archived Projects / Re: SVG-based tower defense engine on: 2011-01-25 22:58:20
A pair of screenshots



Concerning JWS, I have to google it a little, and find hosting for my files I guess.
For the applet, I don't know how native libs would integrate though.
4  Games Center / Archived Projects / SVG-based tower defense engine on: 2011-01-25 17:17:56
Hi all,

I've written a tower defense engine in Java 6 using the GTGE library as game engine, and LWJGL as rendering engine.
Below are the specs of the engine :

**TECHNICAL**
- LWJGL rendering
- Tested on windows XP and various flavours of Linux (might even try solaris/x86 soon. LWJGL does not work with Solaris/SPARC.. too bad)
- Windowed or fullscreen modes
- Screen resolution & ratio independence
- Little JFC/Swing window at game startup to select resolution and windowed/fullscreen mode
- Full SVG graphics EVEN FONTS (SVG files are rendered in-memory at game startup depending on resolution)
- Black bars are added to top/bottom or left/right when playing fullscreen on non-16:9 screens
- .properties files based game-content (no need to recompile to add/modify levels and tweak towers and enemies; possibility to easily create an add-on system)
- Particles systems (flamethrower and laser beam)

**GAME CONTENT**
- One level featuring 10 waves of enemies
- A clone level to test the multi-level capabilities
- A third level to try out the multi-spawn-points capabilities
- A main menu with level selection and start/quit buttons
- An incredible amount of different enemies (two of them !)
- 4 different towers : Plasma tower (shoots fast and straight); Missile tower (shoots homing missiles); Laser tower (Laser beam with nice VFX); Flame tower (flamethrower)
- Each tower can be upgraded 2 times
- The player starts manually each wave of enemies
- If one of the enemies reaches the end of the level, it's "game over folks" and return to main menu

**MISC. NOTES**
- I drew the sprites myself in Inkscape very quickly, and I suck as CG artist (meh is teh coderz), so they look ugly artistically speaking.
- The game as-is is cheated as the two most powerful towers cost 1$ to build and upgrade (testing purposes) while the weakest one is 50$ to build, 100$ for lv2, and 200$ for lv3. Can be changed in .properties text files.

Basically, anyone able to draw pretty sprites with inkscape, and able to use a text editor, could "skin" the game to their likings, create new enemies, and use those in their own levels.

You can download it as a .zip file here : http://www.mediafire.com/?ymd2a3g8w5jdupx

Once unzipped, click TDV.bat or TDV.sh depending on your OS (Windows, or Linux. Mac users can modify the .sh to have it work on their systems).
If it doesn't work, it probably means that java is not in your PATH. Edit TDV.bat to replace the word java by (for example) "C:\Program Files\Java\jre6\bin\java.exe", keeping the quotes.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (39 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (36 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (49 views)
2014-08-09 21:09:32
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!