class

FogOfWar::Player

Inherits Reference < Object

Constants

Color = SF::Color.new(153, 0, 0, 30)
OutlineColor = SF::Color.new(153, 0, 0)
OutlineThickness = 4
Radius = 64
Size = Radius * 2
Speed = 640
VisibilityColor = SF::Color.new(127, 127, 127, 63)
VisibilityRadius = 256

Constructors

new(point : Point = {x: 0, y: 0})
Source

Instance methods

draw(window : SF::RenderWindow)
Source
draw_player(window)
Source
jump_to_point(point : Point)
Source
just_moved?
Source
move(dx, dy)
Source
move_with_level(dx, dy, border)
Source
move_with_speed(frame_time, dx, dy)
Source
radius
Source
size
Source
update(frame_time, keys : Keys, border : Line)
Source
update_movement(frame_time, keys : Keys, border)
Source
visibility_radius
Source