Nov 162013
 

Using all previous articles, lets make a (almost complete) car racing game which we will call Vroom V1.

This is a mono screen game (v2 will be multiple screens).
This is a one player game (v2 will multi players).
Gamepad is not yet supported (v2 will).
A score.txt file is generated at the end of each track.

V1 and V2 have 8 tracks (v2 may have more).

A v3 in the future may support network games, extra items on the track, choose controls, choose car colors, choose difficulty, etc.

Controls are easy :
-F1 to start the track.
-up/down to speed up/speed down.
-left/right to turn left/right.
-hitting the side tracks will slow down the speed.

Working but not satisfied : could not use the pixel detection (since car is rotating) and therefore went to color detection.

A next article will review pixel collision with rotation shapes.

Any feedback, suggestions, ideas, remarks welcome 🙂

Binary here : vrooom
If you want the source code, please contact me and I’ll be happy to share.
Remember that you have to install xna runtime.

EDIT : code source here :vroom_v1_src

EDIT : Look at which is an improved version.

Thanks to my son Ewen who was my beta tester (and graphist) on this one 🙂

 Posted by at 15 h 18 min

  2 Responses to “VB.Net and XNA : Vrooom V1 (car racing game)”

  1. Hi.
    I’m teatcher and i would like to analyse your code for my students.
    Many thanks 🙂
    AntĂłnio

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

Ce site utilise Akismet pour réduire les indésirables. En savoir plus sur comment les données de vos commentaires sont utilisées.