ilya-pi / Pixel-Castle

Corona SDK powered mobile pixel-tribute game with fatalities
1 stars 1 forks source link

Scrolling: in a game you can scroll too far to the bottom on iPad and too far to the both sides on long devices (iphone5) #45

Closed nakedpony closed 11 years ago

nakedpony commented 11 years ago

First

  1. Switch to iPad
  2. Scroll to the lowest point of the level
  3. You'll see that the ground starts about two game pixels higher than the bottom of the screen

Second

  1. Switch to iphone5
  2. Scroll to the left or right
  3. You'll see that the ground ends and there is an empty vertical stripe

My suggestion is to use screenOriginY in your calculations.

ilya-pi commented 11 years ago

Fixed