Report as inappropriate.
This is a reusable class called 'Container' that represents a world, but actually is an actor. Therefore, you can do all sorts of stuff with it that you normally can't like moving it around, turning it or, quite handy if you think about it, display other stuff next to it (-->UI).
The Container class contains any actors without changing ANYTHING for them. Just use the normal 'addObject' method you know from normal worlds, but use the one of the container. It also features all the other methods that a normal world has.
Showcase:
Move the little blue square, the actor, around using the arrow keys.
Move the big light red square, the container, around using wasd.
1713 views / 11 in the last 7 days
3 votes | 0 in the last 7 days
This scenario is a member of: Reusable classes
Want to leave a comment? You must first log in.