Class: GameOverBanner

Inherits:
Object
  • Object
show all
Includes:
Renderable
Defined in:
lib/roflbalt.rb

Constant Summary collapse

FG =
16
BG =
244

Instance Method Summary collapse

Methods included from Renderable

#each_pixel, #right_x

Instance Method Details

#heightObject



424
# File 'lib/roflbalt.rb', line 424

def height; 3 end

#pixel(x, y, rx, ry, ticks) ⇒ Object



432
433
434
# File 'lib/roflbalt.rb', line 432

def pixel x, y, rx, ry, ticks
  Pixel.new template[ry][rx], FG, BG
end

#templateObject



425
426
427
428
429
430
431
# File 'lib/roflbalt.rb', line 425

def template
  [
    '                            ',
    '       YOU DIED. LOL.       ',
    '                            ',
  ]
end

#widthObject



423
# File 'lib/roflbalt.rb', line 423

def width; 28 end

#xObject



421
# File 'lib/roflbalt.rb', line 421

def x; 28 end

#yObject



422
# File 'lib/roflbalt.rb', line 422

def y; 14 end