Skip to content

elshobokshy/ProjectCarRacing

Repository files navigation

About this projet

INFORMATION

This project is a university project created to discover C++ and the SFML library on a more or less proffesionnel level. It was made in a two months time so it isn't yet finished.
This project is still under developement, and will be continued even after the project dead line at a slower path.

HOW TO RUN THE GAME

LINUX

  1. Use the command : make, to compile
  2. To create the map use the command : ./carRacing edit
    REFER TO THE "HOW TO EDIT THE MAP" THAT EXPLAINS HOW TO EDIT THE MAP.
  3. Run the game normally using the command : ./carRacing
    PS: You don't need to compile one more time after editing the map, just once at the start is good enough.

WHAT'S NEEDED TO RUN THE GAME

The sfml library in provided only for windows version.
Therefore, you'll need to install it.
On debian systems : sudo apt-get install libsfml-dev
On other systems, it will much likely be something similar.

WINDOWS

  1. Compile the program using the file : compiler.bat
  2. To edit the map open the file : wMapEdit.bat
    REFER TO THE "HOW TO EDIT THE MAP" THAT EXPLAINS HOW TO EDIT THE MAP.
  3. Run the game using the file : wGame.bat

HOW TO EDIT THE MAP

IMP : When the map editor is open, you MUST place the first block of the road at the top left of the screen, as this is where the car spawns at the start!

  1. Click on the left button of your mouse to change the two forms of the map either straight blocks on corner blocks.
  2. Click on the right button of your mouse to change the angle of each chosen block.
  3. Click on "spacebar" to place it when the cursor is inside the top left corner.
  4. You can move the screen afterwards using the right/left/up/down key to place the other blocks anywhere on the map.
  5. When you finish creating the map click on esc to close.
    PS: Please create a logic map.

About

Car Racing game prototype C++

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages