The State of Things

A basic XNA rewrite of the classic DONKEY.BAS game

Drive Fast And Dodge The Oncoming Obstacles


Back in 1981, there was a game co-written by Bill Gates and  released for the early versions of the PC-Dos operating system, called Donkey.bas. Drive Fast and Dodge the Oncoming obstacles is an XNA clone done in honor of that game. This game was used in my Portland Code Camp 3.0 presentation as a demonstration of just how quickly you can construct a 2D game using the XNA game development framework.



I have enhanced the game to be a full "single-switch" game so that the player can actually move through and exit the game without using any other keys than the spacebar. Creating accessibility games like that is a good challenge for game developers as well as a huge benefit to people with handicaps and disabilities.




So how does it play?

The game play for "Drive Fast And Dodge The Oncoming Obstacles" is about as simple as you can get. The player dodges oncoming obstacles in the road by changing lanes. As the car successfully passes obstacles, the speed of the car increases. The number of obstacles the player has passed is tracked and if the player successfully passes 100 obstacles before their lives run out, they have successfully beaten the game.


Spacebar - start/restart the game, change lanes




What kinds of things can you learn from the source code?

My goal for this game was to create a very simplistic introductory 2D game. I kept the design of the game simple on purpose as well as the development techniques that were used. This game has the basics for keyboard input, time tracking variables, loading 2D sprites and movement. It also has a great example of scrolling a background vertically and showcases some good object re-use. 

Take a look at the code play with it and most of all, make sure you are having fun!

Technorati Tags: