changed some things and added map
This commit is contained in:
parent
09f04ce82f
commit
abacd48eee
2
game.cpp
2
game.cpp
@ -3,7 +3,7 @@
|
||||
#define DELAY 30000
|
||||
|
||||
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
|
||||
if (!font.loadFromFile("cascaydia.otf")) {
|
||||
std::cerr << "Failed to load font" << std::endl;
|
||||
|
||||
2
game.h
2
game.h
@ -11,8 +11,6 @@ public:
|
||||
void run();
|
||||
|
||||
private:
|
||||
int x;
|
||||
int y;
|
||||
int max_x;
|
||||
int max_y;
|
||||
int direction;
|
||||
|
||||
48
map
Normal file
48
map
Normal file
@ -0,0 +1,48 @@
|
||||
/¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\
|
||||
/ \
|
||||
/ |
|
||||
/ |
|
||||
/ _____________________________________________________________________________________________________________________________________________________________ |
|
||||
/ / \ |
|
||||
/ / | |
|
||||
/ | /¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯\ / |
|
||||
/ | / \ _____ __________________ .___.___ / /
|
||||
| || | / _ \ / _____/\_ ___ \| | | / /
|
||||
| || | / /_\ \ \_____ \ / \ \/| | | / /
|
||||
| || __________________________ | / | \/ \\ \___| | | / /
|
||||
| || / \ | \____|__ /_______ / \______ /___|___| / /
|
||||
| || / | | \/ \/ \/ / /
|
||||
| || | | | __________ _____ _________ _____________________ / /
|
||||
| || | / / \______ \ / _ \ \_ ___ \\_ _____/\______ \ / /
|
||||
| || | / / | _/ / /_\ \/ \ \/ | __)_ | _/ / /
|
||||
| || | / / | | \/ | \ \____| \ | | \ / /
|
||||
| || | / / |____|_ /\____|__ /\______ /_______ / |____|_ / / /
|
||||
| || | / / \/ \/ \/ \/ \/ / /
|
||||
| || | / / / /
|
||||
| || | / / / /
|
||||
| || | / / / /
|
||||
| || | | | / /
|
||||
| || | | | / /
|
||||
| || | \ \ / /
|
||||
| || | \ \ / /
|
||||
\ \/ / \ \____________________________________________________________________________________/ /
|
||||
\ / \ /
|
||||
\ / \ /
|
||||
\ / \ /
|
||||
\ / \ /
|
||||
\____________________/ \_________________________________________________________________________________________________________/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
BIN
terminal_racer
BIN
terminal_racer
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user