class FogOfWar::Scene::Editor

Defined in:

fog_of_war/scene/editor.cr

Constant Summary

ItemsToPlace = ["border", "player"]
Margin = 64
PaddingSelection = 16
TextColor = SF::Color::Green

Constructors

Instance Method Summary

Constructor Detail

def self.new(window) #

[View source]

Instance Method Detail

def border(*args, **options) #

[View source]
def border(*args, **options, &) #

[View source]
def draw(window) #

[View source]
def draw_editor(window) #

[View source]
def draw_header_label(window, label, size, x, y) #

[View source]
def draw_hud(window) #

[View source]
def draw_menu_background(window) #

[View source]
def editor_update(frame_time, keys, mouse) #

[View source]
def item_to_place #

[View source]
def level : Level #

[View source]
def level_data : LevelData #

[View source]
def menu? : Bool #

[View source]
def menu_items : GSF::MenuItems #

[View source]
def menu_level_items : GSF::MenuItems #

[View source]
def menu_levels? : Bool #

[View source]
def place_item(mouse) #

[View source]
def player : FogOfWar::Player #

[View source]
def reset #

[View source]
def test_level_key : String | Nil #

[View source]
def update(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks) #

[View source]
def update_menu(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks) #

[View source]
def update_menu_levels(frame_time, keys : Keys, mouse : Mouse, joysticks : Joysticks) #

[View source]
def view : GSF::View #

[View source]