kthakore / Zombie-Trap

Zombie Lemmings!
3 stars 0 forks source link

Make camera scrolling better. #8

Open kthakore opened 13 years ago

kthakore commented 13 years ago

Add some parallax and smooth scrolling as mentioned here.

https://github.com/kthakore/Zombie-Trap/commit/43bc14b178fb3c40c4339cf882edebe21048514c

kthakore commented 13 years ago

Hey so the scrolling is better. But there is a bug. Change x, and y and scrolling gets weird:

https://github.com/kthakore/Zombie-Trap/blob/master/lib/ZT/Camera.pm#L9
FROGGS commented 13 years ago

What do you mean "it gets weird" ? I dont see anything strange...

kthakore commented 13 years ago

i cant scroll right and right+down as smoothly

Kartik Thakore

On 2011-08-10, at 2:49 AM, FROGGSreply@reply.github.com wrote:

What do you mean "it gets weird" ? I dont see anything strange...

Reply to this email directly or view it on GitHub: https://github.com/kthakore/Zombie-Trap/issues/8#issuecomment-1770354

FROGGS commented 13 years ago

hmmm, maybe something about floats that get passed to rect->x/y which are ints...