Hello Guest

Author Topic: about camera projection type  (Read 3245 times)

guanqun

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
about camera projection type
« on: September 26, 2013, 09:25:09 am »
Hi,

I have a question about the tk2dCamera's projection type, now it has two types, one is the "orthographic size" and the other is "pixels per meters".

which one should I use to better target my scenario which is a game targeted for ios and android. which type would be easier for later resolution independent issues? And if I choose one type, it should be the same with the type in the sprite collection, right?

ps: my game doesn't have physics.

thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: about camera projection type
« Reply #1 on: September 26, 2013, 10:10:21 am »
If your game doens't have physics, consider 1 pixel per meter. It makes it really easy to think of - 1 world unit = 1 pixel. You can of course use 10 pixels per meter, where 0.1 world unit = 1 pixel. Ortho size makes it a bit harder, as it will need to target a particular resolution.

Yup, make sure you've got the same type in the sprite collection, and that should be it more or less.

guanqun

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: about camera projection type
« Reply #2 on: September 26, 2013, 04:07:51 pm »
Thanks for your reply. I would stick to 1 pixel per meter right now. :)