changed some things and added map

This commit is contained in:
thatscringebro 2023-10-10 14:13:32 -04:00
parent 09f04ce82f
commit abacd48eee
4 changed files with 49 additions and 3 deletions

View File

@ -3,7 +3,7 @@
#define DELAY 30000 #define DELAY 30000
Game::Game() Game::Game()
: x(0), y(0), max_x(1000), max_y(800), direction(0), window(sf::VideoMode(max_x, max_y), "SFML Window"), :max_x(1000), max_y(800), direction(0), window(sf::VideoMode(max_x, max_y), "SFML Window"),
racecar(300.0f, 30.0f, 1.7f) { // maxSpeed, acceleration, and steerSpeed values racecar(300.0f, 30.0f, 1.7f) { // maxSpeed, acceleration, and steerSpeed values
if (!font.loadFromFile("cascaydia.otf")) { if (!font.loadFromFile("cascaydia.otf")) {
std::cerr << "Failed to load font" << std::endl; std::cerr << "Failed to load font" << std::endl;

2
game.h
View File

@ -11,8 +11,6 @@ public:
void run(); void run();
private: private:
int x;
int y;
int max_x; int max_x;
int max_y; int max_y;
int direction; int direction;

48
map Normal file
View File

@ -0,0 +1,48 @@
/¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\
/ \
/ |
/ |
/ _____________________________________________________________________________________________________________________________________________________________ |
/ / \ |
/ / | |
/ | /¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\ / |
/ | / \ _____ __________________ .___.___ / /
| || | / _ \ / _____/\_ ___ \| | | / /
| || | / /_\ \ \_____ \ / \ \/| | | / /
| || __________________________ | / | \/ \\ \___| | | / /
| || / \ | \____|__ /_______ / \______ /___|___| / /
| || / | | \/ \/ \/ / /
| || | | | __________ _____ _________ _____________________ / /
| || | / / \______ \ / _ \ \_ ___ \\_ _____/\______ \ / /
| || | / / | _/ / /_\ \/ \ \/ | __)_ | _/ / /
| || | / / | | \/ | \ \____| \ | | \ / /
| || | / / |____|_ /\____|__ /\______ /_______ / |____|_ / / /
| || | / / \/ \/ \/ \/ \/ / /
| || | / / / /
| || | / / / /
| || | / / / /
| || | | | / /
| || | | | / /
| || | \ \ / /
| || | \ \ / /
\ \/ / \ \____________________________________________________________________________________/ /
\ / \ /
\ / \ /
\ / \ /
\ / \ /
\____________________/ \_________________________________________________________________________________________________________/

Binary file not shown.