Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Good examples of 2D game engine architechture.  (Read 646 times)
0 Members and 1 Guest are viewing this topic.
Offline phracksipsin

Junior Newbie





« Posted 2013-07-31 20:38:18 »

I was wondering if there were any really good examples of 2D game engines that integrated 2D graphics, AI and collision detection in to the framework. I understand how to implement each of those things individually, and they are well documented, but when it comes to combining these things in to a usable framework I'm stumped.

Also it would be nice if the engine had some basic examples of a completed game. If there aren't any great examples of engines or it would be too difficult to grasp the design decisions, are there any good games that incorporate all of these elements that I should look at?

Offline sirkarpfen

Junior Member


Medals: 2
Exp: 2 years



« Reply #1 - Posted 2013-07-31 21:39:58 »

Here is a full source code of a 2D Engine written in Java (example games included^^). You can browse the code online or check it out via SVN Smiley:
http://code.google.com/p/nostaljia/
Offline sproingie

JGO Kernel


Medals: 202



« Reply #2 - Posted 2013-08-01 01:26:18 »

PuppyGames quietly released the source for either Titan Attacks or Revenge of the Titans, I can't remember which.  It's not going to win any awards for Mind-Blowing Elegance in Code Architecture, let alone make up a reusable framework, but they damn sure write some of the best performing java games out there, and that counts for a lot.

Cas, now that I've sufficiently flattered you, care to post the link again? Smiley

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ReBirth
« Reply #3 - Posted 2013-08-01 02:20:30 »

It's RofT source, just without the assets so you can't compile-run it. You can find the link in... jungle of RotT thread persecutioncomplex

Actually the best architecture is the one you make yourself AND you're comfortable with it no matter how messy it is.

Offline HeroesGraveDev

JGO Kernel


Medals: 246
Projects: 11
Exp: 2 years


┬─┬ノ(ಠ_ಠノ)(╯°□°)╯︵ ┻━┻


« Reply #4 - Posted 2013-08-01 03:51:40 »

Actually the best architecture is the one you make yourself AND you're comfortable with it no matter how messy it is.

This.

Though preferably not too messy in case you need to make a few changes.

Offline phracksipsin

Junior Newbie





« Reply #5 - Posted 2013-08-01 09:39:49 »

I do intend on making my own engine but I'm trying to improve my programming at the same time. I've already cobbled something together with collision detection etc but I'm just looking for some ideas on how to make it better.

I'll take a look at these suggestions, nostaljia looks pretty good.

Thanks.
Offline drabla

Junior Member


Medals: 5



« Reply #6 - Posted 2013-08-01 13:48:16 »

As Mr. Cas is not around i just leave this here:

Source of Revenge of the Titans
http://www.puppygames.net/blog/?p=914


P.S. I like reading code. Moar sources plz ;>
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

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

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

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

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

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

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

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

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

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
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!