Permalink
Browse files

Game Over banner has solid background, changed message.

  • Loading branch information...
1 parent ec11418 commit 8cd158b366d1c5a4e27c5999ba55a493713adf4f @pda committed Jan 15, 2012
Showing with 8 additions and 6 deletions.
  1. +8 −6 asc.rb
View
14 asc.rb
@@ -361,20 +361,22 @@ def pixel x, y, rx, ry, ticks
end
class GameOverBanner
+ FG = 16
+ BG = 244
include Renderable
def x; 28 end
- def y; 20 end
- def width; 30 end
+ def y; 14 end
+ def width; 28 end
def height; 3 end
def template
[
- ' --------------------------- ',
- ' -- Game Over -- ',
- ' --------------------------- ',
+ ' ',
+ ' YOU DIED. LOL. ',
+ ' ',
]
end
def pixel x, y, rx, ry, ticks
- template[ry][rx]
+ Pixel.new template[ry][rx], FG, BG
end
end

0 comments on commit 8cd158b

Please sign in to comment.