Recent

Author Topic: Untitled raycaster game (WIP)  (Read 557 times)

hukka

  • Jr. Member
  • **
  • Posts: 62
    • Github
Untitled raycaster game (WIP)
« on: April 18, 2026, 08:29:49 pm »
Just dumping a couple of screenshots of a game in the early stages of development. It's a simple stealthy game where you have to steal treasure and avoid enemies.
Uses a simple raycaster, not very advanced but does support transparency in textures and dynamic lighting. Uses SDL3 for visuals and BASS for audio.

Some technical features:
- Wall and sprite rendering are GPU accelerated, floor and ceiling are drawn on the CPU (by far the slowest part)
- Audio uses 3D positioning and it's the player's main cue as to where enemies roam currently
- Shaders are also supported but currently only used to add some bloom and blur to the lightmap. The CRT effect was achieved purely through 2D blits

Not sure this will ever be a finished game, but just wanted to show off what I've been working on.

440bx

  • Hero Member
  • *****
  • Posts: 6493
Re: Untitled raycaster game (WIP)
« Reply #1 on: April 18, 2026, 08:34:29 pm »
It's looking good.
FPC v3.2.2 and Lazarus v4.0rc3 on Windows 7 SP1 64bit.

flowCRANE

  • Hero Member
  • *****
  • Posts: 956
Re: Untitled raycaster game (WIP)
« Reply #2 on: April 18, 2026, 08:48:30 pm »
Very well done, looks lovely! Finally a more advanced game in Free Pascal. 8)

Will you be releasing the source code for this game, or is it a closed-source project? I'd love to take a look at the source code; I'm curious about the implementation.

PS: Why didn't you use the SDL3 mixer, but used BASS instead? Is there a particular reason for that?
Lazarus 4.6 with FPC 3.2.2, Windows 11 — all 64-bit

Working solo on a top-down retro-style action/adventure game (pixel art), programming the engine from scratch, using Free Pascal and SDL3.

hukka

  • Jr. Member
  • **
  • Posts: 62
    • Github
Re: Untitled raycaster game (WIP)
« Reply #3 on: April 18, 2026, 09:29:05 pm »
Very well done, looks lovely! Finally a more advanced game in Free Pascal. 8)

Will you be releasing the source code for this game, or is it a closed-source project? I'd love to take a look at the source code; I'm curious about the implementation.

PS: Why didn't you use the SDL3 mixer, but used BASS instead? Is there a particular reason for that?

Thanks!
If it seems like it's actually going to be something fun to play I may want to keep it closed source and sell it on Steam for a couple of bucks. Otherwise the engine will be opensourced.
The reason for using BASS is solely for the 3D audio support it has builtin.

EDIT: I'll send you the sources once I've done some cleaning up, the data folder is 300+ MB but only a fraction of it is actually used.
« Last Edit: April 18, 2026, 09:35:22 pm by hukka »

flowCRANE

  • Hero Member
  • *****
  • Posts: 956
Re: Untitled raycaster game (WIP)
« Reply #4 on: April 18, 2026, 11:30:41 pm »
If it seems like it's actually going to be something fun to play I may want to keep it closed source and sell it on Steam for a couple of bucks.

Very cool, nice to hear this! I hope more people will be inspired to create more serious games in Free Pascal, because this language is practically nonexistent in the game development sector (even though it’s IMO much better suited for it than, say, C++). Good luck—I’m rooting for you!

Quote
The reason for using BASS is solely for the 3D audio support it has builtin.

Ah, ok. But if you'd prefer to stick with SDL3, SDL_mixer 3.0 supports 3D audio positioning—the MIX_SetTrack3DPosition function is used for this. However, I haven't tested this mixer yet, so I'm just going by the documentation.

Quote
EDIT: I'll send you the sources once I've done some cleaning up, the data folder is 300+ MB but only a fraction of it is actually used.

Okay, I'll wait patiently for your message. :D
« Last Edit: April 18, 2026, 11:32:32 pm by flowCRANE »
Lazarus 4.6 with FPC 3.2.2, Windows 11 — all 64-bit

Working solo on a top-down retro-style action/adventure game (pixel art), programming the engine from scratch, using Free Pascal and SDL3.

hukka

  • Jr. Member
  • **
  • Posts: 62
    • Github
Re: Untitled raycaster game (WIP)
« Reply #5 on: April 19, 2026, 12:12:06 am »
Very cool, nice to hear this! I hope more people will be inspired to create more serious games in Free Pascal, because this language is practically nonexistent in the game development sector (even though it’s IMO much better suited for it than, say, C++). Good luck—I’m rooting for you!

It will definitely have a big "Made with Free Pascal" logo in it!

Quote
But if you'd prefer to stick with SDL3, SDL_mixer 3.0 supports 3D audio positioning—the MIX_SetTrack3DPosition function is used for this. However, I haven't tested this mixer yet, so I'm just going by the documentation.

Thanks for the heads up! I hadn't realized there was already support for 3D audio within SDL - if I get that far I will transfer to using SDL_mixer just to avoid having to pay the license fee for commercial usage of BASS.

etrusco

  • New Member
  • *
  • Posts: 22
Re: Untitled raycaster game (WIP)
« Reply #6 on: April 19, 2026, 02:54:01 am »
Very well done, looks lovely! Finally a more advanced game in Free Pascal. 8)

What, you don`t think Castle Engine is advanced enough? O_o

TBMan

  • Sr. Member
  • ****
  • Posts: 353
Re: Untitled raycaster game (WIP)
« Reply #7 on: April 20, 2026, 08:14:08 pm »
Nice work.
Barry

Newest game (clone),
Missile Commander:
https://www.youtube.com/watch?v=tgKz0cxog-k

flowCRANE

  • Hero Member
  • *****
  • Posts: 956
Re: Untitled raycaster game (WIP)
« Reply #8 on: April 21, 2026, 01:17:56 am »
What, you don`t think Castle Engine is advanced enough? O_o

Castle Game Engine is an engine/IDE, not a game.

I don't know many advanced games written in Free Pascal, but the most advanced I know is Hedgewars. But this is a free, open-source game, not a professional, commercial product. If you know of any, let me know—I’d love to check them out, because I don’t know of any.
« Last Edit: April 21, 2026, 05:49:15 pm by flowCRANE »
Lazarus 4.6 with FPC 3.2.2, Windows 11 — all 64-bit

Working solo on a top-down retro-style action/adventure game (pixel art), programming the engine from scratch, using Free Pascal and SDL3.

 

TinyPortal © 2005-2018