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
Is an uninitialized dynam...
by
Martin_fr
[
Today
at 11:00:17 pm]
[UPDATE] SedaiBasic - SSA...
by
mau.camma
[
Today
at 10:49:14 pm]
TCHATGPT — An Artificial ...
by
marcelomaurinmartins@gmai
[
Today
at 10:33:02 pm]
Using callback
by
Thaddy
[
Today
at 09:12:24 pm]
Fast multi threaded file ...
by
Tomu
[
Today
at 09:07:48 pm]
Rounding issues (only wit...
by
Thaddy
[
Today
at 08:34:41 pm]
How to get file type from...
by
Thaddy
[
Today
at 08:32:51 pm]
Gtk3 widgetset - call for...
by
zeljko
[
Today
at 07:52:01 pm]
Changing the same record ...
by
Tomu
[
Today
at 07:13:22 pm]
Amigo programming languag...
by
paxscript
[
Today
at 07:09:06 pm]
Ellipses Function?
by
munair
[
Today
at 06:38:14 pm]
Isn’t this funny?
by
munair
[
Today
at 06:01:40 pm]
FPC Unleashed (async/awai...
by
srvaldez
[
Today
at 03:35:52 pm]
Lazarus for Windows on aa...
by
szlbz
[
Today
at 10:27:29 am]
Playing with GTK-server
by
Roland57
[
Today
at 10:11:06 am]
[New Component] ExtTabCtr...
by
wp
[
Today
at 10:04:27 am]
Some Lazarus documentatio...
by
dsiders
[
Today
at 09:40:28 am]
Slow app start on M5 MacB...
by
Thaddy
[
Today
at 06:34:10 am]
Review from FreePascal
by
n7800
[
Today
at 05:27:49 am]
Network drop and firewall
by
kupferstecher
[July 21, 2026, 07:11:07 pm]
How to check my own certi...
by
LeP
[July 21, 2026, 05:04:49 pm]
How can I get names of CO...
by
Thaddy
[July 21, 2026, 04:55:08 pm]
Accessing VRAM memory wit...
by
Thaddy
[July 21, 2026, 01:31:19 pm]
Fixed an RV32ec compiler ...
by
ccrause
[July 21, 2026, 12:04:05 pm]
[SOLVED} Copying existing...
by
Davo
[July 21, 2026, 11:59:45 am]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Yet Another Snake Game (Read 835 times)
silvercoder70
Full Member
Posts: 202
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
Modern Pascal. Clear. Practical. Real.
@silvercoder70
Ñuño_Martínez
Hero Member
Posts: 1225
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: 616
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