-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommon.c
More file actions
61 lines (44 loc) · 1.86 KB
/
common.c
File metadata and controls
61 lines (44 loc) · 1.86 KB
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
//**************************************************************************************************
// Name: John Renner
// Date: 12/16/2024
// Course: ELEC3371-01
// Description: Frogger Final
//**************************************************************************************************
#include "common.h"
char rightMessage[15] = {'R', 'I', 'G', 'H', 'T', ' ', 'P', 'R', 'E', 'S', 'S', 'E', 'D', 0x0D, 0x0A};
char downMessage[14] = {'D', 'O', 'W', 'N', ' ', 'P', 'R', 'E', 'S', 'S', 'E', 'D', 0x0D, 0x0A};
char leftMessage[14] = {'L', 'E', 'F', 'T', ' ', 'P', 'R', 'E', 'S', 'S', 'E', 'D', 0x0D, 0x0A};
char upMessage[12] = {'U', 'P', ' ', 'P', 'R', 'E', 'S', 'S', 'E', 'D', 0x0D, 0x0A};
char pauseMessage[8] = {'P', 'A', 'U', 'S', 'E', 'D', 0X0D, 0X0A};
char unpauseMessage[10] = {'U', 'N', 'P', 'A', 'U', 'S', 'E', 'D', 0X0D, 0X0A};
char timeMessage[13] = {'s', ' ', 'R', 'E', 'M', 'A', 'I', 'N', 'I', 'N', 'G', 0x0D, 0x0A};
char numstring[10];
unsigned int pauseState = 0;
unsigned int counter = 61;
unsigned int speed;
unsigned int x, ones, tens;
unsigned int goal1 = 0, goal2 = 0, goal3 = 0, goal4 = 0, goal5 = 0;
signed int lives = 3;
unsigned int i;
unsigned int n;
unsigned int k;
signed int score = 0;
char scoreString[15];
unsigned int flag_1s = 0;
unsigned int flag_gs = 0;
unsigned int maxRow = 240;
unsigned int highscore1 = 0, highscore2 = 0, highscore3 = 0;
char highscore1_str[10];
char highscore2_str[10];
char highscore3_str[10];
char highscore1_name[3] = {'A', 'A', 'A'};
char highscore2_name[3] = {'B', 'B', 'B'};
char highscore3_name[3] = {'C', 'C', 'C'};
unsigned int level = 1;
char level_str[3];
unsigned int enterNameMode;
unsigned int char1 = 97;
unsigned int char2 = 97;
unsigned int char3 = 97;
unsigned int charSelect = 1;
char playerName[3];