This is a top-down racing game that I wrote to add interactivity to my stand at the national science and engineering competition.
I have placed it online as example of how to use QT alongside Box2D, not because I feel that my code is a particularly good example, but because I couldn't find any others.
If you find any bugs, or bad practice, feel free to contact me. I'll probably reply, but don't expect me to fix it.

The game requires the use of wired PS3 remotes and linux. Ensure that you have the joystick API in your kernel. You will in most distributions, including ubuntu. To test your remote, type the following into the terminal:
Code:
cat /dev/input/js0
Now press some buttons on the remote. If nothing happens in the terminal / in the game then:
1) Unplug the wire
2) Press "PS"
3) Plug the wire back in
4) Select restart
5) Unpause the game.
If the command doesn't produce an error, but also doesn't respond to button presses even after following the above procedure, ensure that your PS3 is turned off.
Control Scheme:
Cross / R2 - Accelerator
L / R stick - Steer
Square / R1 - Handbrake
Circle / L2 - Reverse
Start - (Un)pause
Select - Return to previous checkpoint
I'm releasing this before I start working on the actual level, since I'd have to speak to the artist about whether I can release the graphics I'll be using on it or not. Instead, you get my lovely 256-colour grayscale friction map!
And yes, I know how hard it is to steer.
Edit:To use the files below, you have to extract them using tar. Since you're going to be using linux to run the game, this shouldn't be a problem. Typing the following into the terminal should do it:
Code:
mkdir ~/DrivingGame
cp ~/Downloads/DrivingGame.tar.gz ~/DrivingGame
cd ~/DrivingGame
tar -xf DrivingGame.tar.gz