Cleanup
This commit is contained in:
+1
-8
@@ -37,7 +37,7 @@ class Game < Scene
|
|||||||
@character.draw
|
@character.draw
|
||||||
@enemies.draw
|
@enemies.draw
|
||||||
@props.draw
|
@props.draw
|
||||||
draw_fog! if $bus.get(:settings, :fog)
|
$bus.emit(:shade) if $bus.get(:settings, :fog)
|
||||||
@hud.draw
|
@hud.draw
|
||||||
draw_debug! if $bus.get(:settings, :debug)
|
draw_debug! if $bus.get(:settings, :debug)
|
||||||
end
|
end
|
||||||
@@ -48,13 +48,6 @@ class Game < Scene
|
|||||||
@font.draw_text("Player: [#{world_x}, #{world_y}]", 5, 30, Float::INFINITY, 1, 1, Gosu::Color::YELLOW)
|
@font.draw_text("Player: [#{world_x}, #{world_y}]", 5, 30, Float::INFINITY, 1, 1, Gosu::Color::YELLOW)
|
||||||
end
|
end
|
||||||
|
|
||||||
def draw_fog!
|
|
||||||
$bus.emit(:shade)
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
end
|
|
||||||
|
|
||||||
def draw_floor
|
def draw_floor
|
||||||
cam_x, cam_y = @camera
|
cam_x, cam_y = @camera
|
||||||
tile_size = 60
|
tile_size = 60
|
||||||
|
|||||||
Reference in New Issue
Block a user