Waponez II example does not compile
Posted: Mon Nov 10, 2025 1:31 pm
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
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