r/javascript • • 18d ago

My FOSS Pinball Engine Uses Javascript On Linux

https://www.getlazarus.org/forums/topic/11/
18 Upvotes

9 comments sorted by

5

u/sysrpl 18d ago edited 17d ago

Here is a bit more information. I am and have been working on a FOSS 3D pinball simulation engine (yes, I am aware there exists VPX for Windows) for Linux for some time. Tables are designed in CAD, but all the logic is controlled through Javascript, including drawing the DMD as well as being able to replicate minigames like Asteroids on a TV in Javascript.

I am working on finishing this table and will be creating 2 more, then I will be publishing a release with a dedicated Website and isntructions and tutorials on how to build tables.

The engine itself includes an editor inside it, but it needs some more features baked into it. If anyone is interested in doing testing in a few weeks time, send me a message on my website.

1

u/walkerpaul-62 5d ago

Does the editor support reloading JavaScript while a table runs? That could speed up script iteration.

1

u/sysrpl 5d ago

Currently, no. The script writing is usually quite easy when designing a table as compared to actually creating the table in parametric CAD. There are also some things you ought to do in the script when starting, that is preloading your resources, such as sounds, images, and other things that takes place with the script loads in your function main() {}

I have been busy this week with family and Thanksgiving, but the next take is to publish a website that describes this and other things in fie detail. Part of that with be a d.ts reference with some instructions.

1

u/gianluca_caruso-6 14d ago

Will table scripts be sandboxed, or can they access the engine directly? That boundary matters for user-made tables.

1

u/dmart2782 7d ago

A narrow table API could keep scripts flexible while limiting engine access; full access is harder to reason about.

1

u/nielsen-b628 4d ago

A narrow table API limits engine calls; sandboxing also depends on what host capabilities scripts can reach.

1

u/regreddit 17d ago

What the heck is Lazarus?

1

u/R3dd1ngtt0n 17d ago

Lazarus IDE is a powerful and free open source cross platform rapid application development environment.