Wynn Netherland changelog.com/posts

ROFLbalt - Canabalt inspired ASCII side-scroller in your console

UPDATE: I neglected to credit Dennis Hotson in the original post. This has been corrected below.

While definitely silly, don’t write this Canabalt clone off as pointless. When I stumbled across ROFLbalt, a text-mode side-scroller from Paul Annesley and Dennis Hotson last night, I started to write it up for The Changelog but got sucked into the source. It’s fascinating to see Ruby-based text sprites:

class RoflCopter
  include Renderable
  def initialize x, y, background
    @x, @y = x, y
    @background = background
    @frames = [
      [
        '          :LoL:ROFL:ROFL',
        '  L     ____|__         ',
        '  O ===`      []       ',
        '  L     ________]      ',
        '       .__|____|__/     ',
      ],
      [
        ' ROFL:ROFL:LoL:         ',
        '        ____|__         ',
        ' LOL===`      []       ',
        '        ________]      ',
        '       .__|____|__/     ',
      ],
    ]
  end

  ...

Go ahead and clone the source and give it a go in your terminal, but be sure and peruse the code and discover some nifty Ruby.


Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00