-
My first game C++ game
Well really its my first VC++ program but whats the diffrence between friends?
Its a simple game like the snake game you find on mobile phones its quite fun for all of 5 seconds. It reads each level from a file (#.dat) and places the walls from the position of the 'X's in the file. The number after it is the timer interval i.e. smaller for faster.
In the game use arrow keys to change direction, press P to pause and Esc to exit.
I would have put the sorce up but im not sure which files are needed.
Please post a comment if you download it.
God that sounds very dull doesn't it? But give it a try and tell me if you like it. The 3rd level is interesting.
-
-
Im a dumb ****
-
Hey, why no comments??
Please post a reply, i like to see what others think about my programs.
-
Whew; fast. Awsesome job, though.
-
very nice, level 3 is GOOD. had fun
-
Thanks for the comments!
CodeMonkey if you think its too fast edit the files like #.dat in notpad, change the timer interval at the bottom.
-
sweet
that game was pretty sweet!
-
Err... I died. ;)
Wow, excellent game man! What did ya use to make it? Allegro? That might be a good idea for me to try.
Keep it up!
Valar_King
-
Jupp to fast... you should time the movement of the snake so that it is eaqual fast on all computers. Its fairly simple to do, and its used in all major games.
something like this:
Code:
PosX += SquaresPerSecond * frameTime;
I see that your snake move one square each time, so you would have to do something like this:
Code:
float RealPosX;
int SquarePosX;
.
.
.
RealPosX += SquaresPerSecond * frameTime;
SquarePosX = RealPosX - (RealPosX % SquarePosX);
Ah... eh.. well you get the idea I hope.
Nice to see someone finish a game though! good work!
-
Post
COuld you post your game again with the new code, i would like to see move not so extremely fast.
-
Can u post source code? What did u use to make all the graphics?
thnx
-
Ok, due to not so popular demand here's the source.
As i said already if you feel the game is to fast just change the number at the bottom of the level file i.e. 1.dat, 2.dat ect. This will change the timer interval.
I think i have included all the files that you need but i wouldn't bet on it. Also please note this is my first VC++ program and i havent tided up the code yet.
Thanks again for the responces. :)
-
Oh and the graphics where just drawn in photoshop
-
Did u use any graphics library?