Components - fowlmouth/roids GitHub Wiki

###Physics Components

####Body A chipmunk body and shape ####GravitySensor ####ProximitySensor ####CollisionHandler Two actions are supported currently

  • destroy - destroys the other entity
  • warp - warps the other entity

###Graphics Components

####Sprite Sprite is what you think, a sprite. {"file":"somefile_15x15.png"}

####Sprite Behaviors

  • SpriteRowsAreRotation - rows are used for rotation
  • SpriteColsAreRoll - the sprite uses columns for vehicle roll
  • SpriteColsAreAnimation - sprite uses columns for a looping animation
  • OneShotAnimation - sprite uses columns for an animation and then expires
  • Scale - provides a scale for the sprite
  • ZOrder

####Orientation ####Position Used with Orientation for an entity without a body.

###Gameplay Components

####Emitters create entities. These are used for weapons and events. ####Lifetime Entity expires after a time limit.

####Actuators give the entity turning ability. ####Thrusters give the entity forward, backward thrust and strafing ability ####VelocityLimit ####AngularDampners ####Battery give the entity a recharging energy holder. Energy is used to fire weapons. ####Trail ####AttachedVehicle gives the entity attached vehicles. The entities attached should have no body or not collide with the host entity. ####TeamMember