bd24db8b62810a1bc20f1ee720b92263c1ba0988
[rocksndiamonds.git] / src / game_sp / main.c
1
2 #include "main_sp.h"
3 #include "global.h"
4
5
6 struct GameInfo_SP game_sp_info;
7 struct LevelInfo_SP native_sp_level;
8
9 void InitGameEngine_SP()
10 {
11   game_sp_info.LevelSolved = FALSE;
12   game_sp_info.GameOver = FALSE;
13
14   InitScrollPlayfield();
15
16 #if 1
17   menPlay_Click();
18 #else
19   menPlayDemo_Click();
20 #endif
21 }
22
23 #if 0
24 void BlitScreenToBitmap_SP(Bitmap *target_bitmap)
25 {
26   DDScrollBuffer_Blt_Ext(target_bitmap);
27 }
28 #endif
29
30 void RedrawPlayfield_SP(boolean force_redraw)
31 {
32   // subDisplayLevel();
33
34   UpdatePlayfield();
35
36   BackToFront_SP();
37 }
38
39 void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode)
40 {
41   byte single_player_action = action[0];
42
43   subMainGameLoop_Main(single_player_action, warp_mode);
44
45   RedrawPlayfield_SP(FALSE);
46 }