-
Notifications
You must be signed in to change notification settings - Fork 0
/
idleballz.h
51 lines (42 loc) · 951 Bytes
/
idleballz.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
#ifndef IDLEBALLZ_H_INCLUDED
#define IDLEBALLZ_H_INCLUDED
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <unistd.h>
#include <time.h>
#include "OpenDoor.h"
#include "version.h"
unsigned long int score=100;
int upgrade=10;
#define PROGRAM_NAME "IdleBallz"
#define BOARD_WIDTH 61
#define BOARD_HEIGHT 21
void add_player_idx(void);
int get_player_idx(void);
int get_total_idx(void);
int load_player(void);
//void bubble_sort(struct PlyrRec list[80], int s);
//int scan_for_player(char *username, struct PlyrRec *Plyr);
void SavePlyr(void);
void gameExit(int erorlevel);
struct PlyrRec {
int Index;
char Name[32];
float time;
}Plyr;
struct balls {
int active;
int x;
int y;
int up;
int down;
int left;
int right;
int price;
};
char PlyrFile[15]="player.dat";
char PlyrIdxFile[15]="player.idx";
char PlyrScoreFile[15]="player.txt";
#endif // IDLEBALLZ_H_INCLUDED