Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Slick2ds entity engine  (Read 376 times)
0 Members and 2 Guests are viewing this topic.
Offline SkyAphid

Full Member
**

Posts: 156
Medals: 1



« on: 2012-01-15 21:44:19 »

I'm working, but I don't know if I should make the player one of Slicks entities, or make my own entity engine. Essentially all entities will be is the player and the npc-director; the npc-director in which itself will manage crowds of people walking in the town districts.

I'd like some feedback on everyone elses opinions before I get too far in.

"God grant me the serenity, to accept the things I cannot change; courage to change the things I can; and wisdom to know the difference."
Offline Magn919

JGO n00b
*

Posts: 8



« Reply #1 on: 2012-01-16 07:19:52 »

I don't recall slick 2D having an entity manager, only some of its extensions that have and a few tutorials that explains how to make one.

My advise, make your own, it will be alot easier to understand whats going on, than using someone else's system.

My idea's:
For your crowd manager(npc-director), make it an entity, and make all the npc's entities too, have the npc-director create and remove npc's first thing per loop, maybe using an npc pool, npc-director could assign them behaviors too.
Then have the npc's control what they do on their own.

This is what i would do based on your description.
But its up to you, to decide how it should work. Wink

For every new problem, a new source of solutions has come to exist.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.073 seconds with 19 queries.