Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (757)
Games in Android Showcase (229)
games submitted by our members
Games in WIP (844)
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 1814 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 Devvie

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:
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: 382
Projects: 11
Exp: 4 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.


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.

Offline drabla

Junior Devvie

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

P.S. I like reading code. Moar sources plz ;>
Pages: [1]
  ignore  |  Print  

EgonOlsen (77 views)
2018-06-10 19:43:48

EgonOlsen (57 views)
2018-06-10 19:43:44

EgonOlsen (77 views)
2018-06-10 19:43:20

DesertCoockie (259 views)
2018-05-13 18:23:11

nelsongames (157 views)
2018-04-24 18:15:36

nelsongames (156 views)
2018-04-24 18:14:32

ivj94 (897 views)
2018-03-24 14:47:39

ivj94 (161 views)
2018-03-24 14:46:31

ivj94 (810 views)
2018-03-24 14:43:53

Solater (174 views)
2018-03-17 05:04:08
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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‑
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!