EvilZone

Programming and Scripting => C - C++ => : 0poitr November 22, 2013, 07:16:32 PM

: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: 0poitr November 22, 2013, 07:16:32 PM
Hi guys!

This is a small mod of the classic snake game. But it's a bit more difficult than just finding way eating your food. You gotta avoid the falling blocks as well! Give it a try B)

Source and a demo video is attached. Run make and execute le_snake_mod to play game.
Cheers!
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: Kulverstukas November 22, 2013, 09:20:16 PM
Nice to see you back again :)

This is some cool stuff :D I guess it only works on Linux as it uses curses? meh... curses are damn hard to understand heh :P
+cookie to you, sir.

Btw there are too many blocks.
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: 0poitr November 23, 2013, 05:02:47 AM
Nice to see you back again :)

This is some cool stuff :D I guess it only works on Linux as it uses curses? meh... curses are damn hard to understand heh :P
+cookie to you, sir.

Btw there are too many blocks.

Thanks mate !
Yes I wrote it for linux, dunno if n/curses is available for cygwin.
And no, curses isn't that hard to understand. It's quite easy. I guess you also have used curses in your DoxBox project?  :)

Blocks are the fun!  :D
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: Kulverstukas November 23, 2013, 09:46:13 AM
n/curses are available for cygwin, and yes, I partially used them. Actually I just used Urwid library which  used n/curses :P

btw it's D0xBase :D
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: 0poitr November 25, 2013, 07:35:47 PM
...
btw it's D0xBase :D
My bad :D
Only thing i remember is, it was quite a lot of python code.
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: Traitor4000 December 03, 2013, 06:24:05 PM
Im new to C and I was looking through the source to learn some stuff (hope you dont mind  ;) )  your using things i thought were included in stdbool.h for instance line 56 and line  62 yet you only include menu.h.
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: ArkPhaze December 16, 2013, 07:15:30 AM
I'll take a look at the code tomorrow, off to see lady luck in my dreams for now ;) lol..

Pretty ****ing cool though for an idea. I'd imagine this would get difficult really quick when you've got to keep a larger tail away from the blocks.

edit: I have the greatest idea for a DirectX game in 3d now, and it's now patented *shifty-eyes*. Snake 3D inside the asteroid belt. ;p
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: Stackprotector December 16, 2013, 11:06:17 AM
Very nice :D, maybe add some more fun features to it? I think the falling blocks are kinda annoying, walls and such are maybe more fun.
: Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
: ArkPhaze December 17, 2013, 05:24:20 AM
Or other snakes that can eat things with your snake. Then it can be a battle as well as an obstacle course. Reaching a size larger than the other snake perhaps could allow you to eat the other snake... Like a pacman version of snakes. :)