#ifndef PONG_H #define PONG_H #define MOUSE_LEFT_BUTTON MOUSE_BUTTON_LEFT #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sounds.h" #define LEFT 0 #define RIGHT 1 /* Controller Macros */ #define CONTROLLER_ACTIVATE 1 #define CONTROLLER_LEFT 2 #define CONTROLLER_RIGHT 3 #define CONTROLLER_UP 4 #define CONTROLLER_DOWN 5 #define CONTROLLER_PAUSE 6 struct Players { float Y; Rectangle HitBox; int Score; int Direction; Rectangle BallDetector; int NextTick; }; struct Balls { float X; float Y; float Angle; float Speed; int Direction; Rectangle HitBox; int NextTick; }; struct Settings { int SoundVolume; int MusicVolume; int Fullscreen; }; extern struct Settings GlobalSettings; extern int Difficulty; extern bool GameGoing; extern SDL_atomic_t Ticks; extern char VersionString[256]; extern SDL_atomic_t AudioInitializing; extern double Started; void enemy(struct Players *Enemy, struct Balls ball); void ball(Rectangle *Player, Rectangle *Enemy, struct Balls *Ball, int *PlayerScore, int *EnemyScore); bool play_audio(int SoundEffect); int title_screen(); void versus_main(); void marathon_main(); void set_screen_mode(); bool pause_screen(Camera2D *MainCamera); int player_controls(); int player_controls_pressed(); #endif