Air Hockey Tutorial 8

This tutorial will teach you how to use the SwinGameSDK to develop a simple air hockey game. At the end of this tutorial you should be able to use Visual Basic 6 to implement your game which makes use of Vectors, Sprites and SoundEffects.

Adding A Splash Screen
Now we need to a screen that will displayed when the game starts up and when the game is paused. First we will need to load the image. Now that the image is loaded we can set up our menu screen. To do this we need to create a method called "SplashScreen". This will display how to play the game and also introduce our game.

This code looks very similar to the "Reset" method in how the text gets displayed. This method will get displayed until user presses enter or tries to exit the program. This will be called just after we call "StartUp".

Adding a Pause Menu
Now we want the game to be paused when the user presses a key. To do this we will need to add this code to "Run". This will allow the user to use there mouse and also display our pause screen. In "Pause" we will need to display our screen and also allow the user to start a new game. If the user presses 'N' "Reset" will get called and as we don't want the 3-2-1 to be shown we will need to set the value of Reset to a number larger than 180.

Download
Here is a copy of everything that is covered in this tutorial [[media:Air Hockey Tutorial 8.zip|Air Hockey Tutorial 8.zip]]

List Of Tutorials

 * 1) Introduction
 * 2) Table
 * 3) Ball
 * 4) Player
 * 5) AI
 * 6) Scoring
 * 7) Sound
 * 8) Menu
 * 9) Finishing