diff options
author | Charadon <dev@iotib.net> | 2022-06-13 16:14:20 -0400 |
---|---|---|
committer | Charadon <dev@iotib.net> | 2022-06-13 16:14:20 -0400 |
commit | 01f47242692c8c5c413b876610061418249e2bd6 (patch) | |
tree | 3f4d85393bb037f81e0dba06331b8fa7c2d2fd0a /src/pong.h | |
parent | 129c32fc63270fd622de10eb6bb336ba4702a4e6 (diff) | |
download | Pong-C-01f47242692c8c5c413b876610061418249e2bd6.tar.gz |
Added liberapay link, and more fruitless work on the internal_clock
Diffstat (limited to 'src/pong.h')
-rw-r--r-- | src/pong.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/pong.h b/src/pong.h index eef1150..b847a8a 100644 --- a/src/pong.h +++ b/src/pong.h @@ -8,6 +8,7 @@ #include <SDL2/SDL_mutex.h> #include <SDL2/SDL_thread.h> #include <SDL2/SDL_atomic.h> +#include <SDL2/SDL_timer.h> #include <stdio.h> #include <time.h> #include <unistd.h> @@ -50,10 +51,16 @@ extern struct Settings GlobalSettings; extern int Difficulty; extern bool GameGoing; -extern SDL_atomic_t Ticks; extern char VersionString[256]; extern SDL_atomic_t AudioInitializing; +//Clock +extern double NewTime; +extern double OldTime; +extern double Milliseconds; +extern double DeltaTime; +extern 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); @@ -61,5 +68,6 @@ int title_screen(); void versus_main(); void marathon_main(); void set_screen_mode(); +int internal_clock(); #endif |