-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
55 lines (33 loc) · 1.38 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
BLOXORZ GAME
============
This is a small game written in C++ using OpenGL libraries. The object is to
make the box fall down into the hole without falling off the edges.
DEPENDS ON
==========
This game depends on GLFW libraries. Download the libraries from the below:
http://www.glfw.org/download.html
GETTING THE SOURCE
==================
To get the source through git, type
git clone https://thrustmaster@bitbucket.org/thrustmaster/bloxorz.git
Or visit:
https://bitbucket.org/thrustmaster/bloxorz
BUILDING
========
(On linux)
g++ -w *.cpp soil/*.c `pkg-config --libs libglfw` -lGLU -lGL -lXrandr
(On Windows)
g++ -w *.cpp soil/*.c -lglfw -lglu32 -lOpengl32 -lgdi32
BLOXORZ MAP
===========
The game (as of now) reads the map from the file named "map.txt" located in the
working directory. The map file is essentially represented using the following
ASCII characters:
. A bad cell; those cells which are 'outside' the floor of the
game.
+ The main block. Single '+' in the map implies the block is
standing vertically. Two adjacent '+'es imply a horizontal
block
<space> The hole in which the block must fall into to finish the game.
The map must be surrounded with two layers of bad cells ('.' cells). Look into
the map that comes with the source code.