forked from devpack/mayhem
-
Notifications
You must be signed in to change notification settings - Fork 2
/
intro_sequence.h
executable file
·77 lines (61 loc) · 1.98 KB
/
intro_sequence.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef __INTROSEQUENCE_H__
#define __INTROSEQUENCE_H__
#include "game_mgr.h"
#include "mapping_joy.h"
#include "ticktimer.h"
class IntroSequence : public GameSequence {
public:
IntroSequence(GameSequence *previous, float zoom = 10.0,
float zoomspeed = 0.5, int players = 2, int level = 0,
int lives = 10, bool dca = false, bool wall = true);
~IntroSequence();
void DrawZoomedLogoInCenter(int y1, int y2);
private:
static const int mini, maxi;
GameSequence *doTick(ALLEGRO_BITMAP *screen_buffer,
bool key_pressed[ALLEGRO_KEY_MAX],
bool key_down[ALLEGRO_KEY_MAX], bool *exit_game,
double dt) override;
void handle_key_presses(bool key_pressed[ALLEGRO_KEY_MAX], bool *reload,
bool *startgame, bool *exit);
double iZoom;
double iZoomMax;
double iZoomSpeed;
ALLEGRO_BITMAP *iLogo = nullptr;
ALLEGRO_BITMAP *iDoublebuffer = nullptr;
int width;
int height;
int playerschoice;
int levelchoice;
int liveschoice;
bool dcachoice;
bool wallchoice;
void cycle_control(int playerno);
bool do_js_action(JoyButton button);
ALLEGRO_COLOR black;
ALLEGRO_COLOR red;
ALLEGRO_COLOR lightred;
bool isRunning = true;
bool quickExit = false;
bool canQuickExit = false;
int menuitems = 32;
int menuselected = 0;
char menutext[50];
TickTimer joystick_action_timer;
int menu_exit_idx = 0;
int menu_resolution_idx = 0;
int menu_joy_kbd_idx = 0;
int menu_kbd_layout1_idx = 0;
int menu_kbd_layout2_idx = 0;
int menu_kbd_layout3_idx = 0;
int menu_kbd_layout4_idx = 0;
int menu_kbd_layout_end = 0;
int menu_joy_layout1_idx = 0;
int menu_joy_layout2_idx = 0;
int menu_joy_layout3_idx = 0;
int menu_joy_layout4_idx = 0;
int menu_joy_layout_end = 0;
bool selecting_new_keyboard_button = false;
bool selecting_new_joystick_button = false;
};
#endif