Page 1 of 1
Pinball code
Posted: Tue May 17, 2022 6:53 am
by dan yalte
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...
Re: Pinball code
Posted: Tue May 17, 2022 7:29 am
by Shardik
Have you already taken a look into PureBasic's Pinball code example?
#PB_Compiler_Home + "Examples/3D/Demos/PinBall.PB"
Re: Pinball code
Posted: Tue May 17, 2022 8:25 am
by BarryG
Wow, I didn't even know PureBasic had a pinball demo!
Re: Pinball code
Posted: Tue May 17, 2022 5:12 pm
by ricardo_sdl
I tried it, but the program crashes when calling RenderWorld. What could it be?
Re: Pinball code
Posted: Tue May 17, 2022 6:37 pm
by mk-soft
Use Subsystem 'OpenGL'
Re: Pinball code
Posted: Tue May 17, 2022 7:29 pm
by ricardo_sdl
Thank you mk-soft! It worked now.
Re: Pinball code
Posted: Tue May 24, 2022 3:30 pm
by IceSoft
Here is another pinball, also with PureBasic and using Chipmunk2D physics engine
https://www.purebasic.fr/english/viewtopic.php?t=74110