// ==========================================================================
loc_g_6312:
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si - FieldWidth] = 0x103;
PlayField16[*si] = 0x300;
*si = *si - FieldWidth;
// ==========================================================================
loc_g_6364:
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si + FieldWidth] = 0x303;
PlayField16[*si] = 0x300;
*si = *si + FieldWidth;
loc_g_63D3:
subSoundFXBase();
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si - FieldWidth] = 0x503;
PlayField16[*si] = 0x300;
*si = *si - FieldWidth;
loc_g_6459:
subSoundFXBase();
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si + FieldWidth] = 0x703;
PlayField16[*si] = 0x300;
*si = *si + FieldWidth;
loc_g_65C6:
subSoundFXInfotron();
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si - FieldWidth] = 0x903;
PlayField16[*si] = 0x300;
*si = *si - FieldWidth;
loc_g_662A:
subSoundFXInfotron();
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si + FieldWidth] = 0xB03;
PlayField16[*si] = 0x300;
*si = *si + FieldWidth;
return subAnimateMurphy;
#if 1
- printf("::: Murphy.c: !!!!!!!!!! GAME SOLVED !!!!!!!!!!\n");
+ if (!game_sp_info.LevelSolved)
+ printf("::: Murphy.c: !!!!!!!!!! LEVEL %d SOLVED !!!!!!!!!!\n",LevelNumber);
+#endif
+
+#if 1
+ game_sp_info.LevelSolved = TRUE;
#endif
subSoundFXExit();
// ==========================================================================
loc_g_69A6:
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si] = 0x1C03;
PlayField16[*si - FieldWidth] = 0x300;
goto loc_StopNoSplit;
// ==========================================================================
loc_g_69F7:
- dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpRight);
+ dx = (MurphyVarFaceLeft == 0 ? aniMurphyEatUpRight : aniMurphyEatUpLeft);
PlayField16[*si] = 0x1E03;
PlayField16[*si + FieldWidth] = 0x300;
goto loc_StopNoSplit;
MurphyScreenYPos = MurphyScreenYPos + MurphyDY;
#endif
+
+#if 0
+ printf("::: %04d [%03ld, %02d] ----------> %s [%d] [%d, %d] [%d, %d] [%d]\n",
+ TimerVar,
+ DemoOffset - DemoPointer, DemoKeyRepeatCounter,
+ (DemoKeyCode == keyNone ? "(none)" :
+ DemoKeyCode == keyLeft ? "left" :
+ DemoKeyCode == keyRight ? "right" :
+ DemoKeyCode == keyUp ? "up" :
+ DemoKeyCode == keyDown ? "down" :
+ DemoKeyCode == keySpace ? "space" :
+ DemoKeyCode == keySpaceLeft ? "space + left" :
+ DemoKeyCode == keySpaceRight ? "space + right" :
+ DemoKeyCode == keySpaceUp ? "space + up" :
+ DemoKeyCode == keySpaceDown ? "space + down" : "(unknown)"),
+ DemoKeyCode,
+ MurphyScreenXPos, MurphyScreenYPos,
+ MurphyPosIndex % 60, MurphyPosIndex / 60,
+ ClearPos);
+#endif
+
+#if 0
+ Delay(500);
+#endif
+
#if 1
if (!(ClearPos < 0)) // clear field that murphy is leaving
subCopyFieldToScreen(ClearPos, 0);
X = GetStretchX(dxPos) + tDeltaX;
Y = GetStretchY(dxPos) + tDeltaY;
- Tmp = (SeqPos < 0 ? 0 : 0); // 9StepBugFix!(red disk move right)
+ Tmp = (SeqPos < 0 ? 0 : SeqPos); // 9StepBugFix!(red disk move right)
StretchedSprites.BltEx(X, Y, dx[Tmp]);
#if 1
loc_g_6F77:
ExitToMenuFlag = 1;
+
+#if 1
+ PlayField16[*si] = fiSpace; // remove Murphy from playfield after exiting
+#endif
+
return subAnimateMurphy;
// ==========================================================================
int i, cx, bx;
+#if 1
+ cx = LInfo.SpecialPortCount; // number of special ports
+
+ for (i = 0; i < cx; i++)
+ {
+#if 1
+ /* this assumes that PortLocation is stored as big endian */
+ bx = LInfo.SpecialPort[i].PortLocation;
+#else
+ /* this assumes that PortLocation is stored as little endian */
+ bx = HighByte(LInfo.SpecialPort[i].PortLocation);
+ MovHighByte(&bx, LowByte(LInfo.SpecialPort[i].PortLocation));
+#endif
+
+ if (bx / 2 == si)
+ {
+ GravityFlag = LInfo.SpecialPort[i].Gravity;
+ FreezeZonks = LInfo.SpecialPort[i].FreezeZonks;
+ SnikSnaksElectronsFrozen = LInfo.SpecialPort[i].FreezeEnemies;
+
+ // RandomTime = RandomTime Xor RandomSeed 'is RandomTime used at all? no!
+
+ break;
+ }
+ }
+
+#else
+
cx = LInfo.SpecialPortCount; // number of special ports
for (i = 1; i <= cx; i++)
{
// RandomTime = RandomTime Xor RandomSeed 'is RandomTime used at all? no!
i = cx + 1;
}
-
}
}
+#endif
return subSpPortTest;
} // subSpPortTest