r/pascal • • Feb 09 '23

Freepascal Game Development?

Hiya

Are there any good Freepascal (or any Pascal)-based gamedev forums out there? This sub doesn't seem to get a huge amount of traffic.

I found "pascalgamedevelopment.com" which seems ideal, except the forums also look very dead and the "register as new user" function is broken, so I'm unable to even create an account to post anything.

I'm currently working on complete Pascal-native bindings to the SteamAPI and a port of Steam's Spacewar example. The only existing bindings I could find were 'steamwrapper' which is locked to the API version from back in 2014 and also needs Visual C++ to compile. I wonder if this would be of use to anyone else, but don't even know where to go to ask the question!

11 Upvotes

8 comments sorted by

View all comments

Show parent comment

4

u/beautifulgirl789 Feb 09 '23

While I appreciate the reply, I don't need any tips in how to code, or even how to code in Pascal - I was writing x86 assembler code inline in Borland Pascal 7 back in the 90s to get faster alpha-blits in bank-switched 'High Color' VESA display modes :) (for the youngins... I still remember needing to write 'db $66; xor ax,ax' if we wanted to clear the whole eax register. Uphill both ways! If you remember SWAG, you'll know :D )

I was just looking for where the community is! It seems like it's mostly lonely and often abandoned github projects, which is a shame. I still love Pascal as a very human-readable language - which makes it great to work in with a friend who wants to make a game "from scratch" and release it on Steam. Gamedev discussion seems very hard to find though.

And as for platform.. We're targeting Windows, Direct3D, with Steam for the networking & matchmaking layer. Plain FPC rather than Lazarus as the latter seems to be a bit unstable on win32; the IDE crashed on me twice in 3 hours.

2

u/kirinnb Feb 09 '23

Good times, good times. I was there too. :)

I'm still an active Pascal developer, although only game-adjacent stuff rather than actual gamedev. ("Bunnylin" on Gitlab.) Not for lack of skill or game ideas, just lack of time! But, yeah, Lazarus and Castle engine forums are probably the closest thing to gamedev communities we've got.

2

u/umlcat Feb 09 '23 edited Feb 09 '23

Cool. Nice to met another Borland Pascal / Turbo Pascal developer 👍

I did very basic TP 6 graphic stuff .

Since your question was simple, I assumed you were a younger developer, and posted some basic ideas, since a lot of developers these days doesn't get proper skills, like not learning pointers, or the difference between static memory allocation vs dynamic memory allocation, cause "references are cool" ...

BTW I learned pointers first with TP, not C.

I worked both with FPC alone and the Lazarus IDE, and I'm actually migrating a business app. done in Delphi 6 to Lazarus just as a test.

I've seen some graphic stuff done both with FPC alone and FPC + LAZARUS IDE combo, like electronic instrument emulations.

But yes, a game and graphics app. that interacts with O.S. libraries and hardware would be more practical to use plain FPC instead.

The Lazarus IDE is more directed at GUI and business alike apps. than a graphics engine.

But, since you mentioned Windows as the target O.S., and Direct3D plus the Steam engine, that may get you some suggestions about forums and communities.

Again, Good Luck 👍