Page 1 of 1

Waponez II example does not compile

Posted: Mon Nov 10, 2025 1:31 pm
by Kihon
Hi everyone!

Just a quick question.

Is it intentional that the Waponez II example program does not compile as-is in the examples folder that is shipping with the installation?
Because for me it had to be edited to work.

Here is what I needed to edit in the source:

1. Added #PB_Sprite_AlphaBlending flag to LoadSprite() functions to enable DisplayTransparentSprite() functions to work
2. Edit LoadSprite(20, Path$+"Back_3.bmp", 0) to LoadSprite(20, Path$+"Back_3.bmp", #PB_Sprite_PixelCollision | #PB_Sprite_AlphaBlending) (basically add #PB_SpriteAlphaBlending)
3. Enable sound: Remove comment and edit PlaySound(0, 0) (laser sound) to PlaySound(0, #PB_Sound_MultiChannel) and the PlaySound(2, 0) (Explosion) to PlaySound(2, #PB_Sound_MultiChannel)


Win11
PB6.21

Re: Waponez II example does not compile

Posted: Mon Nov 10, 2025 1:55 pm
by HeX0R
I can confirm this, looks like that one needs to be updated