rnd-19980828
[rocksndiamonds.git] / src / main.c
index 9918892c00c6b7c814775755132fc82d0ec4a0cf..eed5609420106a9984b6cbec570c84d38565a414 100644 (file)
@@ -54,12 +54,14 @@ int         sound_simple_on = FALSE;
 int            toons_on = TRUE;
 int            direct_draw_on = FALSE;
 int            scroll_delay_on = FALSE;
+int            soft_scrolling_on = TRUE;
 int            fading_on = FALSE;
 int            autorecord_on = FALSE;
 int            joystick_nr = 0;
 int            quick_doors = FALSE;
 
-BOOL           redraw[SCR_FIELDX][SCR_FIELDY];
+BOOL           redraw[MAX_BUF_XSIZE][MAX_BUF_YSIZE];
+int            redraw_x1 = 0, redraw_y1 = 0;
 int            redraw_mask;
 int            redraw_tiles;
 
@@ -80,12 +82,15 @@ long                Elementeigenschaften[MAX_ELEMENTS];
 int            level_nr, leveldir_nr, num_leveldirs;
 int            lev_fieldx,lev_fieldy, scroll_x,scroll_y;
 
-int            JX,JY, JX2,JY2, ZX,ZY, ExitX,ExitY;
-int            PlayerMovDir, PlayerMovPos, PlayerFrame, PlayerPushing;
-int            PlayerGone,LevelSolved,GameOver;
-int            FrameCounter,TimeFrames,TimeLeft,Score;
-int            Gems,SokobanFields,Lights,Friends;
-int            Dynamite,Key[4],MampferNr;
+int            FX = SX, FY = SY, ScreenMovPos = 0, ScrollStepSize = TILEX/8;
+int            BX1 = 0, BY1 = 0, BX2 = SCR_FIELDX-1, BY2 = SCR_FIELDY-1;
+int            JX,JY, lastJX,lastJY, ZX,ZY, ExitX,ExitY;
+int            PlayerMovDir, PlayerMovPos, PlayerPushing;
+int            PlayerFrame, PlayerGfxPos;
+int            PlayerGone, LevelSolved, GameOver;
+int            FrameCounter, TimeFrames, TimeLeft, Score;
+int            Gems, SokobanFields, Lights, Friends;
+int            Dynamite, Key[4], MampferNr;
 int            DynaBombCount, DynaBombSize, DynaBombsLeft, DynaBombXL;
 int            SiebAktiv;