Recent

Author Topic: Yet Another Snake Game  (Read 646 times)

silvercoder70

  • Full Member
  • ***
  • Posts: 201
    • Tim Coates
Yet Another Snake Game
« on: March 17, 2026, 09:40:16 am »
Hi everyone,

I know the world doesn't need another Snake clone, but I used this as a teaching exercise to see how "clean" I could keep the logic using modern FPC/Lazarus features.b It's not the greatest code, but it’s functional. Feel free to play with it, break it, or make it better.

Video here: https://youtu.be/MQamUn-I-bc?si=bf3wDLZUdwfxw40j
GitHub: https://github.com/silverpascalcoder/fpc/tree/main/games/snake-gui

Enjoy. Hopefully...
🔥 Pascal Isn’t Dead -> See What It Can Do: @silvercoder70 on YouTube

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1225
    • Burdjia
Re: Yet Another Snake Game
« Reply #1 on: March 23, 2026, 12:12:30 pm »
Never enough Snake games.  ;D

[edit] Saw the video.  Pretty nice game.  I'll test it later.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Roland57

  • Hero Member
  • *****
  • Posts: 602
    • msegui.net
Re: Yet Another Snake Game
« Reply #2 on: March 23, 2026, 01:26:44 pm »
Nicely done. Thank you for sharing.

I noticed that some direction changes are not drawn correctly: the snake is broken.
My projects are on Codeberg.

 

TinyPortal © 2005-2018