-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
63 lines (42 loc) · 1.11 KB
/
main.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
#include <allegro.h>
#include <time.h>
#include "Glow.h"
#include "functions.h"
#include "Controle.h"
int main()
{
//initializations
init();
loadAll();
initGame();
//clearItemsMatrix();
LOCK_FUNCTION(incrementaTimer);
LOCK_VARIABLE(timer);
LOCK_FUNCTION(incrementaTimerMilisec);
LOCK_VARIABLE(timerMilisec);
timer = 0;
clear_to_color(buffer, makecol(255, 255, 255));
stretch_sprite(buffer, logo, 200, 0, 700, 700);
highcolor_fade_in(buffer, 6);
tela_inicial();
paint_to_buffer();
highcolor_fade_in(buffer, 4);
install_int_ex(incrementaTimer, MSEC_TO_TIMER(1000));
install_int_ex(incrementaTimerMilisec, MSEC_TO_TIMER(1));
while(!key[KEY_ESC])
{
paint();
glow.glowingColor();
controle();
checkSkeletonMovement();
player1.bomb[0].checkExplosion();
player1.bomb[1].checkExplosion();
player1.bomb[2].checkExplosion();
player1.bomb[3].checkExplosion();
player1.bomb[4].checkExplosion();
}
freeAll();
deinit();
return 0;
}
END_OF_MAIN()