class FogOfWar::Player
- FogOfWar::Player
- Reference
- Object
Defined in:
fog_of_war/player.crConstant Summary
-
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
Instance Method Summary
- #draw(window : SF::RenderWindow)
- #draw_player(window)
- #jump_to_point(point : Point)
- #just_moved? : Bool?
- #move(dx, dy)
- #move_with_level(dx, dy, border)
- #move_with_speed(frame_time, dx, dy)
- #radius
- #size
- #update(frame_time, keys : Keys, border : Line)
- #update_movement(frame_time, keys : Keys, border)
- #visibility_radius
- #x : Int32 | Float32
- #y : Int32 | Float32