• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

An Advanced Snake Game Implementation in C++, OpenGL, and GLFW.

Fallen

Freelancer
Senator
Joined
Aug 21, 2009
Messages
3,712
Reaction score
250
Location
Egypt
NOTE: This was posted intentionally on the Chit Chat board since it does not fit in any way to the Discussion board.

Alright, so, just wanted to hear opinions on a Nokia-based 2D Snake Game that I wrote few weeks ago and still in active development (not so active since I work on it when bored).

Browser Source Code: https://github.com/allanference/Snake
NO Binary Release Available, compile it yourself. (Maybe i'll consider compiling one if 5 or more request it)

FAQ
So how does it work?

* It uses auto movement just like Nokia's with a small interval that decreases each time you eat an apple. (Initial interval is 400 milliseconds)
The interval decreases like this:
Code:
interval = interval - (applesEaten * 3);

* You can penetrate walls (as in, if you go to a wall [max border], you will appear in the opposite side, if top, then bottom, if left, then right, etc.)

* New Feature: Diagonal movement, just like Tibia's, this feature is not in Nokia's game but I implemented it for fun.

It's a pretty simple game to play, however, I called it advanced as in implementation detail not gameplay.

I keep playing but I realized that I never die, wtf?

Yes, currently the Snake is immortal, I haven't found a good creative idea to make him die.
Current Idea that I thought of after Talaturen told me "he should die when he gets aids" was that he would die by eating bait food.

The textures are ripped from Tibia, wth?!

Yes, I could not find good textures over the interwebs to use, if you know of good ones (that are 32x32 or bigger, but I'd prefer 16x16 then 32x32 then 64x64 then 128x128 power of two's if you understand me [This is basically for the snake to grow]), post them and i'll check them and perhaps use them instead.

How'd you ripoff Tibia sprites?

I wrote this small C program to dump them.

Thanks for reading and feel free to post opinions, whether destructive or constructive.
 
Last edited:
NOTE: This was posted intentionally on the Chit Chat board since it does not fit in any way to the Discussion board.

Alright, so, just wanted to hear opinions on a Nokia-based 2D Snake Game that I wrote few weeks ago and still in active development (not so active since I work on it when bored).

Browser Source Code: https://github.com/allanference/Snake
NO Binary Release Available, compile it yourself. (Maybe i'll consider compiling one if 5 or more request it)

FAQ
So how does it work?

* It uses auto movement just like Nokia's with a small interval that decreases each time you eat an apple. (Initial interval is 400 milliseconds)
The interval decreases like this:
Code:
interval = interval - (applesEaten * 3);

* You can penetrate walls (as in, if you go to a wall [max border], you will appear in the opposite side, if top, then bottom, if left, then right, etc.)

* New Feature: Diagonal movement, just like Tibia's, this feature is not in Nokia's game but I implemented it for fun.

It's a pretty simple game to play, however, I called it advanced as in implementation detail not gameplay.

I keep playing but I realized that I never die, wtf?

Yes, currently the Snake is immortal, I haven't found a good creative idea to make him die.
Current Idea that I thought of after Talaturen told me "he should die when he gets aids" was that he would die by eating bait food.

The textures are ripped from Tibia, wth?!

Yes, I could not find good textures over the interwebs to use, if you know of good ones (that are 32x32 or bigger, but I'd prefer 16x16 then 32x32 then 64x64 then 128x128 power of two's if you understand me [This is basically for the snake to grow]), post them and i'll check them and perhaps use them instead.

How'd you ripoff Tibia sprites?

I wrote this small C program to dump them.

Thanks for reading and feel free to post opinions, whether destructive or constructive.
gib crebitz men!
lel

:P have you sorted the food issue?
 
First request for binary ^^

Sounds fun!

Red
 
Fifth request for binary ^^

Sounds fun!

zbizu
 
Last edited:
Didn't lie, just a little busy and got no windows machine ready to compile it on. ;p
It's pretty easy to compile, you don't need much libraries (just GLFW3, GLEW, both of 'em are lightweight and should be available on the internet in binary forms).
Then use some IDE like CodeBlocks and import the project files and link with the libraries then press compile, done.
 
Didn't lie, just a little busy and got no windows machine ready to compile it on. ;p
It's pretty easy to compile, you don't need much libraries (just GLFW3, GLEW, both of 'em are lightweight and should be available on the internet in binary forms).
Then use some IDE like CodeBlocks and import the project files and link with the libraries then press compile, done.

got cancer trying to read and assimilate all this xD
 
Updates:

- Now the food is removed automatically depending on your speed
- You die when your health reaches 0 (you start off with 50, decreases/increases depending on how many apple you ate)
 
Back
Top