Author Topic: My next pascal game project - pinball engine  (Read 1121 times)

sysrpl

  • Sr. Member
  • ****
  • Posts: 349
    • Get Lazarus
My next pascal game project - pinball engine
« on: November 02, 2026, 01:14:12 pm »
I have been working on a game system to "cheat" its way to providing nice graphics on lower end hardware and wanted to share it with you. It is built on my Tiny.Sim and now my Codebot library packages. It is a pinball simulation engine. Here is a short capture I made this morning of it in early development using an unfinished table:

https://cache.getlazarus.org/videos/pinball-draft.mp4

Last week I completed my Monopoly game, and got some grief from people about violating Hasbro trademarks, but if you are interested it is here:

https://cache.getlazarus.org/videos/monopoly-demo.mp4

And if you are interested here is my testing program for using Jolt physics from Pascal:

https://cache.getlazarus.org/videos/physics-demo.mp4

You can read about my Codebot library and my new Pascal compiler with dynamic packages here and here:

https://www.getlazarus.org/codebot/
https://www.getlazarus.org/dynamic/
https://www.getlazarus.org/codebot/cardgame/

edit: here is my lights testing program that i need to bring over to the pinball engine for table light inlays

https://cache.getlazarus.org/videos/marble-lights.mp4
« Last Edit: November 02, 2026, 04:33:03 pm by sysrpl »

Handoko

  • Hero Member
  • *****
  • Posts: 5569
  • My goal: build my own game engine using Lazarus
Re: My next pascal game project - pinball engine
« Reply #1 on: November 02, 2026, 03:32:45 pm »
Nice
 ;D

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1254
    • Burdjia
Re: My next pascal game project - pinball engine
« Reply #2 on: November 03, 2026, 11:38:12 am »
Nice.  But camera is sick.  %)
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

sysrpl

  • Sr. Member
  • ****
  • Posts: 349
    • Get Lazarus
Re: My next pascal game project - pinball engine
« Reply #3 on: November 04, 2026, 06:28:30 am »
Here is a short clip of my progress with a fixed camera:

https://cache.getlazarus.org/videos/pinball-color.mp4

BildatBoffin

  • Jr. Member
  • **
  • Posts: 63
Re: My next pascal game project - pinball engine
« Reply #4 on: November 04, 2026, 09:22:32 am »
Gongratz. looks very good.


sysrpl

  • Sr. Member
  • ****
  • Posts: 349
    • Get Lazarus
Re: My next pascal game project - pinball engine
« Reply #6 on: November 04, 2026, 11:51:46 am »
Thanls for the camea tip, but it isn't my top concern right now. When it comes time for camera setup, i will have lots of options, including for head tracking like on my blog here:

https://www.codebot.org/articles/?doc=9618

Right now I am working on a set of commands to build geometry for you including, holes, slots, rubbers, ramps, wire guards, walls, and dodoads and lights placement, so that anyone can create their own tables.

sysrpl

  • Sr. Member
  • ****
  • Posts: 349
    • Get Lazarus
Re: My next pascal game project - pinball engine
« Reply #7 on: November 06, 2026, 05:43:55 am »
An update.

I added Lucite materials, 2 3 or 4 wire ramp creation in the editor, incandescent light bulbs for local lighting, more dynamic shadows, automatic mesh reduction, and more objects get replaced as simplified physics objects when recognized.

https://cache.getlazarus.org/videos/pinball-wires.mp4

The physics are still in need of work.

sysrpl

  • Sr. Member
  • ****
  • Posts: 349
    • Get Lazarus
Re: My next pascal game project - pinball engine
« Reply #8 on: November 09, 2026, 09:04:36 pm »
https://cache.getlazarus.org/videos/pinball-video-web.mp4

This is a quick update on my custom Linux, Windows, and MacOS FOSS pinball engine written using Free Pascal.

I spent some time this weekend refactoring all my objects to support a first draft of the typescritpt definition. With it, table creators will be able to script many times of animations and sequences, for example flashing light patterns, playing sounds, starting a video mode, and so on.

Wire ramps not have a reity of options include 2, 3, and 4 wires, table object now show phyiscs ractions to the ball when hit, I also added 13 different prebuilt table components including one way gates, diverters, gate sensors, support brackets, lane covers, and support for custom inlay light shapes.

I added a framework for defining custom toys, a video playback system shown in the example video above, and am working on adding pinmame connections to scripts.

The game already has a built in editor, where you can pause and edit a table while palying, and I will be creating custom UI themses. I also add live streaming support, that with the click of a button will stream your gameplay to streaming services.

Again, my engine support running without a display server on Linux using dkms, which in my testing greatly increases smoothness and frame times. Without a display manager running the pinball system does not need to share the GPU with any other process, and the traditional desktop services are all off leaving you with little to no OS task switching in the background when the engine is running a table.

I will be putting together a guide for how to create your own tables this month and pushing our a test version and website where people can ask questions and make requests.

Other features:

* In game markdown support for you table rules, with inline animations in markdown available in a themed popup window, works and looks the same on any OS.
* Video recording of gameplay is already baked into the game engine.
* Table parts can be downloaded from OnShape. So the workflow is you tweak your table layout in OnShape, and the game downloads the changes when you open it. This requires you to sign into OnShape and obtain a key. I might investigate alternate CAD programs late

Antek

  • New Member
  • *
  • Posts: 34
Re: My next pascal game project - pinball engine
« Reply #9 on: November 09, 2026, 10:53:15 pm »
This is an awsome project :-) . Keep on going!

sysrpl

  • Sr. Member
  • ****
  • Posts: 349
    • Get Lazarus
Re: My next pascal game project - pinball engine
« Reply #10 on: November 12, 2026, 04:23:52 am »
Here is an update with some nice features. I will be creating a website for the engine soon. Also, remember, it is coded in Free Pascal!

https://www.getlazarus.org/forums/topic/17/

trapanator

  • New Member
  • *
  • Posts: 18
Re: My next pascal game project - pinball engine
« Reply #11 on: November 12, 2026, 05:12:37 pm »
Here is an update with some nice features. I will be creating a website for the engine soon. Also, remember, it is coded in Free Pascal!

https://www.getlazarus.org/forums/topic/17/

I spotted this project in today Hacker News! Congratulations!

sysrpl

  • Sr. Member
  • ****
  • Posts: 349
    • Get Lazarus
Re: My next pascal game project - pinball engine
« Reply #12 on: Today at 07:36:39 am »
I added lots of new features, include a cartoon, DMD, improved physics, table art, scoring, and voice work ... the voice needs a better actor and more lines, but I am treating them as placeholders:

https://www.getlazarus.org/forums/topic/19/

salvadordf

  • Jr. Member
  • **
  • Posts: 83
    • BriskBard
Re: My next pascal game project - pinball engine
« Reply #13 on: Today at 09:28:34 am »
It looks incredibly good! Congrats!

 

TinyPortal © 2005-2018