Supertux

For various assignments in class we will use a modified version of supertux. You have two options to obtain supertux from source or as a binary. The binary package was tested on the CS lab machines, and is highly recommended. You can try your luck with the source if you really want to play the game on your Mac. It will not compile on Windows.

Using supertux

If you just want to play supertux for fun, call ./supertux2 (for source installations: do this first to test if supertux works). We will use the pytux interface for most of the class. If you compiled supertux from source you might want to create a new directory and link pytux and data

cd your/new/directory
ln -s path/to/pytux pytux
ln -s path/to/data data

You can then copy any starter code in that directory. If you’re using the binary version, just copy the starter code in the directory of the binary.

Recording using supertux

Download the binary or source supertux (pytux). Download the recording code. Make sure the pytux and data directories are in the record directory.

First you’ll need to figure out which levels you need to record.

python3 get_levels.py YOUR_UTID

This will spit out 5 level names. For each one call

python3 record.py level_name

Complete the level, or play until you die after completing 20% 5 times.

If you want to see your replays call

python3 replay.py recording1 [recordings]

Once you’re done recording, zip up the recording folder and submit it on canvas.