Difference between revisions of "Room geometry"

From Princed Wiki
Jump to: navigation, search
(Created page with "Internally, the game uses resolution 140×200. The screen area is used the following way: * 140 horizontal pixels are divided into 10 room tiles, 14 pixels each. * 200 vertica...")
 
 
Line 9: Line 9:
  
 
{| class="wikitable"
 
{| class="wikitable"
! Title || X displacement, <br>game pixels || Length in frames || Animation
+
! Title || X displacement, <br>game pixels || Duration, <br> frames || Animation
 
|-
 
|-
 
| Crouch ||  3 ||  3 ||  [[File:Sit1.gif]]
 
| Crouch ||  3 ||  3 ||  [[File:Sit1.gif]]

Latest revision as of 13:50, 23 January 2021

Internally, the game uses resolution 140×200. The screen area is used the following way:

  • 140 horizontal pixels are divided into 10 room tiles, 14 pixels each.
  • 200 vertical pixels are divided into 3 63-pixel tiles, plus 3 pixels from the room above, plus 8 pixels for a status line.

When the game runs in VGA mode, the actual screen resolution is 320×200. The horizontal screen resolution doesn't match the game resolution, meaning that moving an object (e.g. kid or guard) 1 game pixel left or right will result it to be moved by 2px or 3px on the screen.


Title X displacement,
game pixels
Duration,
frames
Animation
Crouch 3 3 Sit1.gif
Stand up after crouch 0 11 Sit2.gif
Jump - no ceiling 3 23 Jump1.gif
Jump - has ceiling 3 19 Jump2.gif
Standing jump 39 19 Standing jump.gif
Step 11 13 Step.gif
Run: starting phase 14 7 Run1.gif
Run: left leg 12 4 Run23.gif
Run: right leg 14 4
Run: stopping 9 9 Run4.gif