File: dephine.h

package info (click to toggle)
epiphany 0.7.0+0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 7,532 kB
  • sloc: cpp: 6,404; ansic: 141; makefile: 78; sh: 7
file content (73 lines) | stat: -rw-r--r-- 1,565 bytes parent folder | download | duplicates (6)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/***********************************************
** ------------------------------------------ **
** ------ Standard Definitions Header ------- **
** ------------------------------------------ **
** ------------- Version 1.1 ---------------- **
** ------------------------------------------ **
***********************************************/

#ifndef DEPHINE_H
#define DEPHINE_H

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <iostream>

#ifdef DEBUG_MODE

//Standard includes needed by DebugMode

#include <fstream>

#define DEBUG(x) {x;}
#define DEBOUT(x) {std::cout<<x;}
#else
#define DEBUG(x)
#define DEBOUT(x)

#endif  // DEBUG_MODE

#define DEBWARN(x){std::cout<<x;}

//typedef unsigned int Uint32;
//typedef int Sint32;

//Insert standard includes here (used by all files)


#include <SDL/SDL.h>

//#include "except.h"
#include "epiconfig.h"



/**************************************************/
/*                  Game Constants                */
/**************************************************/
//const Uint32 k_max_num_of_levels=13;
 /*
//size in pixels
//const Uint32 k_game_size_x=640;
//const Uint32 k_game_size_y=480;
//const Uint32 k_score_size_y=32;

//size in cells
const static int k_level_size_x=32;
const static int k_level_size_y=32;

const Uint32 k_max_anim_drawn=8;
*/
const Uint32 k_max_anim=8;
const int k_sprite_size=32;
/*
const Uint32 k_moving_step=k_sprite_size/k_max_anim_drawn;

//const Uint32 k_msec_per_frame=176/k_max_anim_drawn;
//const Uint32 k_msec_per_frame=150/k_max_anim_drawn;
*/ 

#endif  // DEPHINE_H