Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Separate classes for different entities

Author
Message
dotty
13
Years of Service
User Offline
Joined: 2nd Sep 2011
Location:
Posted: 5th Sep 2011 10:50
Hay, i was looking about in the demo samples that came with App Game Kit and came across the "spacer" game. I notice that each entity was split into it's own file (emery, ship, etc). Does anyone have any articles on why we do this and how we do this. It'll be nice to know!
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 5th Sep 2011 11:04
Mainly you do that for a better overview over your project. If you need to change anything simply open the file where the entity code is in and change it. The other thing is reusability as you can use the code for an "entity" for different things and don't have to code the same thing over and over.

You can use Google to find some tutorials about game engines, classes and so on. (even there are no real classes in AppGameKit but the idea behind it is the same).

Life is good!

Login to post a reply

Server time is: 2024-11-21 16:00:49
Your offset time is: 2024-11-21 16:00:49