TIGSource Forums

Feedback => DevLogs => Topic started by: Jacob_ on August 29, 2010, 11:53:58 AM



Title: EDGE - A Java2D Game Engine
Post by: Jacob_ on August 29, 2010, 11:53:58 AM
My next project is going to be pretty big (might take a year, who knows) so I'm working on a good base for it first. The name stands for Extendable 2D Game Engine, Easy 2D Game Engine, or nothing at all, pick whichever you prefer :) It's designed for side scrolling games, primarily shooters but you could make just about anything.

My plan is to finish the engine, then make a game with it, then possibly release the code for the engine if anyone's interested.

Current features:
-The system is based on maps and entities. Maps and entities made of primitives are saved as text files and can be created without coding; entities can be made dynamic using an EntityBehavior class.
-Embedded physics using JBox2D - boxes and joints are currently implemented
-Textures on objects, can be stretched or tiled
-You can have a unit represent whatever number of pixels you want. However, if you have entities with custom rendering code (like the example player) you'll probably want to choose one and stick with it to avoid performing lots of expensive coordinate transformations every frame.
-Input system - key codes can be binded to actions using a text file, or you can subclass InputProcessor, or access the InputState directly in your game loop
-Very basic GUI, currently movable frames, labels, and buttons only.

Planned stuff:
-Weapons (this is what I'm currently working on, the laser gun in his hand does nothing right now)
-Finish the map editor
-Applet support (I would like to have the same .jar be usable as either an app or an applet)
-Sound (I was hoping to avoid using native libraries if possible, but if the Java sound system isn't adequate I might have to use FMod or OpenAL)
-Graphics effects (lighting, tint, fog, screen shake, etc)
-Particle systems
-Multiplayer

I don't want to post a demo yet since it's not any fun, but here's some screenshots for now.
(http://i38.tinypic.com/34iidg8.jpg)
(http://i34.tinypic.com/120ozo3.jpg)
And for those who like to measure programming progress by amount of code written:
(http://i36.tinypic.com/kdqt5t.jpg)

I'll try to keep this thread updated!


Title: Re: EDGE - A Java2D Game Engine
Post by: maxwell on August 29, 2010, 03:25:30 PM
this will get you sued by that sad old crackpot what'sname, rousing furious indignation amongst indies and catapulting your project to fame...clever :gentleman:

will you post a demo anyway? People around here are pretty good at having fun with not-fun things. Personally I've cultivated so strong a taste for incomplete work that I am no longer able to play finished games.


Title: Re: EDGE - A Java2D Game Engine
Post by: TobiasW on August 29, 2010, 03:30:32 PM
this will get you sued by that sad old crackpot what'sname, rousing furious indignation amongst indies and catapulting your project to fame...clever :gentleman:
And in case you don't know what he's talking about: http://www.tigsource.com/2009/05/29/tim-langdell-the-edge-of-insanity/


Title: Re: EDGE - A Java2D Game Engine
Post by: st33d on August 29, 2010, 06:06:54 PM
Please keep the name.


Title: Re: EDGE - A Java2D Game Engine
Post by: Jacob_ on August 29, 2010, 06:15:43 PM
this will get you sued by that sad old crackpot what'sname, rousing furious indignation amongst indies and catapulting your project to fame...clever :gentleman:

will you post a demo anyway? People around here are pretty good at having fun with not-fun things. Personally I've cultivated so strong a taste for incomplete work that I am no longer able to play finished games.

That article is hilarious, if that guy really wants to sue me to defend a common word I'm not even using commercially I'd love to see the reaction :P

And I'm feeling nice, so here is the demo: http://1scripts.net/EDGE.zip

Entity commands:
add [box name localX localY w h|weld name part1 part2 anchorX anchorY|hinge name part1 part2 anchorX anchorY]
setcolor r g b
setbehavior behaviorClassName
setmainpart mainPartName
setfixedrotation [true|false]
setfixed [true|false]
setcollidable [true|false]
merge part1 part2

Map commands:
mapdata w h gravity
setspawn x y
entity type posX posY
box posX posY sizeX sizeY
setfixed [true|false[
setcolor r g b
settexture textureName tileX tileY
setlayer [0,1,2]

Use A, D, W, to move. The map test.edgemap is loaded when you start the demo. When you click the entity in the file crate.ent is added wherever you clicked the mouse. The laser gun in your hand currently does nothing.


Title: Re: EDGE - A Java2D Game Engine
Post by: pla1207 on September 30, 2010, 02:45:17 AM
hehey that's great !!..funny I'm doing exactly the same thing right NOW !
so far I've also discovered a bug:
If you walk to the wall and jump while keep walking to it, you're climbing up the wall.that behaviour is freaking me out in my own stuff...anyways I'm really happy to see a rebel fighting the dark side :biglaff:


Title: Re: EDGE - A Java2D Game Engine
Post by: tametick on September 30, 2010, 04:03:44 AM
My plan is to finish the engine, then make a game with it

You got the order wrong.