Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626621
Globals.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
Globals.h
View Options
/****************************************************************************
** Copyright (C) 2011 Luka Horvat <redreaper132 at gmail.com>
** Copyright (C) 2011 Edward Lii <edward_iii at myway.com>
** Copyright (C) 2011 O. Bahri Gordebak <gordebak at gmail.com>
**
**
** This file may be used under the terms of the GNU General Public
** License version 3.0 as published by the Free Software Foundation
** and appearing in the file LICENSE.GPL included in the packaging of
** this file.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** You should have received a copy of the GNU General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
**
****************************************************************************/
#ifndef GLOBALS_H
#define GLOBALS_H
#include
<SDL/SDL.h>
#include
<SDL/SDL_mixer.h>
#include
<SDL/SDL_ttf.h>
#include
<string>
#ifdef WIN32
//#define DATA_PATH
#else
#include
"config.h"
#endif
//Global constants
const
int
SCREEN_WIDTH
=
800
;
const
int
SCREEN_HEIGHT
=
600
;
const
int
SCREEN_BPP
=
32
;
extern
int
LEVEL_HEIGHT
;
extern
int
LEVEL_WIDTH
;
extern
bool
NEXT_LEVEL
;
//Player saving speed
//extern int PLAYER_X_SPEED;
const
int
g_FPS
=
40
;
//Slike
extern
SDL_Surface
*
screen
;
extern
SDL_Surface
*
s_dark_block
;
extern
SDL_Surface
*
s_black
;
extern
SDL_Surface
*
s_temp
;
extern
Mix_Music
*
music
;
extern
TTF_Font
*
font
,
*
font_small
;
//Event
extern
SDL_Event
event
;
//GUI
class
GUIObject
;
extern
GUIObject
*
GUIObjectRoot
;
//Game states
extern
int
stateID
;
extern
int
nextState
;
extern
std
::
string
m_sLevelName
;
extern
SDL_Rect
camera
;
enum
GameStates
{
STATE_NULL
,
STATE_LEVEL_EDITOR
,
STATE_MENU
,
STATE_GAME
,
STATE_EXIT
,
STATE_HELP
,
STATE_LEVEL_SELECT
};
enum
GamaTileType
{
TYPE_BLOCK
=
0
,
TYPE_START_PLAYER
,
TYPE_START_SHADOW
,
TYPE_EXIT
,
TYPE_SHADOW_BLOCK
,
TYPE_SPIKES
,
TYPE_CHECKPOINT
,
TYPE_SWAP
,
TYPE_FRAGILE
,
TYPE_MOVING_BLOCK
,
TYPE_MOVING_SHADOW_BLOCK
,
TYPE_MOVING_SPIKES
,
TYPE_PORTAL
,
TYPE_BUTTON
,
TYPE_SWITCH
,
TYPE_CONVEYOR_BELT
,
TYPE_SHADOW_CONVEYOR_BELT
,
TYPE_MAX
};
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Sun, Nov 15, 12:56 AM (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
137767
Default Alt Text
Globals.h (2 KB)
Attached To
Mode
R79 meandmyshadow
Attached
Detach File
Event Timeline