ZFGC

Projects => Other Projects => Topic started by: Moon_child on February 24, 2009, 06:58:26 pm

Title: [Completed] Frogger :D (PC & DS versions)
Post by: Moon_child on February 24, 2009, 06:58:26 pm
I had to create a game for a school assignment, so I chose for Frogger. I thought it was pretty doable for someone with my experience in programming with C++! And since I had only around a week to finish it, I decided to give it a shot! And in my honest opinion I think it turned out pretty nicely. I wrote (PC version) in the topic title, because I'm planning to create a Nintendo DS version as well. It won't be a straight port of this version though. Because I think it would be cool to use both screens for the game. Like the lower screen for the street part, and the top screen for the water part. I will start working at this version soon. It will probably take a bit longer then this version. Because I also have to start working on the next school assignment. Which is a network game.

Screenshot
(http://i22.photobucket.com/albums/b311/Hyrule_boy/My%20frogger%20PC%20version/Frogger.png)

Download link to version 1.1
Click here (http://filebeam.com/d2c8d821cd20f98db8da3c0ceb437a91) to download the game.

Controls
Arrow keys for moving frogger, and cursor in the game over screen.
Enter for starting the game when you're in the menu, and enter is also used to decide whether you try again or not when you are game over.

Bugs?
If you found a bug then please let me know, and please be specific about where it happend, how it happend, etc. (A screen can help explain A LOT) :)
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: King Tetiro on February 24, 2009, 07:47:34 pm
I'll have a try at this. Looks awesome so far.
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: LTGH on February 24, 2009, 08:09:27 pm
I want to try it but i get error when trying to open it :[
I also think that the game would be funnier to play if you tryed to get better graphics. :p
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: Moon_child on February 24, 2009, 08:34:28 pm
I want to try it but i get error when trying to open it :[
I also think that the game would be funnier to play if you tryed to get better graphics. :p
Did you extract the Frogger.exe and res folder somewhere?
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: D-Pad on February 24, 2009, 08:35:41 pm
I also receive an error when opening the file on Windows XP.

frogger.exe has encountered a problem and needs to close.  We are sorry for the inconvenience.


The error occurs when I double-click on the .exe file (to run it).

Edit -
Did you extract the Frogger.exe and res folder somewhere?

I extracted the files to my desktop in a folder called "Frogger".
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: Moon_child on February 24, 2009, 08:59:01 pm
I also receive an error when opening the file on Windows XP.

frogger.exe has encountered a problem and needs to close.  We are sorry for the inconvenience.


The error occurs when I double-click on the .exe file (to run it).

Edit -
Did you extract the Frogger.exe and res folder somewhere?

I extracted the files to my desktop in a folder called "Frogger".
EDIT: Sorry for the error guys! I made a embarrassing mistake! It tried to load a sound that I didn't include, because I wasn't using it... I fixed it now!
Here's the fixed version.
(old link removed; version 1.1 link in the first post!)
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: Zaeranos on February 24, 2009, 09:06:11 pm
I tried it and it was really good and fun to play.

But seeing as how many get errors here, I wonder what you've exactly used for programming this. As you've said you used C++, but that is not enough to create a game. Have you used DirectX or OpenGL or even a Win32 API. And have you made the game for 32 bits or 64 bits PC's. And which OS

I can say this. I have a Athlon 64 (64 bits) with Windows Vista 64. The latest in DirectX and OpenGL. And it works.
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: Moon_child on February 24, 2009, 09:10:56 pm
I tried it and it was really good and fun to play.

But seeing as how many get errors here, I wonder what you've exactly used for programming this. As you've said you used C++, but that is not enough to create a game. Have you used DirectX or OpenGL or even a Win32 API. And have you made the game for 32 bits or 64 bits PC's. And which OS

I can say this. I have a Athlon 64 (64 bits) with Windows Vista 64. The latest in DirectX and OpenGL. And it works.
What errors did you get? And I just updated the links in this topic, since I forgot to erase a code line that tried to load a sound that wasn't there. And I used a library for the graphics and sound effects that my C++ teacher wrote. It runs perfectly fine on Windows XP/Vista 32 bit, I don't know about 64 bit.
Title: Re: [Frogger] My first C++ game! :D (PC version) ERROR FIXED!
Post by: D-Pad on February 24, 2009, 09:22:04 pm
EDIT: Sorry for the error guys! I made a embarrasing mistake! It tried to load a sound that I didn't include, because I wasn't using it... I fixed it now!
Here's the fixed version.
http://www.mediafire.com/?sharekey=5cb7aed486a5b29f5bf1f12f1ff3f30ae4a5ea77b5a942eece018c8114394287

Yup, it works now! I love the retro feel of it - the graphics and the sound effects.

I don't know if this is my computer or the game: The keyboard input started lagging real bad after the first game-over (I decided to try again). It's now lagging even when I close down and re-open the program. At first I thought it was the keyboard's batteries or sensor but I'm having no problem with it now, only in-game. :S
Title: Re: [Frogger] My first C++ game! :D (PC version) ERROR FIXED!
Post by: LTGH on February 24, 2009, 09:30:19 pm
Time to test it =D
I give you feedback as soon as possible  XD
Title: Re: [Frogger] My first C++ game! :D (PC version)
Post by: Zaeranos on February 24, 2009, 09:32:43 pm
I tried it and it was really good and fun to play.

But seeing as how many get errors here, I wonder what you've exactly used for programming this. As you've said you used C++, but that is not enough to create a game. Have you used DirectX or OpenGL or even a Win32 API. And have you made the game for 32 bits or 64 bits PC's. And which OS

I can say this. I have a Athlon 64 (64 bits) with Windows Vista 64. The latest in DirectX and OpenGL. And it works.
What errors did you get? And I just updated the links in this topic, since I forgot to erase a code line that tried to load a sound that wasn't there. And I used a library for the graphics and sound effects that my C++ teacher wrote. It runs perfectly fine on Windows XP/Vista 32 bit, I don't know about 64 bit.

Oh it always worked for me, but with other programs I've had the trouble that it wouldn't work, because I had Vista or a 64 bit processor. These are things one has to be carefull of in C/C++.

Considering your teacher made the part to interface with the OS and hardware, there is nothing to worry.
Title: Re: [Frogger] My first C++ game! :D (PC version) ERROR FIXED!
Post by: Mamoruanime on February 24, 2009, 09:34:39 pm
Works nicely (windows 7 anyway). I think theres a small memory leak though; not positive.
Title: Re: [Frogger] My first C++ game! :D (PC version) ERROR FIXED!
Post by: Zaeranos on February 24, 2009, 09:41:58 pm
I know for certain there is a memory leak, because my computer is relatively slow after the game. Have you released and deleted all the resources properly?
Title: Re: [Frogger] My first C++ game! :D (PC version) ERROR FIXED!
Post by: D-Pad on February 24, 2009, 09:59:24 pm
^^ Might explain my problem above.  :(
Title: Re: [Frogger] My first C++ game! :D (PC version) ERROR FIXED!
Post by: Infinitus on February 24, 2009, 10:25:50 pm
There is no memory leak. Least none that I can find. The working set of the program stays at a constant ~5mb. However there is a huge CPU leak. Your using up far more processing power than a game of this ever should. I suggest putting a delay in your main loop.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Moon_child on February 25, 2009, 01:02:26 am
Well thanks to the advice of infinitus the CPU amount being used has been decreased around 5 times! This should make it run fine on anyone's computer. could the people who had problems confirm this?

I also changed 2 things:

1) You now get 1000 points when you bring 5 frogs home.

2) The time decreases much more like the original frogger.

I'm also interested in how far people here manage to get? What level + score information would be great. Anyway here's (http://filebeam.com/d2c8d821cd20f98db8da3c0ceb437a91) the download link to version 1.1! :)
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 25, 2009, 06:58:52 am
Maybe upload it on Filebeam.com or something? The stupid Mediafire wont let me download it, appers a stupid error message when im downloading it and says that the connection is broken. I have tryed a several times.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Moon_child on February 25, 2009, 10:34:03 am
Maybe upload it on Filebeam.com or something? The stupid Mediafire wont let me download it, appers a stupid error message when im downloading it and says that the connection is broken. I have tryed a several times.
I replaced all the download links with this one:
http://filebeam.com/d2c8d821cd20f98db8da3c0ceb437a91
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 25, 2009, 01:26:28 pm
It was awesome =)
I came to level 4 and i got 6170 points.
I give you a 4/5.
Funny game to play :]
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Moon_child on February 25, 2009, 02:19:21 pm
It was awesome =)
I came to level 4 and i got 6170 points.
I give you a 4/5.
Funny game to play :]
Well thank you! :)
The best score I got so far was 10050!
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 25, 2009, 02:51:17 pm
I gonna beat you, just so you know.
And when i do it, ill show you a Print Screen  ;)
You should try to imporve the Graphics, if you do that. It will be like a real game if you do that.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Moon_child on February 25, 2009, 04:56:51 pm
I gonna beat you, just so you know.
And when i do it, ill show you a Print Screen  ;)
You should try to imporve the Graphics, if you do that. It will be like a real game if you do that.
It will be a real game AFTER I improve the graphics? XD So all this time I didn't really work on a game because the graphics are out dated?... :P
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 25, 2009, 05:23:47 pm
Noh, what i mean is that it would look like a actaul game that once have been sold in stores if you fix the graphics :P With real games i mean games that is NOT fan games and such...

