X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=3139a0206ef16793b1cc9ee1b048e131a0ee488c;hb=055b582fdcaeddfa6dbb240eb591ec61f37e21d3;hp=74902a0c897c50ac1e974309e017e3574ba9ac4f;hpb=5ba7f2d9a3f07f342afdf215a3307d5487cb6d43;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index 74902a0c..3139a020 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -3,15 +3,28 @@ #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, 15 * 32, 7 * 32, + SCR_FIELDX * TILEX, SCR_FIELDY * TILEY, SX, SY); } void GameActions_SP(byte action[MAX_PLAYERS], boolean warp_mode) { + subMainGameLoop_Main(); }