Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2025-02

Pool Table Simulator Example Project

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Anthony Walter

This week I quickly wrote a 3D pool table simulator for Linux using Free Pascal and the Lazarus IDE. You can check out an action clip of it here https://cache.getlazarus.org/videos/linux-pool.mp4. It's FOSS and the git repo for this and other examples projects are hosted here https://github.com/sysrpl/Raylib.4.0.Pascal.

This was just a quick project in preparation for a 3D pinball program I want to write for Linux using Pascal. If you want to test the pool program out on x86_64, a binary is in the example table project folder.

Use the mouse to aim, press spacebar to shoot, Keys 1-9 rerack the balls, C switches the camera mode, arrow keys move the cue and alter the hitting strength. Hold shift down for finer control of aiming and strength

Oh and, I did write a nice glsl shader syntax highlighter for Lazarus that greatly aids writing glsl code in the Lazarus IDE. If anyone wants to put it in the official Lazarus list of highlighters let me know. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20250209/c6f7ee33/attachment.htm>

Reply by email

Noel Duffy
to Anthony Walter
Show quoted text 8 lines
On 9 Feb 2025, at 18:33, Anthony Walter via lazarus wrote: This week I quickly wrote a 3D pool table simulator for Linux using Free Pascal and the Lazarus IDE. You can check out an action clip of it here https://cache.getlazarus.org/videos/linux-pool.mp4. It's FOSS and the git repo for this and other examples projects are hosted here https://github.com/sysrpl/Raylib.4.0.Pascal. This was just a quick project in preparation for a 3D pinball program I want to write for Linux using Pascal. If you want to test the pool program out on x86_64, a binary is in the example table project folder. Use the mouse to aim, press spacebar to shoot, Keys 1-9 rerack the balls, C switches the camera mode, arrow keys move the cue and alter the hitting strength. Hold shift down for finer control of aiming and strength

Excellent stuff. Have you considered posting this to someplace like Hacker News (https://news.ycombinator.com/)? It?s common for people to post their projects there, using the tag Show HN. We recently had a long thread on the FPC list about attracting new users to Free Pascal, and I think nothing attracts new programmers to a language like demos and examples of working programs, especially games.

Reply by email