PDA

View Full Version : Very simple snake game



Roland Chastain
19-01-2018, 05:00 PM
Hello!

I would like to share with you a two hundred lines snake game I made using the WinGraph unit (http://math.ubbcluj.ro/~sberinde/wingraph/) by Stefan Berinde.

Use the left and right arrows to change the snake direction. http://www.pascalgamedevelopment.com/images/pgdsmilies/happy.gif

phibermon
19-01-2018, 05:56 PM
Very elegant :) this would make an excellent tutorial for the site if you were so inclined. Thank you for sharing :)

Roland Chastain
19-01-2018, 06:47 PM
Very elegant :)

Thank you for the compliment. :)


this would make an excellent tutorial for the site if you were so inclined.

Why not? I just would need some help to correct my english language. :)

What would be the most convenient format for such a tutorial ?

Cybermonkey
19-01-2018, 07:38 PM
I will have a look if I can port it to ptcGraph and ptcCrt, so it can be compiled for Linux, too.

Roland Chastain
19-01-2018, 07:46 PM
I will have a look if I can port it to ptcGraph and ptcCrt, so it can be compiled for Linux, too.

It would be great.

What about a Pulsar2D version? :)

SilverWarior
20-01-2018, 05:41 PM
Why not? I just would need some help to correct my english language. :)

Don't worry much about this. I guarantee you that AthenaOfDelphi will do it gladly. And I'm pretty sure prhibermon will also lend a hand.


What would be the most convenient format for such a tutorial ?

If you are going to write a tutorial please use PGD forum section. This means that you are basically writing an article here on PGD. Also since tutorial isn't published right away you can calmly work on it without worrying about publishing a half done tutorial.
And when you think you have done it just post a "Publish request" in "Site News and Feedback" and also request for content lecturing. Then one of the moderators that does have good knowledge of English will go through the tutorial contents and make necessary corrections before publishing the said tutorial.

And if you encounter some difficulties while writing the tutorial don't be afraid to ask PGD staff for help. We will gladly lend a helping hand.

Roland Chastain
20-01-2018, 06:11 PM
@SilverWarior

Perfect. Thank you.

Roland Chastain
02-02-2018, 12:33 AM
Hello friends! There is a new version of the game, with a title page, a high scores page, and sounds. Even the game logic has been rewritten.

The tutorial is coming soon. I begin with a french version and after I will try to translate it to english. ;)

Roland Chastain
11-02-2018, 08:14 AM
Hello! I retouched the source code (new version attached to my previous post). I have to finish to write the tutorial.

Roland Chastain
21-03-2018, 09:29 PM
Hello! I didn't give up that project.

I attach here the latest version of the source code.

Roland Chastain
25-04-2021, 07:27 PM
Hello!

I got back to this project and made a new version using the ptcGraph unit (and still the BASS library). The new version has pictures instead of simple colored squares.

1567

https://gitlab.com/rchastain/snake-ptcgraph