Anyone have some simple code for a basic pinball game. It does not have to use sprites but that would be cool also thanks.
biggest thing i want to figure out is the ball movement thanks...
Pinball code
Re: Pinball code
Have you already taken a look into PureBasic's Pinball code example?
#PB_Compiler_Home + "Examples/3D/Demos/PinBall.PB"
#PB_Compiler_Home + "Examples/3D/Demos/PinBall.PB"
Re: Pinball code
Wow, I didn't even know PureBasic had a pinball demo!
-
- Enthusiast
- Posts: 109
- Joined: Sat Sep 21, 2019 4:24 pm
Re: Pinball code
I tried it, but the program crashes when calling RenderWorld. What could it be?
You can check my games at:
https://ricardo-sdl.itch.io/
https://ricardo-sdl.itch.io/
Re: Pinball code
Use Subsystem 'OpenGL'
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
-
- Enthusiast
- Posts: 109
- Joined: Sat Sep 21, 2019 4:24 pm
Re: Pinball code
Thank you mk-soft! It worked now.
You can check my games at:
https://ricardo-sdl.itch.io/
https://ricardo-sdl.itch.io/
Re: Pinball code
Here is another pinball, also with PureBasic and using Chipmunk2D physics engine
https://www.purebasic.fr/english/viewtopic.php?t=74110
https://www.purebasic.fr/english/viewtopic.php?t=74110
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...