Tetris Clone
L2Stack is a Tetris-like game which I’ve been working on for a while. It is now an open source project. Anyone can help!
It is available for Windows and Linux. The latest Windows build can be downloaded here.
.
Compiling for Linux
Compiling L2Stack on Linux should be relatively painless, if you follow these steps:
- L2Stack depends on the following libraries: pcre, SDL, SDL_image, SDL_net, SDL_sound, boost, lua5.0+ and zlib. Make sure they are installed on your system (prefereably latest versions of them also) before you continue. If you are using a package manager, these libraries will likely be available on your regular package repository.
- You will need the Bazaar version control system to download the source. Bazaar is available with most major Linux distributions. The Debian package is named simply “bzr”.
- Create a directory where you want to download the source code. For example
cd ~; mkdir bzr - Change directory to your download destination, then branch L2Stack’s launchpad repository:
cd bzr; bzr branch lp:l2stack cd l2stack./configuremake
Now that you’ve compiled L2Stack, let’s run it:
- First create a directory from which to run L2Stack:
mkdir test; cd test. - Create a link to the data directory:
ln -s ../data data - … and to the executable:
ln -s ../L2Stack/L2Stack L2Stack - That’s it, now run L2Stack:
./L2Stack
