moiri / kobold

jump and run on web page
2 stars 0 forks source link

Document border overflow #43

Closed moiri closed 9 years ago

moiri commented 10 years ago

The character enlarges the document when hitting the border on the right side and a jitter effect is produced on the left border

moiri commented 9 years ago

jitter was fixed with the redesign of #42. However the behavior on the right side is still persisting. This is caused by the overlapping image and also the debug elements.

moiri commented 9 years ago

As a solution, make all the position calculations according to top, not bottom and set the skyBox to top:0px

moiri commented 9 years ago

The private method checkPosition(direction) in the Movable class needs some thinking over in case of direction 'right' and 'bottom': imgDiff seems very superfluous and some comments would be helpful.