#include"iGraphics.h" #include <SDL2/SDL.h> #include <SDL2/SDL_mixer.h> #include <cstdlib> #include <ctime> #include <string> #include <fstream> #include <sstream> #include <GL/freeglut.h> #include <GL/glut.h> #include <vector> #include <algorithm> // ================== GAME CONSTANTS ================== // #define screenWidth 1800 // #define screenHeight 1004 #define N_CLOUDS 4 #define N_PIPES 8 #define N_COINS 10 #define N_BEAMS 3 #define N_GERMS 2 #define COIN_WIDTH 30 #define COIN_HEIGHT 30 #define COIN_SPEED 9 #define COIN_FRAMES 6 #define BIRD_WIDTH 50 #define BIRD_HEIGHT 50 #define PIPE_WIDTH 70 #define PIPE_GAP 250 #define GRAVITY 0.5f #define JUMP_VELOCITY 10.0f #define PIPE_SPEED 7 #define N_FRAMES 5 #define BEAM_WIDTH 20 #define BEAM_HEIGHT 10 #define BEAM_VELOCITY 12 #define GERM_WIDTH 40 #define N_PIPE_SPRITES 4 #define GERM_HEIGHT 40 #define GERM_SPEED 7 #define GERM_FRAMES 3 #define JUMP_COOLDOW...