Pinball code

Advanced game related topics
dan yalte
User
User
Posts: 47
Joined: Thu Aug 13, 2015 8:56 am

Pinball code

Post 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...
User avatar
Shardik
Addict
Addict
Posts: 1989
Joined: Thu Apr 21, 2005 2:38 pm
Location: Germany

Re: Pinball code

Post by Shardik »

Have you already taken a look into PureBasic's Pinball code example?

#PB_Compiler_Home + "Examples/3D/Demos/PinBall.PB"
BarryG
Addict
Addict
Posts: 3292
Joined: Thu Apr 18, 2019 8:17 am

Re: Pinball code

Post by BarryG »

Wow, I didn't even know PureBasic had a pinball demo!
ricardo_sdl
Enthusiast
Enthusiast
Posts: 109
Joined: Sat Sep 21, 2019 4:24 pm

Re: Pinball code

Post by ricardo_sdl »

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/
User avatar
mk-soft
Always Here
Always Here
Posts: 5335
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Pinball code

Post by mk-soft »

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
ricardo_sdl
Enthusiast
Enthusiast
Posts: 109
Joined: Sat Sep 21, 2019 4:24 pm

Re: Pinball code

Post by ricardo_sdl »

Thank you mk-soft! It worked now.
You can check my games at:
https://ricardo-sdl.itch.io/
User avatar
IceSoft
Addict
Addict
Posts: 1616
Joined: Thu Jun 24, 2004 8:51 am
Location: Germany

Re: Pinball code

Post by IceSoft »

Here is another pinball, also with PureBasic and using Chipmunk2D physics engine
https://www.purebasic.fr/english/viewtopic.php?t=74110
Belive!
<Wrapper>4PB, PB<game>, =QONK=, PetriDish, Movie2Image, PictureManager,...
Post Reply