Class: Chingu::GameObject
- Inherits:
-
BasicGameObject
- Object
- BasicGameObject
- Chingu::GameObject
- Includes:
- Helpers::InputClient
- Defined in:
- lib/chingu/game_object.rb
Overview
GameObject inherits from BasicGameObject to get traits and some class-methods like .all and .destroy On top of that, it encapsulates GOSUs Image#draw_rot and all its parameters. In Chingu GameObject is a visual object, something to put on screen, centers around the .image-parameter. If you wan't a invisible object but with traits, use BasicGameObject.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from BasicGameObject
Method Summary
Methods included from Helpers::InputClient
#add_inputs, #holding?, #holding_all?, #holding_any?, #input, #input=, #on_input
Methods inherited from BasicGameObject
all, create, #destroy, destroy_all, destroy_if, #draw, #draw_trait, each, each_with_index, #filename, #initialize, initialize_trait, #pause!, #paused?, select, #setup, #setup_trait, size, trait, #trait_options, traits, #unpause!, #update, #update_trait
Methods included from Helpers::ClassInheritableAccessor
Constructor Details
This class inherits a constructor from Chingu::BasicGameObject