Waponez II example does not compile

Just starting out? Need help? Post your questions and find answers here.
Kihon
New User
New User
Posts: 2
Joined: Fri Nov 07, 2025 1:41 pm

Waponez II example does not compile

Post 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
User avatar
HeX0R
Addict
Addict
Posts: 1223
Joined: Mon Sep 20, 2004 7:12 am
Location: Hell

Re: Waponez II example does not compile

Post by HeX0R »

I can confirm this, looks like that one needs to be updated
Post Reply