Halaman

Minggu, 18 Maret 2012

ProtonSDK: Having trouble with the 2d coordinates?

Err.. this post would be some kind of my own personal notes..

I had trouble tracking the TouchHandler component, there's something that i could not understand, why does when we setup the screen to become 320(width) * 420(height) - in pixels, when i click on the bottom of the screen, the point interpreted by TouchHandler component is larger than 420..

Tracking through the source code, i found that we should be cautious when choosing the video mode, locked landscape, setup fake screen procedures

You could trace that problem on file "RenderUtils.cpp" the procedure "ConvertCoordinatesIfRequired" .. this would be a good place for your breakpoints :)

You haven't tried ProtonSDK? developed by Seth. A. Robinson - www.protonsdk.com try them! they are free and powerful!

If you stumbled across problems, there is the IRC channel, and the forum.. the creator (Seth) actively maintains and answer your question..

Kudos to you Seth! ;)

Owkayh.. untill next time

Tidak ada komentar:

Posting Komentar