Zomg! New record! =D
14120 Points ;)
Beat that if you can :P
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Zaeranos on February 25, 2009, 07:23:53 pm
Noh, what i mean is that it would look like a actaul game that once have been sold in stores if you fix the graphics :P With real games i mean games that is NOT fan games and such...

Itgh, sorry that I have to say this, but are you an idiot or what? How old are you? (Moderators, I'm not trying to troll or something) Games from the NES era and earlier and GBC had a lot worse graphics than this game. And they were sold, otherwise we wouldn't have games today. OK the graphics aren't what the standards were from the SNES and GBA, but that doesn't make this less of a game. The original Frogger had even worse graphics.

I understand your desire for this game to have more sleek sprites and fancy backgrounds and it is possible in this day and era, but it is a game. And a darn enjoyable one. Although I still believe that not all the resources are released when the game ends.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 25, 2009, 08:07:53 pm
Well, i dont mean that it would have been sold for 10 years ago, i mean that it would sell NOW.
Im sure there would be some parents saying "ohh! Its frogger, i remember when i played is as a child" and they buy it to their childs. Many parents think like that.
And im not stupid.  :(
Also, im 14 years old. I will be 15 in november 7th.  ;)

Anyway, i changed the textures myself. I used Warcraft 3 textures  :D
The only thing that is anoying is that the textures is small and then they get resized ingame which make it loose alot of detail  :-\
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Zaeranos on February 25, 2009, 08:23:08 pm
On Nintendo's Virtual console NES games are still sold. And on Xbox Live arcade and PS network, there are also still poor quality games. So yeah these games are still sold  XD :P
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 25, 2009, 08:42:28 pm
I havent seen FROGGER In WII Ware, Xbox Live Arcade or PS network o.o*
WHERE, IS IT O_O
Anyway, i cant remember that i said that they isnt sold anymore? :S
I just said that this wont sell becouse its not the original, but maybe people wants to buy it if it has much better graphic then the other.
BTW, do you like how i retextured it, Niek? :P
Took some time to find fiting pieces but now it feels better when i play it :P
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Moon_child on February 25, 2009, 09:45:29 pm
Noh, what i mean is that it would look like a actaul game that once have been sold in stores if you fix the graphics :P With real games i mean games that is NOT fan games and such...

Zomg! New record! =D
14120 Points ;)
Beat that if you can :P
LOL, I could never sell this even if it had fancy graphics. Simply because Frogger is a creation from Konami. They own all the rights and stuff. And this was never intended to be sold. I wouldn't even want to sell it even if I could. Because although I like my own Frogger clone, there are better versions out there! And I'm not gonna change the graphics of this version, simply because I rather want to spent my time on the Nintendo DS version. And maybe te graphics in that version will be changed/improved. Of course you could change the graphics yourself if you have Photoshop. And it appears you already did so. :)


