Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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  
  Ents - an Entity-Component and Model-View-Controller framework for Games  (Read 1922 times)
0 Members and 1 Guest are viewing this topic.
Offline ClickerMonkey

JGO Coder

Medals: 26
Exp: 10 years

Game Engineer

« Posted 2013-11-15 06:21:32 »

This is the Java version of a library I've been working on in my free time, and it's time to let it loose!

Here's the Java page on GitHub
Here's an example Asteroids clone with runnable JARs for the Java2D and LWJGL back-ends.

To summarize it's strengths:
* Components can be anything you want, they don't need to extend a base class
* Components can have alternative implementations (think of method overriding in OOP)
* Components can have their values dynamically generated, pooled, shared between entities of the same type, etc.
* Controllers are simple ways of adding behavior to entities that have certain components
* Views (Renderers) is decoupled from the game, so different back-ends can be plugged in
* Renderers have a life cycle, they are created when an Entity is and destroyed when an Entity is. This is useful when your Entity has rendering information (like VBO data) and you want to make sure to clean everything up properly.
* EntityFilters + EntityIterators let you iterate over all your entities looking for ones that match any criteria (based on components, controllers, if it's visible, etc).
* Templates are used to define entity types given a set of components, controllers, and a view.
* Entities can have components, controllers, and views added dynamically.

Let me know what you think!

Pages: [1]
  ignore  |  Print  

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

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

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

Solater (60 views)
2018-03-17 05:04:08

nelsongames (107 views)
2018-03-05 17:56:34

Gornova (147 views)
2018-03-02 22:15:33

buddyBro (690 views)
2018-02-28 16:59:18

buddyBro (90 views)
2018-02-28 16:45:17

xxMrPHDxx (492 views)
2017-12-31 17:17:51

xxMrPHDxx (728 views)
2017-12-31 17:15:51
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!