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.

L2Stack on Windows

.

Compiling for Linux

Compiling L2Stack on Linux should be relatively painless, if you follow these steps:

  1. 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.
  2. 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”.
  3. Create a directory where you want to download the source code. For example cd ~; mkdir bzr
  4. Change directory to your download destination, then branch L2Stack’s launchpad repository: cd bzr; bzr branch lp:l2stack
  5. cd l2stack
  6. ./configure
  7. make

Now that you’ve compiled L2Stack, let’s run it:

  1. First create a directory from which to run L2Stack: mkdir test; cd test.
  2. Create a link to the data directory: ln -s ../data data
  3. … and to the executable: ln -s ../L2Stack/L2Stack L2Stack
  4. That’s it, now run L2Stack: ./L2Stack