GithubHelp home page GithubHelp logo

roflbalt's Introduction

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.

roflbalt's People

Contributors

pda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

roflbalt's Issues

symlink doesn't work with require path, use pathname to fix

I use symlinks to add executables in git directories to my ~/bin. Unfortunately this breaks roflblat, but I fixed it by swapping out the existing require with;

require "pathname"
require File.join(File.dirname(Pathname.new(__FILE__).realpath), "../lib/roflbalt.rb")

Thanks for the game btw!

Controls & Screen Size

What's the recommended screen size and what are the controls?

PS. I'm in love you guys.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.