Class Punx.Entity
Defined in: punx.dist.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Punx.Entity(x, y, w, h)
Screen inhabitants.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Punx.Entity.Collidable()
Entity can be collided by another entity.
|
<static> |
Punx.Entity.Drawable()
Entity can draw itself to an arbitrary context with optional offsets to account for camera position.
|
Class Detail
Punx.Entity(x, y, w, h)
Screen inhabitants. Includes backgrounds, NPC, baddies, player, text, anything drawn or collidable.
- Parameters:
- x
- y
- w
- h
Method Detail
<static>
Punx.Entity.Collidable()
Entity can be collided by another entity.
<static>
Punx.Entity.Drawable()
Entity can draw itself to an arbitrary context with optional offsets to account for camera position.