-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathgame.cpp
79 lines (77 loc) · 1.79 KB
/
game.cpp
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
74
75
76
77
78
79
#include <allegro.h>
#include <stdio.h>
#include "util.h"
#include "class/_sprite.h"
#include "class/timer.h"
#include "class/osd.h"
#include "class/mobile.h"
#include "class/map.h"
#include "class/particle.h"
#include "class/flash.h"
#include "class/fog.h"
#include "class/water.h"
#include "class/fire.h"
#include "class/rain.h"
#include "class/snow.h"
#include "class/thunder.h"
#include "class/bonus.h"
#include "class/weapon.h"
#include "class/magic.h"
#include "class/bullet.h"
#include "class/player.h"
#include "class/blade.h"
#include "class/rockfall.h"
#include "class/zombie.h"
#include "class/skeleton.h"
#include "class/volture.h"
#include "class/red_arremer.h"
#include "class/red_arremer_king.h"
#include "class/plant_mk2.h"
#include "class/stalagmite.h"
#include "class/ghost.h"
#include "class/bat.h"
#include "class/giant.h"
#include "class/firewall.h"
#include "class/insect.h"
#include "class/fire_grizzly.h"
#include "class/clam.h"
#include "class/turtle.h"
#include "class/demon.h"
#include "class/little_devil.h"
#include "class/big_crab.h"
#include "class/pork.h"
#include "class/magician.h"
#include "class/flower.h"
#include "class/immobile.h"
#include "game.h"
int main()
{
init();
Intro();
while(1)
{
Title();
while(!key[KEY_ESC] && !GAME_OVER)
{
checkGame();
if(GAME_OVER) break;
if(L_B) layer_back();
if(L_0) layer_0();
if(L_1) layer_1();
if(L_S) layer_s();
if(L_H) layer_h();
if(L_OSD) layer_OSD(50);
Player();
Enemies();
Collision();
if(DEBUG) debug(VSCR,50); // Debug
Scroll();
checkTimer();
// Print all to screen
rePaint(MFPS);
}
clear_keybuf(); wait(500);
}
return 0;
}
END_OF_MAIN();