• Stars
    star
    174
  • Rank 217,399 (Top 5 %)
  • Language
    Ruby
  • Created over 12 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Canabalt inspired ASCII side-scroller in your console. #railscamp

ROFLBALT

A Canabalt-inspired sidescroller in ASCII (with ANSI color!) for your console.

WTF?

It's built by Paul Annesley (@pda) and Dennis Hotson (@dennishotson) with < 500 lines of Ruby, no dependencies; it just uses print and raw xterm-256color escape codes.

We wrote it at Rails Camp X in two days, pair programming over SSH with a shared tmux/vim session. As such, ~50% of the commits labelled Paul were actually Dennis!

Requirements

Ruby 1.9. It doesn't work with Ruby 1.8, but I'm sure somebody could easily fix that...

You'll need a terminal with 256 color support and at least 120 columns by 40 rows of text.

  • For Mac OS X we highly recommend iTerm2, but if you're running Lion (or newer?) you can use the default Terminal.app.
  • For Windows, I imagine PuTTY is still the thing to use.
  • For GNU/Linux etc, use xterm!

Instructions

# install:
gem install roflbalt

# using rbenv? it rocks.
rbenv rehash

# LOL
roflbalt

Press any key to jump! If you can't find the any key, try the spacebar.

And of course, ctrl-c to exit.

If your terminal isn't quite right afterwards, try running reset to get it back to normal. There's an issue open for this.

"Screenshot"

(or check out the video)

Score:     23432

                                                    ROFL:ROFL:LoL:ROFL:ROFL
                            O/                       L     ____|__
                           /|                        O ===`      []\
                           / >                       L     \________]
                                                          .__|____|__/

                                      ==========================================
                                      ::::::::::::::::::::::::::::::::::::::::::
                                      :::      ::       ::       ::       ::
                                      :::      ::       ::       ::       ::
====================                  ::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::                 :::      ::       ::       ::       ::
   ::      ::      ::                 :::      ::       ::       ::       ::
   ::      ::      ::                 ::::::::::::::::::::::::::::::::::::::::::
:::::::::::::::::::::                 :::      ::       ::       ::       ::
   ::      ::      ::                 :::      ::       ::       ::       ::

License

(c) 2012 Dennis Hotson, Paul Annesley

Open source: MIT license.

More Repositories

1

flip

Flip lets you declare and manage feature flags, backed by cookies (private testing) and database (site-wide).
Ruby
403
star
2

flexihash

Flexihash is a small PHP library which implements consistent hashing.
PHP
367
star
3

aws-keychain

CLI manager for AWS IAM access keys in Mac OS X keychain; succeeded by https://github.com/99designs/aws-vault
Shell
192
star
4

go6502

MOS 6502 emulator in Go.
Go
35
star
5

devise-login-cookie

Devise extension, sets login cookie for easier Single Sign On between same-domain apps.
Ruby
35
star
6

pda6502

Code + notes for a 6502-based breadboard computer.
Assembly
29
star
7

arduino-zero-without-ide

Arduino Zero toolchain without Arduino IDE (Atmel SAM D21 SAMD21G18A)
C
20
star
8

irc_machine

An IRC bot with a RESTful HTTP interface, built on Ruby and EventMachine.
Ruby
19
star
9

signed_json

Encodes and decodes data to a JSON string signed with OpenSSL HMAC. Great for signed cookies.
Ruby
13
star
10

dotvim

pda's vim configuration (deprecated / unmaintained)
Vim Script
10
star
11

c64.rb

Commodore 64 emulator in Ruby
Ruby
8
star
12

cfat16

FAT16 filesystem reader in C
C
8
star
13

cidrinfo

Given an IP CIDR (e.g. 10.20.30.40/20), explain and illustrate the address, network, masks, and host address range.
Go
7
star
14

dcpu16-asm-c

An assembler for DCPU-16, written in C.
C
6
star
15

bringit

PHP user agent for HTTP (unfinished, abandoned)
PHP
6
star
16

am_credit_card

ActiveMerchant::Billing::CreditCard, without ActiveMerchant.
Ruby
5
star
17

pda6502v2

8-bit homebrew computer; version 2
Rust
5
star
18

pacc-sinatra

Ruby + Sinatra + CouchDB + Tokyo Tyrant implementation of paul.annesley.cc
Ruby
5
star
19

jsurl

JSUrl aims to encapsulate the reading and manipulating of URLs in JavaScript.
JavaScript
5
star
20

they_love_you

The game of the decade, by Henrik, Zac and Paul.
JavaScript
5
star
21

avraek

Fundamentally flawed AVR-based USB adapter for Apple Extended Keyboard II
Eagle
4
star
22

bcryphby

A thin CLI wrapper around bcrypt-ruby, and then a thin PHP wrapper around that.
Ruby
4
star
23

digispark-asm

Digispark (attiny85+micronucleus) ASM code/build example.
Assembly
4
star
24

war2-docker

Run Warcraft II (Battle.net edition) in linux via Docker and Wine
Shell
3
star
25

chrome-westpac-password-keyboard

Chrome extension, replaces the terrible Westpac onscreen keyboard with a standard password input.
JavaScript
3
star
26

pacc-django

Django implementation of paul.annesley.cc
Python
2
star
27

pacc-piccolo

Implementation of paul.annesley.cc from which the piccolo mico-framework will be extracted.
JavaScript
2
star
28

dotzsh

Zsh configuration; clone to ~/.zsh and run ~/.zsh/install
Shell
2
star
29

pda.github.com

Paul Annesley - GitHub Pages
2
star
30

avr-led-cube

ATmega328P-powered 4x4x4 LED cube.
Arduino
2
star
31

treasurewar-bot-coffee

Treasure War bot: <canvas> + Socket.IO + CoffeeScript
JavaScript
1
star
32

path_router

Route HTTP requests to backend servers by URL path. [fundamentally flawed]
Ruby
1
star
33

gameoflife-cocoa

Just Messin': Conway's Game of Life in C, with a Cocoa/OpenGL frontend
C
1
star
34

they_love_you-web

Website for they_love_you
CoffeeScript
1
star
35

drztach

Tachometer for DR-Z400SM motorcycle
C
1
star
36

checkproc

A messy process monitoring script, found in a dusty archive
1
star
37

pacc-jekyll

paul.annesley.cc implemented with Jekyll
1
star
38

pacc-octopress

paul.annesley.cc on Octopress
JavaScript
1
star
39

ruby-test-sample

Ruby
1
star
40

pda64

Assembly
1
star
41

sequement

Sequence server in Ruby: fork(), select(), IPC over pipe(), async persistence.
Ruby
1
star
42

rbvm

Basic virtual machine and assembler in Ruby.
Ruby
1
star
43

dotfiles

Miscellaneous system configuration dot files.
Shell
1
star
44

avr-sram

AVR (ATmega328p) interface to 32KiB SRAM via shift registers
C
1
star