Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 115 lines (91 sloc) 3.692 kb
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
1 #ifndef DEFS_H_INCLUDED
d59992d3 »
2012-01-14 Moved headerguards to top of file since a bug in some IDE's will add …
2 #define DEFS_H_INCLUDED
7e5758cf »
2012-01-08 Initial effort to change levelformat and graphics naming layout
3
cd298d65 »
2011-11-19 terrible mess
4 /************************************************************************
5 * This file is part of Wizznic. *
e61c024d »
2012-04-18 Updated copyleft header.
6 * Copyright 2009-2012 Jimmy Christensen <dusted@dusted.dk> *
cd298d65 »
2011-11-19 terrible mess
7 * Wizznic is free software: you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation, either version 3 of the License, or *
10 * (at your option) any later version. *
11 * *
12 * Wizznic is distributed in the hope that it will be useful, *
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15 * GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU General Public License *
aa80153c »
2012-06-09 Nuked all windows newlines.
18 * along with Wizznic. If not, see <http://www.gnu.org/licenses/>. *
cd298d65 »
2011-11-19 terrible mess
19 ************************************************************************/
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
20
aa80153c »
2012-06-09 Nuked all windows newlines.
21 #ifndef DATADIR
22 #define DATADIR "./"
23 #endif
24
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
25 #define FIELDSIZE 11
26
27 //Bricks
28 #define BRICKSBEGIN 1 //The first brick
29 #define BRICKSEND 10 //The last brick
30
31 //Tiles
32 #define MOVERVERT 11 //Vertical (up-down) moving platform
33 #define MOVERHORIZ 12 //Horizontal (left-right) moving platform
34 #define ONEWAYLEFT 13 //Bricks standing directly on this can only be moved left
35 #define ONEWAYRIGHT 14//Only moved right
36 #define GLUE 15 //Can't be moved at all
37 #define STDWALL 16 //Standard issue free-standing wall-tile
38 #define RESERVED 17 //Reserved for bricks that are moving/exploding.
39 #define TELESRC 18 //Teleport source brick
6a88b22a »
2012-08-28 Implemented switches.
40 #define SWON 19 //Switch turns on target when brick on top
41 #define SWOFF 20 //Switch turns off target when brick on top
42 #define NUMTILES 20 //type 1 = index 0 in tile array
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
43
44
45 #define MOVERCOUNTDOWN 500 //Ms pause before mover switch direction
7e5758cf »
2012-01-08 Initial effort to change levelformat and graphics naming layout
46
47 //Milliseconds we show the small pointer before hiding it again (in case people don't want to use mouse anyway)
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
48 #define POINTER_SHOW_TIMEOUT 4000
49
50 #define ONEWAYSPEED 10
51
52 #define DIRLEFT -1
53 #define DIRRIGHT 1
54
55 #define DIRUP -1
56 #define DIRDOWN 1
c1f03e20 »
2012-01-16 Trying to move some stuff out into platform/* files.
57
58 //Get defines from platform .h file
59 #if defined(PANDORA) //Pandora
60 #include "platform/pandora.h"
61 #elif defined(PSP) //PSP
62 #include "platform/pspspec.h"
63 #elif defined(GP2X) //GP2X
64 #include "platform/gp2x.h"
65 #elif defined(WIZ) //GP2X Wiz
66 #include "platform/wiz.h"
67 #else //Linux, Windows, Default
68 #include "platform/pc.h"
aa80153c »
2012-06-09 Nuked all windows newlines.
69 #define PC
c1f03e20 »
2012-01-16 Trying to move some stuff out into platform/* files.
70 #endif
71
bf624c58 »
2011-10-09 srsly nothing, just playing around with GIT.
72
73 //Half the resolution is practical for centering content
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
74 #define HSCREENW SCREENW/2
75 #define HSCREENH SCREENH/2
76
77
78 //Board offsets
79 #define boardOffsetX 90 + ( HSCREENW - 160 )
80 #define boardOffsetY 10 + ( HSCREENH - 120 )
81
82 //Board sizes
83 #define brickSize 20
84 #define NOBLOCK 0
85 #define DOBLOCK 1
86 #define CURLOCK 2
87
88 //Speeds
89 #define CURSORMOVESPEED 5
90 #define VERTMOVERSPEED 1
91 #define HORIZMOVERSPEED 1
19074462 »
2012-01-09 Improved speed of detecting transperancy, improved naming of level-de…
92 #define FALLINGSPEED 2
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
93
94 //Delays
95 #define REPEATDELAY 200
cd298d65 »
2011-11-19 terrible mess
96
97 //Particle system layer
19074462 »
2012-01-09 Improved speed of detecting transperancy, improved naming of level-de…
98 #define PSYS_LAYER_NODRAW 0
99 #define PSYS_LAYER_TOP 1
100 #define PSYS_LAYER_UNDERBRICK 2
101 #define PSYS_LAYER_UNDERDEATHANIM 3
a7042f65 »
2011-11-19 Updated stats function with platform and session (might need fixing f…
102
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
103 //To avoid crashing a new version trying to read old highscore files (hmm, as if it's ever gonna happen)
104 #define STATS_FILE_FORMAT_VERSION 1
105
106 //Url where stats are
c1f03e20 »
2012-01-16 Trying to move some stuff out into platform/* files.
107 #define STATS_SERVER_URL "http://dusted.dk/wizznic"
6eff7462 »
2011-11-20 Terrible mess.
108
c1f03e20 »
2012-01-16 Trying to move some stuff out into platform/* files.
109 #ifndef STR_PLATFORM
110 #ifndef STR_PLATFORM
111 #define STR_PLATFORM "Unknown"
6eff7462 »
2011-11-20 Terrible mess.
112 #endif
4f7366c0 »
2012-06-09 Includes optional BUILD_NUMBER when building.
113 #endif
114
d59992d3 »
2012-01-14 Moved headerguards to top of file since a bug in some IDE's will add …
115 #endif // DEFS_H_INCLUDED
Something went wrong with that request. Please try again.