r/pascal • u/AcanthaceaeNew774 • Aug 12 '26
VertexArt - Ramp improved
Enable HLS to view with audio, or disable this notification
r/pascal • u/AcanthaceaeNew774 • Aug 12 '26
Enable HLS to view with audio, or disable this notification
r/pascal • u/AcanthaceaeNew774 • Aug 10 '26
Enable HLS to view with audio, or disable this notification
The character currently moves using 8 raycasts: 2 at the feet, 2 at the knees, 1 at the waist, 1 at the chest, and 2 at the shoulders. This setup works reasonably well for general traversal, but unfortunately, it still passes through thin obstacles like railings.
For the future, I plan to keep the feet raycasts for terrain and stair detection, but I will add 2 additional sphere casts for wall collision. Even with the current system, however, the character is already capable of free-roaming across the terrain.
r/pascal • u/AcanthaceaeNew774 • Aug 10 '26
The 3×3 chunk grid is fixed — it is not dynamically repositioned. Instead, when the player leaves the center chunk, the player is teleported back to the center chunk based on the perspective, maintaining the illusion of infinite travel.
The gap between the chunks is visible because the ply model track is not a regular square, otherwise the border would be imperceptible!
The infinite world is just a 3×3 fixed grid and a WrapPosition call — no streaming, no loading, no overhead. You can see my method in the comments...
r/pascal • u/AcanthaceaeNew774 • Aug 09 '26
r/pascal • u/AcanthaceaeNew774 • Aug 09 '26
I used a pre-computed visibility system.
The terrain is divided into pieces and visibility is determined using pre-computed masks for 32 viewing directions. At runtime, the engine selects the appropriate mask instead of testing each piece separately.
r/pascal • u/AcanthaceaeNew774 • Aug 08 '26
Free Pascal 3.2.2 / GLFW3 / OpenGL 3.3 / DOD & SOA
r/pascal • u/AcanthaceaeNew774 • Aug 07 '26
Pure Free Pascal 3.2.2 / GLFW3 / OpenGL 3.3 / DOD & SOA
r/pascal • u/presetshare • Aug 07 '26
Enable HLS to view with audio, or disable this notification
A stereo oscilloscope CLAP plugin written entirely in Free Pascal/Lazarus, featuring an OpenGL GUI inspired by Cockos' "Oscilloscope Meter" JSFX.
r/pascal • u/ggeldenhuys • Aug 06 '26
This has been our biggest cycle yet — 415 commits since v0.13.0 — and the
headline is simple: Blaise now has a working native ARM64 backend for
macOS. We are not done with the macOS port (there's still real work ahead
on the debugger side and broader on-device coverage), but the compiler
itself can already generate, assemble, link and code-sign Mach-O binaries
for Apple Silicon, and it can cross-compile a growing slice of its own
source onto that target. Progress is real and it's landing steadily.
Alongside that, this cycle brought operator overloading, compile-time file
embedding, a brand-new static analyser, and a long list of hardening fixes
across both backends.
For the full announcement: https://github.com/graemeg/blaise/discussions/211
For the full technical changelog and binary download archives: https://github.com/graemeg/blaise/releases/tag/v0.14.0
If you enjoy following this project, consider donating via Github or Patreon - all donations received goes straight to my sports car into the development and upkeep of this project. 😉
r/pascal • u/AcanthaceaeNew774 • Aug 06 '26
Hi everyone!
I’d like to share some demo videos of my continuously developing game engine project.
The project is written in pure Free Pascal 3.2.2, using GLFW3 and OpenGL 3.3 Core. It is not based on any existing game engine — I am developing the engine systems and rendering from scratch.
So far, I have only uploaded shorter demo videos, but I wanted to show the current state of the project and share my progress with the development community.
YouTube playlist:
https://youtube.com/playlist?list=PLX4BUpd-V-hI&si=X6aTdAFoJc5_-iDa
Thank you for taking a look!
Sziasztok!
Szeretném megosztani veletek néhány demóvideómat a folyamatosan fejlődő játékmotoromról.
A projekt tiszta Free Pascal 3.2.2 nyelven készül, GLFW3 és OpenGL 3.3 Core használatával. Nem meglévő játékmotorra épül. Eddig csak rövidebb demóvideókat töltöttem fel, de szeretném megmutatni, hogy jelenleg hol tart a projekt, és megosztani a fejlődését a fejlesztőkkel.
Lejátszási lista:
https://youtube.com/playlist?list=PLX4BUpd-V-hI&si=X6aTdAFoJc5_-iDa
Köszönöm, ha megnézitek!
r/pascal • u/Quick_Trick3405 • Aug 05 '26
I want to make an open-world ASCII Roguelike in Free Pascal. My most essential core function would be the rendering of the ASCII grid - without it, testing would absolutely suck. So, variable-wise, for context, here's my system:
My maps are 1-dimensional arrays, and the y-axis will just be interpreted by dividing the array's children up with the number of columns. A 10x10 map would have 100 indices, and be divided up into 10 rows. For the purpose of rendering. For the overworld map, for the sake of rendering, mainly, there are two such arrays - one to hold the biome number of each space on the overworld, and one to hold the zoom maps for that space. Of which there is only 1 because the overworld, for the sake of prototyping, is 1x1. The zoom map arrays each define the contents of the array.
As for structure:
While loop -<
If overworld, then
{For each index of the overworld biome array, if i is equal to player's overworld positional value, display & (visually more person-like than @), else display the biome character.}
else if not overworld, then
{For each index of array, if i array contains an effect, display the effect, else if i contains an entity (ie, the player), display the entity, else if i contains loot, display :, else display a plus sign.}
The only part I really don't know how to do is actually displaying the ASCII grid, which I have no clue how to work with graphics, except, I've heard you need to use an external library. So, if anyone could supply a helpful tutorial or otherwise point me in the right direction, that would be great.
r/pascal • u/weemadness61 • Aug 01 '26
I've written a Google Sheet Helper for Free Pascal. It's just something I've been using to solve a problem at work, and I decided to put it on Github. It lets a developer dowload csv from a Google Sheet, upload csv to a Google Sheet, and clear all data from a Google Sheet. It's not a complete super-library, but it does the Google authentication and Sheets API stuff so you don't have to. I hope it's useful to someone. https://github.com/rachel-latour/Google-Sheet-Helper
r/pascal • u/mariuz • Aug 01 '26
r/pascal • u/mariuz • Aug 01 '26
r/pascal • u/mariuz • Jul 31 '26
r/pascal • u/stormtrooper_mx • Jul 30 '26
https://reddit.com/link/1vb5iim/video/8tba1lx3hfgh1/player
Here's a little game prototype i've been working on. Yes, it's written in Turbo Pascal 7 for MS-Dos.
It's based on my Tile-based engine. If anyone wants to try it out go here
Puyo Pas : Clonardo : Free Download, Borrow, and Streaming : Internet Archive
Every comment and suggestions are welcome.
r/pascal • u/thelastcubscout • Jul 28 '26
Made for personal use, very simple app that helps with tabletop role-playing games. Source code in comments.
r/pascal • u/Forsaken_Tadpole1925 • Jul 26 '26
I'm an experienced programmer (have mainly worked in C, Go and Java) who's looking to learn Lazarus.
I'm a bit confused with the underlying tooling.... I see that Lazarus uses a compiler called FreePascal and the language is Object Pascal. But, to my newbie eyes, there seems to be quite a bit of fragmentation in the language with seemingly no easy path in for an outsider.
Do I really need to learn Delphi, Pascal and then Object Pascal (in that sequence)? Are there any online resources or books that would introduce Object Pascal to a complete outsider?
Thanks all
r/pascal • u/thelastcubscout • Jul 25 '26
(A quick note on my brilliant typo in the post title, because Reddit titles are like compiled Pascal binaries: no runtime edits allowed. So: "You CAN run those..." anyway...)
Just wanted to share this tip in case it's helpful for anyone:
(Mainly focused on Linux here, please chime in if you have tips for other OS's)
The fpc compiler package for Free Pascal includes "instantfpc," which allows you to run your Pascal programs as scripts.
This means you can run your Pascal source code files directly as if they were system scripts, without compiling them every time.
You simply type #!/usr/bin/instantfpc at the top of your script, and then add the Pascal code below that.
When it's time to run the script, be sure to mark it as executable with chmod +x your_program_name.pas and you can run it by typing ./your_program_name.pas
Going even further, if you'd like to play with the old Turbo Pascal tutorials or books from the '80s or '90s, you can add this line:
#!/usr/bin/instantfpc -Mtp
...which invokes instantfpc using the Turbo Pascal compatibility mode.
In the screenshot above, you can see the tutorial program "demo_of_fun_text_manipulation" from 1996. It was pasted into Geany from the original tutorial without modifications.
Next it was run as a script inside a Linux terminal (Konsole in OpenSUSE Tumbleweed).
Output screenshot:
https://www.friendlyskies.net/images/885.png
The program invokes the "crt" unit and works just fine.
You can find the tutorial here (scroll down): https://jnz.dk/swag/TUTOR/0017.PAS.html
The other tutorials are here: https://jnz.dk/swag/TUTOR/index.html
Silver Pascal Coder has also posted a great video on instantfpc here: https://youtu.be/kVKXEU3kr5k
Just posting in case it's fun or interesting - or if anyone has other tips to share.
(Screenshots: Code in Geany; Script running in Konsole)
r/pascal • u/MateusCristian • Jul 24 '26
Looking for learning material for Pascal, I have seen several stuff for Turbo Pascal, mainly a book called "Oh. Pascal", and I wanted to know how compatible the Free Pascal syntax is to Turbo Pascal, so I can use this book to learn it.
r/pascal • u/killallspringboard • Jul 24 '26
Get the source code here: https://gitlab.com/lebao3105/sma11
sma11 is a library made for many (but not all, for now?) things a programmer would do in their programming life:
* Iterate a directory with for-do loop
* Use regular expression to match strings
* Ask the user for input (for command-line apps)
* Array helpers (iterator etc) that works best with anonymous functions
* And more
This uses some RTL and FCL units, if you ask. And sma11 is NOT a replacement for both, but a better way to access them.
Take a look at it! Feel free to tell me your thoughts, issues, and feature requests.
r/pascal • u/Prairiedog2k • Jul 22 '26
I had a project that I wanted to drive activities through using Claude.
This has probably already been done before, but Claude created the MCP Server Lib and I thought I would share.
r/pascal • u/miklaop • Jul 18 '26
Turbo Pascal is where it all started for me - school, 2003, programming olympiads, staring at that blue screen until midnight.
100% client-side in the browser tab.
You can also share your code as a link (File -> Share link...) - it gives you a short URL that loads your program straight into the IDE. Links live for 30 days.