Menu

Tree [c3ef6b] master /
 History

HTTPS access


File Date Author Commit
 4f05.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 4f05.conf 2011-12-04 corwinn corwinn [c3ef6b] initial
 COPYING 2011-12-04 corwinn corwinn [c3ef6b] initial
 ChangeLog 2011-12-04 corwinn corwinn [c3ef6b] initial
 LiberationSans-Regular.ttf 2011-12-04 corwinn corwinn [c3ef6b] initial
 README 2011-12-04 corwinn corwinn [c3ef6b] initial
 TODO 2011-12-04 corwinn corwinn [c3ef6b] initial
 anim_path.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 anim_path.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 common.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 common.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 cube.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 cube.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 engine.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 engine.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 ft2_iface.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 ft2_iface.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 main_menu.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 main_menu.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 makefile 2011-12-04 corwinn corwinn [c3ef6b] initial
 makefile.mingw32 2011-12-04 corwinn corwinn [c3ef6b] initial
 matrix.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 matrix.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 mem.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 mem.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 ring.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 ring.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 ring_buf.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 ring_buf.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 settings.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 settings.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 star.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 star.h 2011-12-04 corwinn corwinn [c3ef6b] initial
 weave.c 2011-12-04 corwinn corwinn [c3ef6b] initial
 weave.h 2011-12-04 corwinn corwinn [c3ef6b] initial

Read Me

			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/
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.