Author Topic: [C] le Snake Mod [A mod of the classic snake game for *nix terms]  (Read 1716 times)

0 Members and 2 Guests are viewing this topic.

Offline 0poitr

  • Peasant
  • *
  • Posts: 149
  • Cookies: 64
    • View Profile
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!
« Last Edit: November 22, 2013, 07:22:27 pm by 0poitr »
Imagination is the first step towards Creation.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #1 on: 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.
« Last Edit: November 22, 2013, 09:20:31 pm by Kulverstukas »

Offline 0poitr

  • Peasant
  • *
  • Posts: 149
  • Cookies: 64
    • View Profile
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #2 on: 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
Imagination is the first step towards Creation.

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #3 on: 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

Offline 0poitr

  • Peasant
  • *
  • Posts: 149
  • Cookies: 64
    • View Profile
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #4 on: 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.
Imagination is the first step towards Creation.

Offline Traitor4000

  • Knight
  • **
  • Posts: 191
  • Cookies: 8
    • View Profile
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #5 on: 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.
The most vulnerable part of an impenetrable system is those who believe it to be so.

Offline ArkPhaze

  • Peasant
  • *
  • Posts: 136
  • Cookies: 20
  • null terminated
    • View Profile
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #6 on: 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
« Last Edit: December 16, 2013, 07:17:24 am by ArkPhaze »
sig=: ArkPhaze

[ J/ASM/.NET/C/C++ - Software Engineer ]

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #7 on: 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.
~Factionwars

Offline ArkPhaze

  • Peasant
  • *
  • Posts: 136
  • Cookies: 20
  • null terminated
    • View Profile
Re: [C] le Snake Mod [A mod of the classic snake game for *nix terms]
« Reply #8 on: 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. :)
sig=: ArkPhaze

[ J/ASM/.NET/C/C++ - Software Engineer ]