README for 4f05
- TOC -
1. What is it?
1.1. Description
2. Requirements
3. Build
3.1. Linux
3.2. MinGW-32
4. Key bindings
5. Credits
------
1. What is it?
An adaptation of the well-known "Tetris" game. It uses Open GL for rendering.
1.1. Description
It will create a file named "4f05.conf" in the path where "4f05" executable
is located when such a file does not exists already. You can edit that file
manually if you wish to modify its settings.
Works with "wine".
2. Requirements
In order to play it you need:
- "Open GL" 1.1. capable graphics card
- "X" or "Windows"
- 32Mb RAM
- "GLUT" 3.6.7
For "mingw32" - http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/
Put "glut32.dll" in a path where windows can find it - in the folder
where "4f05.exe" is located for example.
- "freetype" 2.4.8 - http://www.freetype.org/
Cross-compile: "./configure --without-zlib --host=mingw32
--prefix=$PWD/bb && make && make install " works with my toolchain.
Put "libfreetype-6.dll" in a path where windows can find it - in the folder
where "4f05.exe" is located for example.
3. Build
I'm using "GCC", "GNU Binutils" and "GNU Make":
http://gcc.gnu.org
http://www.gnu.org/software/binutils/
http://www.gnu.org/s/make/
3.1. Linux
"make clean && make" - this will build the "4f05" executable.
3.2. MinGW-32
"make -f makefile.mingw32 clean && make -f makefile.mingw32" -
this will build "4f05.exe".
Cross-compile:
"make -f makefile.mingw32 clean && make -f makefile.mingw32" -
this will build "4f05.exe". One may want to edit "makefile.mingw32" to adjust
to one's corss-compile toolchain - CC needs to be set only.
4. Default key bindings
- move left - left arrow key
- move right - right arrow key
- move down - down arrow key
- rotate - up arrow key
- drop - space
- new game - n
- pause game - p
- t - toggle rendering of the splines
- v - toggle rendering of the game
- f - toggle fullscreen
- "Esc" - show the main menu
- Shift + arrow keys - rotate the game table
5. Credits
My thanks to:
- Jeff Molofee (NeHe) for his lessons
http://nehe.gamedev.net/
- Richard Campbell for his code for lesson 13 (Bitmap Fonts) available at
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=13
- A. Todorov for his advice on the gameplay:
<atanas_todorow_gmail_com>
- All the people who made/are working on "Liberation fonts":
https://fedorahosted.org/liberation-fonts/
http://en.wikipedia.org/wiki/Liberation_fonts
- "windows" releases are build by a cross-compiler 10x to "GCC" and "MinGW"
http://gcc.gnu.org
http://www.mingw.org
- All the people who made/are working on "GLUT":
http://www.opengl.org/resources/libraries/glut/
http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/
- "FreeType" - for without them, there will be no text :)
http://www.freetype.org/