Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Games
»
Yet Another Snake Game
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Connecting to AzureSQL
by
Zvoni
[
Today
at 08:58:12 am]
Transparent form
by
Pe3s
[
Today
at 08:47:26 am]
Scripts to generate ofici...
by
Thausand
[
Today
at 08:36:58 am]
Can I get the position an...
by
CM630
[
Today
at 07:59:53 am]
HTTP2 Support
by
Amir61
[
Today
at 07:58:14 am]
How to compare floating p...
by
Khrys
[
Today
at 07:21:17 am]
FPGMAP accepts duplicates...
by
Thaddy
[
Today
at 06:37:46 am]
Lazarus and FreePascal on...
by
shayneoneill
[
Today
at 05:51:48 am]
Error: -macosx_version_mi...
by
shayneoneill
[
Today
at 05:49:02 am]
SYnEdit lose cursor
by
eldonfsr
[
Today
at 03:31:46 am]
FPC Unleashed (inline var...
by
flowCRANE
[
Today
at 02:05:38 am]
IDE: Property editor does...
by
Raskaton
[
Today
at 01:24:59 am]
How to view the TODO list...
by
n7800
[May 12, 2026, 10:41:05 pm]
Hint tools gives wrong hi...
by
wp
[May 12, 2026, 10:29:45 pm]
Stack overflow detection
by
n7800
[May 12, 2026, 10:23:25 pm]
Qt does not position form...
by
systemgvp
[May 12, 2026, 09:56:34 pm]
Gtk3 widgetset - call for...
by
zeljko
[May 12, 2026, 09:44:13 pm]
Windows 10 x64 Kernel Dri...
by
PascalDragon
[May 12, 2026, 09:07:06 pm]
Feature announcement: Fun...
by
PascalDragon
[May 12, 2026, 08:57:47 pm]
How can I suppress except...
by
PascalDragon
[May 12, 2026, 08:34:40 pm]
TA Chart Axes visibility ...
by
wp
[May 12, 2026, 08:22:28 pm]
USB-C PD logger KM003C
by
DonAlfredo
[May 12, 2026, 07:42:44 pm]
TR-DOS Audio Suite
by
Gigatron
[May 12, 2026, 06:26:53 pm]
show me the parameters ce...
by
Nicole
[May 12, 2026, 05:42:40 pm]
TToolbutton: Dropdown men...
by
apeoperaio
[May 12, 2026, 03:11:30 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Yet Another Snake Game (Read 755 times)
silvercoder70
Full Member
Posts: 201
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...
Logged
🔥 Pascal Isn’t Dead -> See What It Can Do:
@silvercoder70 on YouTube
Ñuño_Martínez
Hero Member
Posts: 1226
Re: Yet Another Snake Game
«
Reply #1 on:
March 23, 2026, 12:12:30 pm »
Never enough Snake games.
[edit] Saw the video. Pretty nice game. I'll test it later.
Logged
Are you interested in
game programming
? Join the
Pascal Game Development
community!
Also visit the
Game Development Portal
Roland57
Hero Member
Posts: 605
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.
Logged
My projects are on
Codeberg
.
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Games
»
Yet Another Snake Game
TinyPortal
© 2005-2018