X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_sp%2Fmain.c;h=be2cb29fcde4758aac875a5578c0c317076f663d;hb=29ea60b3d59414875c3bbc59e64f62d2e236ef2a;hp=ce409eb4551e3fe882a64f3af7ba37adbb003573;hpb=bc739f556617ab3e83f1beb7e0a446b9d074b8ee;p=rocksndiamonds.git diff --git a/src/game_sp/main.c b/src/game_sp/main.c index ce409eb4..be2cb29f 100644 --- a/src/game_sp/main.c +++ b/src/game_sp/main.c @@ -3,9 +3,15 @@ #include "global.h" +struct GameInfo_SP game_sp_info; +struct LevelInfo_SP native_sp_level; + void InitGameEngine_SP() { -#if 0 + game_sp_info.LevelSolved = FALSE; + game_sp_info.GameOver = FALSE; + +#if 1 menPlay_Click(); #else menPlayDemo_Click(); @@ -14,10 +20,17 @@ void InitGameEngine_SP() void BlitScreenToBitmap_SP(Bitmap *target_bitmap) { - BlitBitmap(screenBitmap, target_bitmap, 15 * 32, 7 * 32, - SCR_FIELDX * TILEX, SCR_FIELDY * TILEY, SX, SY); + DDScrollBuffer_Blt_Ext(target_bitmap); } 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(); }