Please explain to me what's going wrong in here.
I've just include the Tractor Land game, I have all the functions needed, I think I've done everything correctly here, but if I hit F2 to try and go to the game it just sits on the select screen. If I then hit F1, it will go to the Invaders game and play just fine. What have I forgotten?
Code: Select all
#include <StandardDef.h>
#include <Arcade.h>
#include "Invaders\Invaders.h"
#include "TracLand\TracLand.h"
#include "Arcade Data.h"
#define NUM_GAMES_AVAILABLE 2
char* mszArcadeGameNames[NUM_GAMES_AVAILABLE] =
{
"Invaders",
"Tractor Land",
// "Your new game name"
};
ARCADE_GAME_FUNCTION_TABLE maxArcadeFunctionTable[NUM_GAMES_AVAILABLE] =
{
// Update Function, Free function, Init function, Keypress functions
{ InvadersUpdate, InvadersFreeGraphics, InvadersInitGraphics, InvadersKeyDown, InvadersKeyUp },
{ LandUpdate, LandFreeGraphics, LandInitGraphics, LandKeyDown, LandKeyUp },
// { YourNewUpdateFunction, YourNewFreeGraphics, YourNewInitGraphics, YourNewKeyDown, YourNewKeyUp },
};