The Rattle Snake Game (Version 1)
Guess What Folks !!!
Finally, My very 1st Game Program in C/C++ called “ The Rattle Snake Game ”, on which I’ve already told y’all about in my previous post, has been completed. It took me about 2 Weeks, let say 14 Days, for making it happen.
From since Day One till the End, I was constantly thinking and working upon through this Day-Night, using the concepts related to this game like- Designing The Intro and The Outro, Animating Snake Motion, Updating Score Board and Calling Other Menus and Sub-Menus. For this, I’ve used most possible Proper and Logical Algorithms in order to implement such concepts. I’ve also simple Graphics, which is basically has C Header file “GRAPHICS.H”, through which I had done the animation part easily by calling its concerned functions. Now, that’s kinda fascinating for the Gamers. Moreover, I’ve made my Game Program Well Coded, Nicely Indented and Minimal Memory Space as possible. Even I’ve divided it into various Modules (Functions), so that my other fellow Programmers could easily find it readable enough and understand the logics which I had used so far.
I won’t gonna tell you how to play it as it’s very simple Game which you might have played during your Kindergarten days. Instead I would like to throw some light on this Game in certain small Snippets.
This is the Intro of this Game, where you could see a border made with Snake’s body, alongwith the Title Name of the Game, the Programmer’s Name. (Off-course It’s me :P) and also a Blinking Message at the bottom asking for pressing any Key.
As you can see now, it immediately asks to Enter your Name after pressing any Key. When you’re done with entering your name, simply press Enter key to move further. But Remember, You could use less than 10 characters only. Otherwise, you would be asked again and again for entering your name under 10 characters, alongwith an Error message.
Now, you would love to see the following thing because it’s the Main layout view of the Game. I’ve made a Sidebar at the right. It consists of an Instruction Menu (with the commands and keys for playing the Game) , a Scorecard (which keeps on updating whenever the Snake eats the Egg) and a Blank Space left for displaying Messages. You can move the Snake by the arrow movements.
For pausing the Game Press ‘Enter’ key and for Exiting the Game Press ‘0’ key.
Well, When the Snake has eaten the Egg, the score gets updated which was higher than the initial High Score (Zero). The High Score would now get updated with a Navy Blue Text Background. However, its length would increase after consuming 2 Eggs.
When you’ve reached any Level, i.e. eaten the numbers of eggs so far to reach the next level, You would be getting a Level bonus on clearing the previous Round. Your speed gets more increased after Crossing any Level.
As obvious, there are two ways of getting the Snake Out, i.e. biting either the walls or itself. For that a message would gets displayed with a message “Ouch !!” followed by “Gameover”.
If you Quit yourself by pressing ‘0’ key manually, you’ll kicked out of the game and similarly a message would gets displayed with a message now calling “Exit !!” followed by “Gameover”.
Whenever your Game gets Over, by either the above ways, you would further be asked for Continue again. Press ‘y’ for Yes or ‘n’ for No. If ‘Yes’, the new message “Loading” would be displayed. Within few seconds, a New Game would be uploaded on a Fresh screen resetting all the Scores and Levels to its initial value except the High Score.
However, On pressing for ‘No’, the new message “Exiting” would be displayed. After that a fresh screen appears with similar Design like the Intro had and also an Outro message, thanking you for playing my game.
Post your Feedbacks for this very Simple Game, with Simple Graphics and Concepts by your very Simple Blogger, Ash Bee. 8)
PS:- Don’t criticize me for making such a simple game. It’s my very 1st step in Game Programming and Animation. I would definitely go further on this thing since I’ve already laid some interest over it. Hopefully, I would increase my Level to make some Brilliant Games on upcoming days.