Recent

Author Topic: Mazer - procedural maze generator in Lazarus using Castle Game Engine  (Read 9366 times)

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
A maze generator created using Lazarus + Castle Game Engine
No much game at the moment, just walk around a crooked 9-level maze to find a rose :)
https://github.com/eugeneloza/Mazer
https://www.youtube.com/watch?v=aYq4KGaLKE8
« Last Edit: September 03, 2015, 06:57:02 am by Eugene Loza »
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

derek.john.evans

  • Guest
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #1 on: September 03, 2015, 08:40:03 am »
Very cool. Reminds me of some old early 90's engines.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #2 on: October 09, 2015, 12:26:39 pm »
He did some updates to the demo, that you can see in this thread from Pascal Game Development.

Eugene:  You shouldn't be so shy...  ;D
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #3 on: October 09, 2015, 01:17:06 pm »
Thanks!  ;) I'm just preparing for a bigger update.
And I don't want to waste too much attention in non-game-design specific forum.
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #4 on: February 08, 2016, 11:32:39 am »
I'm back with a huge update - a library tileset with placeholders!
Now you'll know why does it takes so long for librarians to fetch your book!

Video:
https://www.youtube.com/watch?v=PvqhzvSNByU
(smaller map, higher FPS)
https://www.youtube.com/watch?v=_B_LD6OP9U8
(larger map, lower FPS)
I'll post the last code version on GitHub asap.
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #5 on: February 08, 2016, 12:21:13 pm »
Cool.  But lighting needs some work...
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #6 on: February 08, 2016, 01:23:30 pm »
But lighting needs some work...
Definitely. As far as I understand it's shader-related, and I'm absolutely newbie in shaders :) So I want to concentrate on gameplay and FPS optimization (to provide for really huge maps) at the moment... I'll have to postpone shaders for later...
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #7 on: February 09, 2016, 03:03:11 pm »
Latest version uploaded to GitHub:
Source: https://github.com/eugeneloza/Mazer
Release (Win/Linux): https://github.com/eugeneloza/Mazer/releases/tag/v.160208

P.S. If anybody could look at my code and say if it's properly commented, I'd be very grateful, because it's the first time I write the code intended not only for my eyes :D
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1186
    • Burdjia
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #8 on: February 10, 2016, 12:52:39 pm »
Personally I don't like C++ comments (//).  I tend to use (* *) for important stuff and { } to explain code inside the methods, functions and procedures.

I recommend you to read about pasdoc.  It forces you to document everything in a way that in my opinion is very human-friendly.  Take a look to my Allegro.pas code to see it in action.

I like you have explained stuff inside the code.  Not a lot of people do that and it helps a lot.  Note that when we are writing code it always looks clear and even obvious, but in most cases it isn't!  Explaining it a bit helps to understand it, even to yourself when you're updating it some weeks/months later.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Eugene Loza

  • Hero Member
  • *****
  • Posts: 674
    • My games in Pascal
Re: Mazer - procedural maze generator in Lazarus using Castle Game Engine
« Reply #9 on: February 10, 2016, 01:09:08 pm »
Thanks! I'll have a close look at those!
My FOSS games in FreePascal&CastleGameEngine: https://decoherence.itch.io/ (Sources: https://gitlab.com/EugeneLoza)

 

TinyPortal © 2005-2018