integrallis / rm-super-koalio

SuperKoalio - A RubyMotion/JoyBox Platform Game
17 stars 1 forks source link

Support for Retina display #1

Open maurovz opened 10 years ago

maurovz commented 10 years ago

Hey great job on this example. The only thing I noticed that if you run it on a divice that has Retina (rake retina=true), it won't display properly:

http://i.imgur.com/MXFcx1J.png

I created an HD version of the map which is detected automatically as long as you have tilemap-hd.tmx and tileSet-hd.png in the resource folder:

https://github.com/maurovz/rm-super-koalio.git This is how it looks: http://imgur.com/Fy7uxsw

The png is a resized image so it doesn't look as sharp, but it fixes the issue of the sizes. The problem I have now is the collisions are slightly different that if you run it on normal mode. What do you think needs adjustment?

Thanks for the example!

bsbodden commented 10 years ago

@maurovz I got the collision detection to work by trial an error. I'm pretty sure I'm missing some proper code to translate physical coordinates to screen coordinates. I'll do that next. On the mean time I would love to get a pull request from you adding the HD map! Thanks.