p.s I HAVE to get a better score then you! haha.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 25, 2009, 10:03:22 pm
Make a DSi version when that is possible, and use the new features. That would be cool.
And about sellnig this, it was just an example to show how much i like this  XD

p.s If you get better score then me, i will get even more.  ;)
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Moon_child on February 25, 2009, 10:36:57 pm
Make a DSi version when that is possible, and use the new features. That would be cool.
And about sellnig this, it was just an example to show how much i like this  XD

p.s If you get better score then me, i will get even more.  ;)
The DSi can run any DS game that doesn't make use of the GBA slot.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 26, 2009, 06:56:25 am
I mean, DSi will have new functions. Some people say Two double screens but i cant remember if that is true :S
What i mean is that you can make use of these new features when your able to make a DSi version, if you will be able too.  :D
The only bad point i have found about DSi is that they removed the GBA slot.
And well... I guess i have to wait for a Zelda DSi, took a while until the Gold Nintendo DS Lite came, so i had to wait a while.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Zaeranos on February 26, 2009, 07:04:20 am
The only additional functions the DSi has concerning games is bigger screens and a camera. Maybe even the SD card slot, but I'm not sure about that being usable for DS games.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 26, 2009, 07:06:03 am
You can flip the DS to get slideshow for an example, doesnt that mean that it can somehow feel if its turned? :o
And some small stuff like that.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Zaeranos on February 26, 2009, 07:24:41 am
I've looked around, but other then a better microphone, CPU and Memory, bigger screens, 2 cameras, an SD card slot and some software, I can't find any upgrade. It certainly hasn't a motion sensor. The tilting for the slideshow is probably done by a command in the software, when you activate the slideshow.
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: Deku_stick on February 26, 2009, 10:55:04 am
good work man!!
Title: Re: [Frogger] My first C++ game! :D (PC version) Version 1.1 Released!
Post by: LTGH on February 26, 2009, 02:03:26 pm
When they showed the DSi on Nintendo.se (swedish) slideshow appered when they fliped the DSi 90°, they didnt use any buttons or anything, so there gotta be something that can feel when its fliped 90 grades°. And why not adding a motion sensor to the DSi? Thats like the biggest thing in Wii and thats what made it totaly awesome.
Title: Re: [Frogger] My first C++ game! :D (PC version) DS version update!
Post by: Moon_child on March 08, 2009, 12:38:29 am
I just wanted to say that I started working on the DS version! :) The main focus at the moment is getting the graphics ready. And those who didn't like the old skool arcade graphics, should be happy to hear that my friend Deku_stick (http://www.zfgc.com/forum/index.php?action=profile;u=121) is working on recoloring all the sprites. I also got a little bit programming done. But I'm not sure when I've finished with this DS version. Since this project is not my main project. Because school assignments are much more important. And I have to code a network game and after that me and some other people in my class are going to create a game together. So when I'm not working on one of those projects I'll be working on this one.

I also think that the DS version will be a little more challenging then my PC version since as you probably now by now that the level is divided on the top and bottom screen. This means there will be more vehicles, logs, and turtles. But I'm planning on giving the player a little bit more time. So don't worry that it will be too difficult! ;)

Oh and here's a little preview of the graphical improvement!
(http://img23.imageshack.us/img23/8108/froggerdsrecolorpreviewz.png)
enlarged for showing purpose only, ingame the sprite is twice as small.
Title: Re: [Frogger] My first C++ game! :D (PC version) DS version update!
Post by: LTGH on March 08, 2009, 08:30:07 am
Nice! Cant wait. ;)

Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved