X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=9f343318407a45100de8d4673dd1ed83b385143f;hb=0b8567c8bcbe637936fa01d253de81254fa4fb3e;hp=306273d1c8c79a770c9f4eb015feea976ee5e5c0;hpb=ac592f78bbedc4808c5e35fb22bc8fc9f0398c8d;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index 306273d1..9f343318 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -3,17 +3,35 @@ #include "global.h" +struct GameInfo_SP game_sp_info; +struct LevelInfo_SP native_sp_level; + void InitGameEngine_SP() { + game_sp_info.LevelSolved = FALSE; + game_sp_info.GameOver = FALSE; + +#if 0 menPlay_Click(); +#else + menPlayDemo_Click(); +#endif } void BlitScreenToBitmap_SP(Bitmap *target_bitmap) { - BlitBitmap(screenBitmap, target_bitmap, 0, 0, + BlitBitmap(screenBitmap, target_bitmap, 15 * 32, 7 * 32, SCR_FIELDX * TILEX, SCR_FIELDY * TILEY, SX, SY); } void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode) { + byte single_player_action = action[0]; + + subMainGameLoop_Main(single_player_action, warp_mode); +} + +void RedrawPlayfield_SP(boolean force_redraw) +{ + subDisplayLevel(); }