Palace Run
Race through a long palace before the sand runs out. Fight the guards with your sword, jump the spike pits and slip through the gates while they are open.
How to play
โ and โ run, โ jumps and Space swings the sword. Potions mend you. Reach the princess at the far end.
The things in it
| Prince | Platform movement, with a swing animation. |
|---|---|
| Palace Guard | Patrols, falls with gravity, and has a swing animation too. |
| Sword Swish | A quick flash made in front of the prince when he swings. |
| Palace Gate | Two animations: stopped (shut) and open. |
| Health, Sand Timer | A bar and a timer that counts down from 2 minutes 30. |
| Vizier Says | A text with three lines, shown one after another. |
The sword
Global value F remembers which way the prince faces: 1 for right, -1 for left. The sword swish is made 26 pixels in front of him, times F, so it appears on the side he faces.
Each guard counts its own hits in value A. That is how every guard needs three hits, however many there are.
The gates
Every 2.5 seconds the gates switch switch 1. Switch on shows the open animation, off shows stopped. When a shut gate overlaps the prince, he is put back 6 pixels and stopped, like a wall.