#ifndef PONG_H #define PONG_H #include "raylib.h" #include #include #include #include #include #include #include #include #define LEFT 0 #define RIGHT 1 struct Players { float Y; Rectangle HitBox; int Score; int Direction; Rectangle BallDetector; }; struct Balls { float X; float Y; float Angle; float Speed; int Direction; Rectangle HitBox; }; extern int Difficulty; extern bool GameGoing; extern atomic_int Ticks; 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); void title_screen(); //Sounds extern const int SOUND_BOUNCE; extern const int MUSIC_DEFEAT; extern const int MUSIC_VICTORY; extern const int MUSIC_TITLE; extern const int STOP_ALL_SOUNDS; #endif