Dungeon::Player
Inherits Dungeon::LivingEntity < Dungeon::Entity < Reference < Object
Constants
FADED = LibRay::Color.new(r: 255, g: 255, b: 255, a: 100)
INVINCIBLE_FLASH_INTERVAL = (INVINCIBLE_TIME / INVINCIBLE_FLASHES) / 2
INVINCIBLE_FLASHES = 2
INVINCIBLE_TIME = 0.5
INVINCIBLE_TINT = FADED
MAX_HIT_POINTS = 30
PLAYER_MOVEMENT = 200
Constructors
new
Instance methods
add_arrow
add_bomb
add_key
after_hit_flash
arrows_left
bombs
bombs_left
bombs_left?
bump(damage)
bump_detections(entities : Array(Entity))
collidable?
used for checking for movement collisions
direction
direction=(direction : Direction)
draw
drawables
invincible?
invincible_flash(delta_t)
key?
keys_left
max_hit_points
move(entities)
pick_up(item : Item)
tint!(tint : LibRay::Color)
update(entities)
updates_to_camera(camera : Camera)
use_key