First C++ game

The Partridge Family were neither partridges nor a family. Discuss.
User avatar
Radical
Posts: 38
Joined: January 15th, 2017, 9:16 pm
Location: Ontario

First C++ game

Post by Radical » August 24th, 2017, 1:13 pm

Object of the game:
Get the boss (purple square) to the edge of the screen without hitting any obstacles.

Controls:
Arrow keys to move
Purple square moves based off of your proximity to it
Press enter to activate hard mode (proceed with caution)

Extra info:
-I have only completed Tutorial 6 (Tutorial 7 as well, if it counts hehe) but I feel I did an okay job of
using my available resources.
-When you die, you lose a life, but if you complete a level without hitting any obstacles, you gain one
back.
-I know many people have been posting games lately. For this reason I will try not to post another game for quite some time in order to avoid spamming the board.
-Thanks for taking your time to look at my game.

I would recommend just using the sln in attached files, but if for some reason it's not working for you, you can also try the .exe from here: https://drive.google.com/open?id=0B3l7- ... UFPZnN1R1k
Attachments
Boss Battle (non-battle version).zip
(78.99 KiB) Downloaded 172 times
Last edited by Radical on August 26th, 2017, 5:33 pm, edited 3 times in total.

User avatar
Zedtho
Posts: 189
Joined: February 14th, 2017, 7:32 pm

Re: First C++ game

Post by Zedtho » August 24th, 2017, 4:56 pm

Pretty neat game, liked it a lot. Don't have any complaints really. Good work

User avatar
Radical
Posts: 38
Joined: January 15th, 2017, 9:16 pm
Location: Ontario

Re: First C++ game

Post by Radical » August 24th, 2017, 5:21 pm

Hey thank you very much! I had a lot of fun making it

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: First C++ game

Post by albinopapa » August 25th, 2017, 7:33 am

I like how well your code is laid out, looks nice. You definitely had some dedication with making all 100 obstacles. You'll quickly see that you could have saved yourself some time once you get into loops and classes/structs.

As for the game, I can't tell what I'm suppose to do, I tried to go get the box, but it ran away and commited suicide.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
Radical
Posts: 38
Joined: January 15th, 2017, 9:16 pm
Location: Ontario

Re: First C++ game

Post by Radical » August 25th, 2017, 5:45 pm

Ah, thank you, lol. I definitely felt like I could have automated the creation of them all somehow, but I couldn't figure out what I needed to do. I just wanted to finish the game real quick, and now that it's done, I might go back and try to figure it out more or look some stuff up.

The goal of the game is to get the purple guy to the edge of the screen without hitting any obstacles.

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: First C++ game

Post by albinopapa » August 25th, 2017, 11:45 pm

Well, he keeps running into obstacles before I get to him, that's why I said he is committing suicide.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
Radical
Posts: 38
Joined: January 15th, 2017, 9:16 pm
Location: Ontario

Re: First C++ game

Post by Radical » August 26th, 2017, 4:19 am

I made a quick little demonstration for you of myself completing level 1: https://youtu.be/Z-Ciah1legQ

Now you should properly be able to enjoy the marvelous game. (Level 2 is much harder. The key is planning, and slow movements)

User avatar
cos00kun
Posts: 19
Joined: September 26th, 2014, 5:59 am
Location: Istanbul - Turkey
Contact:

Re: First C++ game

Post by cos00kun » August 26th, 2017, 5:29 am

soryy can you relaese .exe file ?
E=mc^2

OrbitalReign
Posts: 19
Joined: July 17th, 2017, 1:24 pm

Re: First C++ game

Post by OrbitalReign » August 26th, 2017, 7:50 am

Holly jesus albinopapa wasn't wrong, you have some dedication. All that code for only tutorial 6/7.
I like the strategy behind it, got to level 2 and it definitely ramps up the difficulty.
good game though.

User avatar
Radical
Posts: 38
Joined: January 15th, 2017, 9:16 pm
Location: Ontario

Re: First C++ game

Post by Radical » August 26th, 2017, 5:34 pm

cos00kun wrote:soryy can you relaese .exe file ?

Okay, I added the .exe to the original post.

Post Reply