Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Retina display #1

Open
maurovz opened this issue Oct 2, 2013 · 1 comment
Open

Support for Retina display #1

maurovz opened this issue Oct 2, 2013 · 1 comment

Comments

@maurovz
Copy link
Contributor

maurovz commented Oct 2, 2013

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
Copy link
Member

bsbodden commented Oct 2, 2013

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants