Module: EntityConstants
- Included in:
- Entity, Entity::ClassMethods, GameClient, GameSpace, Move::RiseUp
- Defined in:
- lib/game_2d/entity_constants.rb
Constant Summary collapse
- CELL_WIDTH_IN_PIXELS =
All our drawings are 40x40
40- PIXEL_WIDTH =
We track entities at a resolution higher than pixels, called “subpixels” This is the smallest detectable motion, 1 / PIXEL_WIDTH of a pixel
10- WIDTH =
The dimensions of a cell, equals the dimensions of an entity
HEIGHT = CELL_WIDTH_IN_PIXELS * PIXEL_WIDTH
- MAX_VELOCITY =
Maximum velocity is a full cell per tick, which is a lot
WIDTH