Source code release of my FOSS proof-of-concept 3d platformer!

I’ve made an extremely simple FOSS 3d platformer, based on the ThirdPersonNavigation scene in the engine! (I just added jumping)

It’s based on Pepper & Carrot, the CC-BY webcomic. I made almost all of the assets myself in Blender (I only started learning Blender this year, so they’re very basic and the animation is kind of terrible) released under the CC-BY-SA 4.0+ license. Code is under AGPL v3+.

There are about 10 levels, mostly just collecting yellow spheres, but also one underwater where you swim, and 2 where you fly on your broom, and a couple of ones where you throw snowballs at people.

It still has FPS counter and debug information on the screen, because I just got bored towards the end. Lots of code spaghetti and probably bugs (I also only started learning Pascal this year too :grinning:)

Code is at:
https://sr.ht/~ultidonki/pepper_carrot_3d_platformer/



2 Likes

Cool! Going to play it now :slight_smile: Note: I’d suggest to upload it on https://itch.io/ . We have a few games with CGE there already, on https://castle-engine.itch.io/ and https://decoherence.itch.io/ .

2 Likes

Yay, I win!!!

Really cool!

A tiny note from Lazarus user: your game files aren’t added to LPI. That’s ok when compiling from command line (pure FPC + CGE), but Lazarus complains that “unit not found”. Should be something like this:

1 Like

Thanks, both! :smiley:

Yes, I might put it on itch.io - but I definitely need to clean up a few edges before I do that. In particular, remove the FPS and debug messages, any printing to console, and rebind arrow keys as an alternative to WASD as not all keyboards can handle it. Maybe I’ll try to put it there by the end of the year, I’ll update in this topic if I do!

eugeneloza - Thanks for that, I’ve made that change and updated the repo, it compiles with lazbuild now. I haven’t looked at what the lpi/lpr files do yet, but your suggestion made it work - thanks a lot! :smiley:

1 Like

@ultidonki Note that I just played with the code, and upgraded it to compile with latest CGE (we had to make some incompatible changes to vectors API to make them more reliable, and around changes to camera/navigation components).

My fork is on GitHub - michaliskambi/pepper_carrot_3d_platformer: Fork of Pepper & Carrot - 3D platformer prototype to upgrade it to work with latest CGE .

Oh, I also added there GitHub Actions support (following GitHub Actions | Manual | Castle Game Engine ) so that it automatically builds on GitHub.

Let me know would you like me to submit the modifications to you in some other way, if you’d like access to that GitHub repo.

Thank you very much! The changes are fine on Github, I can pull them from there :grinning:

I haven’t been using Castle Game Engine much recently, but I want to use this platformer as a basis for other game ideas in the future, after I learn how to make better art, so thanks again for help keeping it compileable and ready to use! :smiley: