Friday Post: Termboy

Hey All,

Happy Friday!

So I have had my Pi2 for a week, and I gotta say, it’s a great piece of kit.  PiPlay is coming along nicely.  Having some hiccups on the Pi2 that I need to fix before I do a full release.

TermBoy

With that being said, I saw on Hacker News today a port of a gameboy emulator to the Go language, that also only utilizes the console.  It’s called Termboy, and while it doesn’t run that fast on the Raspberry Pi, it’s still a neat little tech demo.

We first download the proper console font and install it:

wget http://kbd-project.org/download/kbd-2.0.2.tar.xz
tar xf kbd-2.0.2.tar.xz
sudo cp kbd-2.0.2/data/consolefonts/default8x16.psfu /usr/share/consolefonts/

Now we download the latest GoLang version (The apt-get version of Go is 2 years old)
[code]
wget https://storage.googleapis.com/golang/go1.4.1.src.tar.gz
tar xf go1.4.1.src.tar.gz

Set the path for where we want our Go packages to be downloaded

mkdir godownload
export GOPATH=/home/pi/go/godownload/

Build Go

cd go/src/
./make.bash

One that has completed, it’s time to download Termboy and build it.

cd ../bin/
./go get github.com/dobyrch/termboy-go

Now goto the bin folder where our newly built termboy executable resides, and run it like so:

cd ../godownload/bin/
./termboy-go /path/to/game.rom

More PiPlay news soon.  Promise!

-Shea

One thought on “Friday Post: Termboy

  1. Pingback: Friday Post: Termboy | Raspberry World

Leave a Reply

Your email address will not be published. Required fields are marked *