mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
New feature: Minigames are interactive actions that happen in a dedicated screen. For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=msg&goto=347722&#msg_347722
GameDir >= r2350 is required. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8346 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#ifndef __MINIGAME_H
|
||||
#define __MINIGAME_H
|
||||
|
||||
/**
|
||||
* @file
|
||||
* @author Flugente (bears-pit.com)
|
||||
*/
|
||||
|
||||
// Flugente: lets create a few minigames
|
||||
enum
|
||||
{
|
||||
MINIGAME_FIRST = 0,
|
||||
TETRIS = MINIGAME_FIRST,
|
||||
};
|
||||
|
||||
// enums of gamestates
|
||||
enum
|
||||
{
|
||||
MINIGAME_STARTSCREEN = 0,
|
||||
MINIGAME_GAME,
|
||||
MINIGAME_GAMEOVER,
|
||||
MINIGAME_PAUSE,
|
||||
};
|
||||
|
||||
void SetNextGame( UINT32 ausGame, UINT32 ausGameState = MINIGAME_STARTSCREEN );
|
||||
|
||||
UINT32 MiniGameScreenInit( void );
|
||||
UINT32 MiniGameScreenHandle( void );
|
||||
UINT32 MiniGameScreenShutdown( void );
|
||||
|
||||
void MiniGame_Init_Tetris();
|
||||
UINT32 MiniGame_Handle_Tetris();
|
||||
|
||||
#endif //__MINIGAME_H
|
||||
Reference in New Issue
Block a user