rnd-20100216-3-src
authorHolger Schemel <info@artsoft.org>
Tue, 16 Feb 2010 16:46:36 +0000 (17:46 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:58:33 +0000 (10:58 +0200)
* done integrating R'n'D graphics engine into file "Zonk.c"

ChangeLog
src/conf_gfx.c
src/conftime.h
src/game_sp/Zonk.c

index c1f4a80d430a7b6b0c2f6559d84b5d06a793d90e..7bab90c53c682be21045e0cbbb211916118a0354 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
        * fixed bug in native Supaplex engine that broke several demo solutions
        * done integrating R'n'D graphics engine into file "SnikSnaks.c"
        * done integrating R'n'D graphics engine into file "Electrons.c"
+       * done integrating R'n'D graphics engine into file "Zonk.c"
 
 2010-02-14
        * done integrating R'n'D graphics engine into file "Murphy.c"
index 70a30912420ec2ca4b5fa4c2b152f1801fd651dd..b781128a4d92a2e025d3657f8f53ac8e6d9db78c 100644 (file)
@@ -292,26 +292,26 @@ struct ConfigInfo image_config[] =
   { "sp_zonk.moving.left.xpos",                        "0"                     },
   { "sp_zonk.moving.left.ypos",                        "6"                     },
   { "sp_zonk.moving.left.frames",              "4"                     },
-  { "sp_zonk.moving.left.delay",               "2"                     },
+  { "sp_zonk.moving.left.delay",               "1"                     },
   { "sp_zonk.moving.left.anim_mode",           "reverse"               },
   { "sp_zonk.moving.right",                    "RocksSP.pcx"           },
   { "sp_zonk.moving.right.xpos",               "0"                     },
   { "sp_zonk.moving.right.ypos",               "6"                     },
   { "sp_zonk.moving.right.frames",             "4"                     },
   { "sp_zonk.moving.right.start_frame",                "1"                     },
-  { "sp_zonk.moving.right.delay",              "2"                     },
+  { "sp_zonk.moving.right.delay",              "1"                     },
   { "sp_zonk.pushing.left",                    "RocksSP.pcx"           },
   { "sp_zonk.pushing.left.xpos",               "0"                     },
   { "sp_zonk.pushing.left.ypos",               "6"                     },
   { "sp_zonk.pushing.left.frames",             "4"                     },
-  { "sp_zonk.pushing.left.delay",              "2"                     },
+  { "sp_zonk.pushing.left.delay",              "1"                     },
   { "sp_zonk.pushing.left.anim_mode",          "reverse"               },
   { "sp_zonk.pushing.right",                   "RocksSP.pcx"           },
   { "sp_zonk.pushing.right.xpos",              "0"                     },
   { "sp_zonk.pushing.right.ypos",              "6"                     },
   { "sp_zonk.pushing.right.frames",            "4"                     },
   { "sp_zonk.pushing.right.start_frame",       "1"                     },
-  { "sp_zonk.pushing.right.delay",             "2"                     },
+  { "sp_zonk.pushing.right.delay",             "1"                     },
 
   { "sp_base",                                 "RocksSP.pcx"           },
   { "sp_base.xpos",                            "2"                     },
index 900d4568ee559a5bf08f2f5099cdb8b7f5c38c66..f6b24ec44faf4746581484e14bdc43c3685f2207 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "2010-02-16 17:12"
+#define COMPILE_DATE_STRING "2010-02-16 17:44"
index 0c00be8e0e6bed064d3f778f2cb3a96359bd6f46..d6a31acccd361beaff5cd0105d9d804ff3af97a6 100644 (file)
@@ -131,8 +131,13 @@ loc_g_0DE8: // zonk comes falling from above
   X = GetStretchX(si);
   Y = GetStretchY(si - FieldWidth);
   dx = bl & 0x7;
+#if 1
+  StretchedSprites.BltImg(X, Y, aniSpace, 0);
+  StretchedSprites.BltImg(X, Y + TwoPixels * (dx + 1), aniZonk, dx);
+#else
   StretchedSprites.BltEx(X, Y, 0);
   StretchedSprites.BltEx(X, Y + TwoPixels * (dx + 1), fiZonk);
+#endif
   // +++++++++++++++++++++++++++++++++++++++++++++++++++++
   bl = HighByte(PlayField16[si]) + 1;
   if (bl == 0x16)
@@ -262,8 +267,13 @@ loc_g_0F83: // zonk comes rolling from right to left
   X = GetStretchX(si + 1);
   Y = GetStretchY(si);
   dx = (bl & 0x7) + 1;
+#if 1
+  StretchedSprites.BltImg(X, Y, aniSpace, 0);
+  StretchedSprites.BltImg(X - (TwoPixels * dx), Y, aniZonkRollLeft, dx - 1);
+#else
   StretchedSprites.BltEx(X, Y, 0);
   StretchedSprites.BltEx(X - (TwoPixels * dx), Y, aniFramesZonkRollLeft[dx - 1]);
+#endif
   // +++++++++++++++++++++++++++++++++++++++++++++++++++++
   bl = HighByte(PlayField16[si]) + 1; // get and increment sequence#
   if (bl == 0x24)
@@ -294,8 +304,13 @@ loc_g_0FE8: // zonk comes rolling from left to right
   X = GetStretchX(si - 1);
   Y = GetStretchY(si);
   dx = (bl & 0x7) + 1;
+#if 1
+  StretchedSprites.BltImg(X, Y, aniSpace, 0);
+  StretchedSprites.BltImg(X + (TwoPixels * dx), Y, aniZonkRollRight, dx - 1);
+#else
   StretchedSprites.BltEx(X, Y, 0);
   StretchedSprites.BltEx(X + (TwoPixels * dx), Y, aniFramesZonkRollRight[dx - 1]);
+#endif
   // +++++++++++++++++++++++++++++++++++++++++++++++++++++
   bl = HighByte(PlayField16[si]) + 1;
   if (bl == 0x34)
@@ -346,8 +361,13 @@ loc_g_107B: // zonk rolls left
   X = GetStretchX(si);
   Y = GetStretchY(si);
   dx = (bl & 0xF) + 1;
+#if 1
+  StretchedSprites.BltImg(X, Y, aniSpace, 0);
+  StretchedSprites.BltImg(X - (TwoPixels * dx), Y, aniZonkRollLeft, dx - 1);
+#else
   StretchedSprites.BltEx(X, Y, 0);
   StretchedSprites.BltEx(X - (TwoPixels * dx), Y, aniFramesZonkRollLeft[dx - 1]);
+#endif
   // +++++++++++++++++++++++++++++++++++++++++++++++++++++
   bl = HighByte(PlayField16[si]) + 1; // retrieve and increment sequence#
   if (bl < 0x52)
@@ -383,8 +403,13 @@ loc_g_10E9: // zonk rolls right
   X = GetStretchX(si);
   Y = GetStretchY(si);
   dx = (bl & 0x7) + 1;
+#if 1
+  StretchedSprites.BltImg(X, Y, aniSpace, 0);
+  StretchedSprites.BltImg(X + (TwoPixels * dx), Y, aniZonkRollRight, dx - 1);
+#else
   StretchedSprites.BltEx(X, Y, 0);
   StretchedSprites.BltEx(X + (TwoPixels * dx), Y, aniFramesZonkRollRight[dx - 1]);
+#endif
   // +++++++++++++++++++++++++++++++++++++++++++++++++++++
   bl = HighByte(PlayField16[si]) + 1;
   if (bl < 0x62)