Hi Chili people!
So i hooked up this game quite a while ago, right after learning about classes in chillis tutorials. The game is really simple, no fancy graphics or so, but its still a snake
Anyways if you want, try it out.
Use mouse in the menu & arrow keys when playing.
Snake! [GAME]
Snake! [GAME]
- Attachments
-
- Snake.rar
- Snake game
- (838.86 KiB) Downloaded 398 times
- viruskiller
- Posts: 399
- Joined: June 14th, 2012, 5:07 pm
Re: Snake! [GAME]
really nice worked out:D.
one question tough , how long did it took u to figure how to do the snake movement so is done right when u press the key and how to add the next cube at the end of the snake instead of the head:D?
i made a similar snake game, although no text graphics on it , a while ago and at first it looked really simple the way i designed it, but then it felt like it wasn't like the real thing, meaning my snake was slowing down for a bit every time it hit the goal, and also it was turning one snake movement after the key being pressed instead of the next game frame:)
anyways have't noticed any of that with your game is is cool:), although the speeds are kinda medium to very hard instead of easy ,normal,hard for me:D. some snake games have a real snail like speed for easy mode:)
one question tough , how long did it took u to figure how to do the snake movement so is done right when u press the key and how to add the next cube at the end of the snake instead of the head:D?
i made a similar snake game, although no text graphics on it , a while ago and at first it looked really simple the way i designed it, but then it felt like it wasn't like the real thing, meaning my snake was slowing down for a bit every time it hit the goal, and also it was turning one snake movement after the key being pressed instead of the next game frame:)
anyways have't noticed any of that with your game is is cool:), although the speeds are kinda medium to very hard instead of easy ,normal,hard for me:D. some snake games have a real snail like speed for easy mode:)
Re: Snake! [GAME]
Hi viruskiller.
In short, the snake is made out of boxes, every box is an object, all boxes are linked together.
I used linked-list method to do all the stuff, for example to add a new box I just create a new box object and attach it to the end of the linked-list. For the movements - I loop backwards from the last box to the first one, and change their positions. Like so - Box->xPositon = Box->previousBox->xPosition .
It took me some time to figure out all the stuff, but in the end i was happy of my game
In short, the snake is made out of boxes, every box is an object, all boxes are linked together.
I used linked-list method to do all the stuff, for example to add a new box I just create a new box object and attach it to the end of the linked-list. For the movements - I loop backwards from the last box to the first one, and change their positions. Like so - Box->xPositon = Box->previousBox->xPosition .
It took me some time to figure out all the stuff, but in the end i was happy of my game