Open Source: Waponez III

Advanced game related topics
User avatar
IceSoft
Addict
Addict
Posts: 1740
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Open Source: Waponez III

Post by IceSoft »

Here my simple top down shooter:
https://www.youtube.com/shorts/ep01NvaxOwM
Inspired by Waponez II (orginal source is part of PureBasic and this one: viewtopic.php?t=88168 )

{New]
- Enemies shoting back (if died)

Source code (no data):
https://github.com/aismann/PureBasic_ex ... aponez_III
Last edited by IceSoft on Sun Mar 01, 2026 6:45 am, edited 8 times in total.
Puzzle of Mystralia (C++)
Bug Planet, Waponez III, =QONK=, PetriDish, Movie2Image
<Wrapper>4PB, PB<game>, PictureManager,...
User avatar
darius676
Enthusiast
Enthusiast
Posts: 333
Joined: Thu Jan 31, 2019 12:59 am
Contact:

Re: Working title: Waponez III

Post by darius676 »

:mrgreen:
User avatar
IceSoft
Addict
Addict
Posts: 1740
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Working title: Waponez III

Post by IceSoft »

IceSoft wrote: Mon Feb 02, 2026 5:12 pm Here my simple top down shooter:
https://www.youtube.com/shorts/ep01NvaxOwM
Inspired by Waponez II (orginal source is part of PureBasic and this one: viewtopic.php?t=88168 )

{New]
- Enemies shoting back (if died)
Source code (no data):
https://github.com/aismann/PureBasic_ex ... aponez_III
Puzzle of Mystralia (C++)
Bug Planet, Waponez III, =QONK=, PetriDish, Movie2Image
<Wrapper>4PB, PB<game>, PictureManager,...
miso
Enthusiast
Enthusiast
Posts: 714
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Open Source: Waponez III

Post by miso »

Nice, and thanks for sharing the code ;)
User avatar
minimy
Addict
Addict
Posts: 899
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Open Source: Waponez III

Post by minimy »

Thank you very much IceSoft for share this nice code.
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
IceSoft
Addict
Addict
Posts: 1740
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Open Source: Waponez III

Post by IceSoft »

Add a bitmap font (not published at the moment)
removed bitmap
Last edited by IceSoft on Sun Mar 01, 2026 6:44 am, edited 1 time in total.
Puzzle of Mystralia (C++)
Bug Planet, Waponez III, =QONK=, PetriDish, Movie2Image
<Wrapper>4PB, PB<game>, PictureManager,...
miso
Enthusiast
Enthusiast
Posts: 714
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Open Source: Waponez III

Post by miso »

I'm proudly joined forces with IceSoft for this project. Let's revive the title. ;)
User avatar
IceSoft
Addict
Addict
Posts: 1740
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Open Source: Waponez III

Post by IceSoft »

miso wrote: Tue Feb 10, 2026 2:09 pm I'm proudly joined forces with IceSoft for this project. Let's revive the title. ;)
Thanks miso!
There is a new "screenshot" showing the changes made by miso (see first entry).
Before all this is uploaded a "cleancode" will be done.
Been patient plz.
Puzzle of Mystralia (C++)
Bug Planet, Waponez III, =QONK=, PetriDish, Movie2Image
<Wrapper>4PB, PB<game>, PictureManager,...
User avatar
IceSoft
Addict
Addict
Posts: 1740
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Open Source: Waponez III

Post by IceSoft »

Still old sources but I add a movie about the progress:

ChangeLog (Thanks miso always)
- Using "Modules"
- Add some simple move patterns for the enemies
- Add score and lives
- bug fixes
Last edited by IceSoft on Sun Mar 01, 2026 6:45 am, edited 1 time in total.
Puzzle of Mystralia (C++)
Bug Planet, Waponez III, =QONK=, PetriDish, Movie2Image
<Wrapper>4PB, PB<game>, PictureManager,...
miso
Enthusiast
Enthusiast
Posts: 714
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Open Source: Waponez III

Post by miso »

Yes, spearating the core funcionalities by responsibilities was a key. (As the original code was created or recreated from an old, possibly amiga PB source, and current pb has very convenient solutions today)

Those who want to help, I have a problem I can't reproduce at home. If you run this snippet and post the debug window result, that might help me/us.

Code: Select all

ExamineDesktops()
w=DesktopWidth(0)
h=DesktopHeight(0)
ws = DesktopScaledX(w)
hs = DesktopScaledY(h)

wf = DesktopResolutionX()
hf = DesktopResolutionY()

wus = DesktopUnscaledX(ws)
hus = DesktopUnscaledY(hs)

Debug w
Debug h
Debug wf
Debug hf
Debug ws
Debug hs
Debug wus
Debug hus

User avatar
IceSoft
Addict
Addict
Posts: 1740
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Open Source: Waponez III

Post by IceSoft »

miso wrote: Wed Feb 18, 2026 5:43 pm Those who want to help, I have a problem I can't reproduce at home. If you run this snippet and post the debug window result, that might help me/us.
/edit
Selected "Enable DPI aware...."
I got (Having 2 monitors):
1920
1200
1.0
1.0
1920
1200
1920
1200
Last edited by IceSoft on Wed Feb 18, 2026 11:24 pm, edited 1 time in total.
Puzzle of Mystralia (C++)
Bug Planet, Waponez III, =QONK=, PetriDish, Movie2Image
<Wrapper>4PB, PB<game>, PictureManager,...
Drone
User
User
Posts: 22
Joined: Fri May 03, 2019 10:21 pm

Re: Open Source: Waponez III

Post by Drone »

miso wrote: Wed Feb 18, 2026 5:43 pm Yes, spearating the core funcionalities by responsibilities was a key. (As the original code was created or recreated from an old, possibly amiga PB source, and current pb has very convenient solutions today)

Those who want to help, I have a problem I can't reproduce at home. If you run this snippet and post the debug window result, that might help me/us.

Code: Select all

ExamineDesktops()
w=DesktopWidth(0)
h=DesktopHeight(0)
ws = DesktopScaledX(w)
hs = DesktopScaledY(h)

wf = DesktopResolutionX()
hf = DesktopResolutionY()

wus = DesktopUnscaledX(ws)
hus = DesktopUnscaledY(hs)

Debug w
Debug h
Debug wf
Debug hf
Debug ws
Debug hs
Debug wus
Debug hus

Hi !

The application needs to be compiled with the 'DPI Aware' switch. (DesktopScaledX(Value))

I also change from integer

wf = DesktopResolutionX()
hf = DesktopResolutionY()

to float

wf.f = DesktopResolutionX() ; Need to be float
hf.f = DesktopResolutionY() ; Need to be float

to get correct result...

... and I forgot ...

Laptop : 1 monitor

1920
1080
1.5
1.5
2880
1620
1920
1080
Everything Should Be Made as Simple as Possible, But Not Simpler - Albert Einstein
miso
Enthusiast
Enthusiast
Posts: 714
Joined: Sat Oct 21, 2023 4:06 pm
Location: Hungary

Re: Open Source: Waponez III

Post by miso »

Thanks guys. Looks all normal.

@drone: you are absolutely right with the floats. Thanks.
User avatar
minimy
Addict
Addict
Posts: 899
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

Re: Open Source: Waponez III

Post by minimy »

Very intersting project.
Good luck with the project guys! All the best! :wink:
If translation=Error: reply="Sorry, Im Spanish": Endif
Post Reply