The entities tag has no wiki summary.
-2
votes
1answer
134 views
Will this Entity Code work? [closed]
How do you create 2D entities?
Here is something i tried to write up as a base for entities but is this usable and is entites like this?:
public abstract class Entity {
int attackRange; // ...
5
votes
3answers
733 views
What's a good entity hierarchy for a 2D game?
I'm in the process of building a new 2D game out of some code I wrote a while ago.
The object hierarchy for entities is like this:
Scene (e.g. MainMenu): Contains multiple entities and delegates ...
4
votes
4answers
368 views
Recursive or linear gameobjects update?
I have a tree of gameobjects, so every node contains a list of children.
In update function:
Is it better to do recursive or linear walking through game objects.
update() {
update self;
...
