Page 1 of 1

Direction-PAD, Landscape mode, etc. ?

PostPosted: Jan 18, 2006 @ 11:55am
by directdance

PostPosted: Jan 18, 2006 @ 5:43pm
by kornalius

PostPosted: Jan 19, 2006 @ 11:23am
by directdance
Hi Kornalius,

thanks for your hint re landscape mode. I found the g_init() before I asked and was confused, that this was not working on my PC. After your hint I tried it again, but this time compiling it to my pocket pc. And there it is working absoloutly great. It is only on the PC where the dimensions are changed, but it is not turned into landscape. Thanks for this !

One more question re the Sprite collide function. When I am creating sprites, I mask the invisible parts like in your examples with color G_RGB(255, 0, 255). But the collide functions are detecting collisions even on those invisible parts.

I would like to create a big sprite (320x240) for displaying a cave wher let´s say a space ship is flying around. All areas wich are alowed to fly should be color G_RGB(255, 0, 255), so invisible. But this is not working ...

Any soloutions for this ???

Thanks in advance,
DirectDance

PostPosted: Jan 19, 2006 @ 2:09pm
by kornalius
You should add SO_PIXELCHECK to your AddSpriteOptions() or SetSpriteOptions() for each sprite you are creating. This will turn on pixel-perfect collision detection instead of bounding rectangle collision detection.

The PC doesn't support landscape yet, I will see if I can do something about it. It's a neat idea that I didn't think about.

PostPosted: Jan 19, 2006 @ 4:01pm
by directdance

PostPosted: Jan 19, 2006 @ 8:54pm
by kornalius
It should work. Both colliding sprites should have the SO_PIXELCHECK option.

Show me your init code where you load your sprites.

PostPosted: Jan 20, 2006 @ 1:44pm
by directdance

PostPosted: Jan 20, 2006 @ 3:58pm
by kornalius

PostPosted: Jan 21, 2006 @ 10:38pm
by Guest

PostPosted: Jan 21, 2006 @ 10:41pm
by directdance

PostPosted: Jan 23, 2006 @ 2:11am
by kornalius

PostPosted: Jan 23, 2006 @ 2:29am
by directdance