forked from wvillanueva/Pang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
globals.h
40 lines (30 loc) · 954 Bytes
/
globals.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
#ifndef GLOBALS_H
#define GLOABLS_H
#include <Arduboy2.h>
#include <ArduboyPlaytune.h>
extern Arduboy2 arduboy;
extern ArduboyPlaytune tunes;
extern int screenWidth;
extern int screenHeight;
extern int targetFPS;
extern float milliPerFrame;
extern unsigned long lastUpdateTime;
extern char text[16]; //General string buffer
// Game Settings
extern int PlayToScore;
extern float TimeToServe;
extern float TimeToServerDefault;
extern float TimeOnGameOverScreen;
extern float TimeOnGameOverScreenDefault;
extern int PaddleWidth;
extern int PaddleHeight;
extern int PaddleXPositions;
extern float paddleMoveSpeed;
extern float ballReboundRange;
// When you boot the system, this is where the ARDUBOY intro starts from
extern float ArduboyMarkerPosY;
// Contains the calculated value for where the X Position is for the "PANG" Title
extern int TitleXPos;
// A variable to hold debug data that I can output on screen
extern float debug;
#endif