Module obj

Module obj 

Source
Expand description

Generic “GameObject” system that defines sets of behaviors using enums for resources/obj data

Structs§

Frame
A single frame of animation - where to clip an image and how to draw
GameObjectState
Every game object should have these parameters to return them via state()
Sprite
A collection of different animation frames that can be moved around a screen

Traits§

ControlObjectBehavior
Control objects are basically game objects, but they are aware of the current room and do not possess colliders. They are the way for doing dynamic memory
ControlObjectBehaviorClone
GameObjectBehavior
All game objects should implement these
GameObjectBehaviorClone
A special trait to implement cloning for our dynamic GameObjects