C + + Production mini-game-Thunder

Source: Internet
Author: User

Recently bored, so with C + + implementation of a small game-thunder, seemingly running is also good, texture and harmony is duang! Duang! 's. The whole project I will also give the download link, interested can compile and run, using the new features of c++11, it is best to use vs2013 compile.

Game Description:

Operation:
Arrow keys--Control movement
Space-Fire
P--Open the store, then press to close
0~9 and +-keys--Buy (open store required)
Enter--Start or continue
ESC--Pause the game
R--hero to continue playing after death (you can also use the ENTER key)

Note:
Hero initial attack damage is 2, monster blood volume increases over time, so you need to upgrade your attack in the store.
Bosses can get materials and upgrade weapons.


Look at the effect:

Opening interface:


In-game

Integral board, Blood Bar, attribute panel, life count everything, energy stone. What the hell is high-energy carbon, look down


P key to open the store, OMG, live into RPG, brush boss, drop material, weapons


Hero death, carriage return continue, of course, have a life


Game Over, Gameover


Source code Download Link: http://download.csdn.net/detail/kyt511/8857085


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

C + + Production mini-game-Thunder

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.