Sha256: fe97a8f8dd0e82bcd7da8e34d925422ab8d89ea496c15e24e6760eabc544a30d
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
module Game class Config end class Entity class << self def physics_engine(physics_engine) unregister_physics_engine register_physics_engine(physics_engine) end protected def unregister_physics_engine end def register_physics_engine(physics_engine) end end end class PhysicsEngine end end # # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- # # # -= game-chipmunk # # # ./lib/game-chipmunk.rb # MANDATORY CONVENTION # # require 'game/physics_engine/chipmunk' # # # ./lib/game/chipmunk.rb # MANDATORY CONVENTION # # require 'game/physics_engine/chipmunk' # # # ./lib/game/physics_engine/chipmunk # ACTUAL PLUGIN # # module Game # class PhysicsEngine # # class Chipmunk < PhysicsEngine # VERSION = '0.1.0' # # on_register do # # in the scope of the Entity class this was registered.. # end # # end # # Entity.physics_engine(Chipmunk) # Autosetup Chipmunk as the default physics engine # # end # end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
game-0.0.1 | lib/game.rb |