X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/47c27a4c712e6a1927656c69651354df40c3864a..cddc537f3359281db6c16b6b059ca20a20f970c5:/badge/jumpnrun/enemies.h?ds=sidebyside diff --git a/badge/jumpnrun/enemies.h b/badge/jumpnrun/enemies.h index 075255e..c66a28e 100644 --- a/badge/jumpnrun/enemies.h +++ b/badge/jumpnrun/enemies.h @@ -14,8 +14,8 @@ struct jumpnrun_tile_range; struct jumpnrun_enemy; typedef struct jumpnrun_enemy_type { - unsigned animation_ticks_per_frame; - size_t animation_length; + uint8_t animation_ticks_per_frame; + uint8_t animation_length; badge_sprite const *animation_frames; rectangle hitbox; @@ -50,7 +50,7 @@ enum { JUMPNRUN_ENEMY_SPAWNED = 128, JUMPNRUN_ENEMY_UNAVAILABLE = 64, JUMPNRUN_ENEMY_MOVING = 32, - JUMPNRUN_ENEMY_EVENT_TRIGGER1 = 16, + JUMPNRUN_ENEMY_EVENT_TRIGGER1 = 16 }; static inline rectangle const *enemy_hitbox(jumpnrun_enemy const *enemy) { return &enemy->base.hitbox; }