This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Direction-PAD, Landscape mode, etc. ?


Direction-PAD, Landscape mode, etc. ?

Postby directdance » Jan 18, 2006 @ 11:55am

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby kornalius » Jan 18, 2006 @ 5:43pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby directdance » Jan 19, 2006 @ 11:23am

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
directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby kornalius » Jan 19, 2006 @ 2:09pm

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.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby directdance » Jan 19, 2006 @ 4:01pm

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby kornalius » Jan 19, 2006 @ 8:54pm

It should work. Both colliding sprites should have the SO_PIXELCHECK option.

Show me your init code where you load your sprites.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby directdance » Jan 20, 2006 @ 1:44pm

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby kornalius » Jan 20, 2006 @ 3:58pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby Guest » Jan 21, 2006 @ 10:38pm

Guest
 


Postby directdance » Jan 21, 2006 @ 10:41pm

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Postby kornalius » Jan 23, 2006 @ 2:11am

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby directdance » Jan 23, 2006 @ 2:29am

directdance
pm Member
 
Posts: 39
Joined: Dec 2, 2005 @ 9:04am
Location: Germany


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum