Giter Site home page Giter Site logo

jiaantw / ncku_1stgrade_3_csprogramdesign2_project3 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 1.57 MB

It's a GUI shooting game written in QT environment. The basic requirement is that we have to include polymorphism in our code. The "record" and "award" system is what I wrote for bonus.

QMake 3.35% C++ 96.65%

ncku_1stgrade_3_csprogramdesign2_project3's Introduction

你看起來很想學C++ / Do you want to learn C++ ?

Introduction

At first, it was just a GUI shooting game, an assignment of c++ course for 1'st grade NCKU CS students, written in QT environment.

However, I thought the topic was too boring, so I combined what a begininger would experience when learning c++ with this game.


Game plays

As a programer, the larger your project is, the "healthier" liver you have. In this game, you have to not only defeat the enemys, but also take care of your liver. The player use W, A, S, D buttons to controll the liver and have to dodge enenys' attacks, left mouse button to shoot attacks, and press R to use ultimate. The color of liver will change if player's health fall to some degree.

Information board

  • Score: Add when player's attack hit the enemy. Minus when player was hit by the enemy's attack.

  • Enemy's health

  • Ultimate and player's health: When using ultimate, all the enemy's attack will disapper and player will get full health. The player's "health" means how many percent of his/her liver is still works.


Boss

There are 4 different level boss in this game. (Boss's stucture is simular to player with Polymorphism)

Boss 1: DEV C++

  • Move path: liner
  • HP: 5
  • attack: hello world!

    (Yes, this is what it actually looks like)

Boss 2: Loop

  • Move path: circle
  • HP: 10
  • attack: for/while

Boss 3: Class

  • Move path: liner
  • HP: 25
  • attack: constructor/destructor *Warning: "class's attacks" can track you!

Boss 4: Evil Qt!

  • Move path: circle, but very fast
  • HP: 40
  • attack: signal/slot/QPushButton

Bonus feature: Acheivement system

When player acheive some unknow stuff (EX: Pass this game without using any ultimate.), he/she can get an award, and can also check this whenever open this game.

ncku_1stgrade_3_csprogramdesign2_project3's People

Contributors

jiaantw avatar

Stargazers

Eason Wang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.