Lab 9: XNA Driving Game
- You're going to make a driving game from scratch.
- In later labs, you'll plug in the physics, but today
the goal is to get it working.
- Start XNA and make a new Windows Game application. Compile
it and run to get the blank page. (1 pt)
- Put in a racetrack background.(2 pts)
- Put in a car with a 2D position. (I initially used
a bmp.) This was by far the hardest thing for me to do on
this lab. I
eventually did a help search on ".fx" and found How to:
Create and Apply Custom Effects, to make a shaded cube.(1 pt)
- Add keyboard input for up, down, left and right.(2 pts)
- Make sure it stays on the track.(2 pt)
- Use an orientation vector for the lines. Change orientation
with left and right. Forward (and backward) now depend on
orientation. (1 pt)
- Replace the bmp with lines.(1 pt)