lib/fantasy/loop.rb in fantasy-0.1.1 vs lib/fantasy/loop.rb in fantasy-0.1.3
- old
+ new
@@ -43,9 +43,10 @@
def draw
Gosu.draw_rect(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, Global.background)
(
+ Global.backgrounds +
Global.actors +
Global.hud_texts +
Global.hud_images
).sort_by(&:layer).each do |e|
e.draw