-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.h
58 lines (44 loc) · 1.4 KB
/
main.h
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
#ifndef MAIN_H_INCLUDED
#define MAIN_H_INCLUDED
#include <stdio.h>
#include <pthread.h>
#include <signal.h>
#include <unistd.h>
#include <math.h>
#include <allegro.h>
#include <allegro_image.h>
#include <allegro_native_dialog.h>
#include <allegro_primitives.h>
#include <allegro_font.h>
#include <allegro_ttf.h>
#include <allegro_acodec.h>
#include <allegro_audio.h>
#include "objects.h"
// status galaga
#define MENU 1
#define DESCRIPCION 2
#define JUEGO 3
#define CHALLENGING_STAGE 4
#define GAME_OVER 5
// opciones
#define JUGAR 1
#define ACERCA 2
#define SALIR 3
#define GREEN al_map_rgb(10,200,10)
#define GRAY_SELECTED al_map_rgb(200,200,200)
#define GRAY2 al_map_rgb(150,150,150)
#define GRAY al_map_rgb(70,70,70)
#define WIDTH 640
#define HEIGHT 480
//================
// DEMONIO |
//================
//#define font(tam) al_load_ttf_font("fonts/pirulen.ttf",tam,0 )
extern ALLEGRO_SAMPLE *bgSound, *yellSound, *shotSound, *boomSound,*captureSound;
extern ALLEGRO_BITMAP *imagen_jugador,*imagen_explosion;
extern int NUM_BULLETS, NUM_ENEMIES,velocidadAtaque;
extern bool done, render, colision, enemyIsShooting,explosion,lockKamikase,lockColocho;
extern bool tBeam,capturado, lockJefe, notInPos,lockKamiDispa;
extern int score,vidas,muertos, segundosChaSta,status, scoreChaSta;
int bbcollision(int b1_x, int b1_y, int b1_w, int b1_h, int b2_x, int b2_y, int b2_w, int b2_h);
#endif // MAIN_H_INCLUDED