Class: GameOverBanner

Inherits:
Object
  • Object
show all
Includes:
Renderable
Defined in:
lib/rofltim.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/rofltim.rb', line 424

def height; 5 end

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



434
435
436
# File 'lib/rofltim.rb', line 434

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

#templateObject



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

def template
  [
    '                            ',
    '  ♥                      ♥  ',
    '  ♥      YOU LEFT :(     ♥  ',
    '  ♥                      ♥  ',
    '                            ',
  ]
end

#widthObject



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

def width; 28 end

#xObject



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

def x; 28 end

#yObject



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

def y; 14 end