ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19zf

Dependencies:   mbed

You are viewing an older revision! See the latest version

Game

Introduction

the objective of my game is control 'people' away from shots, and reach the destination .

Welcome

the black line under the welcome speech is control the contrast of screen by pot1(), press Pause button to start.

Menu

Contrast cannot be changed after starting game. my menu has three options,

  • Start: Start a simple game to let gamer know the mechanism of game. ( with low shots generate speed and limit total shots in a small value)
  • Start (Hell): Start a hard game to let gamer master the game^. ( with high shots generate speed and limit total shots in a large value)
  • Exit: nothing display on LCD. Use Joystick to control the option and press A to select.

Main game

There is a count-down to make the shots pervade the screen, you will lose control (cannot move 'people')before count_flag down to 0, now, you should control Joystick move 'people' to destination without hitting 'shots', control magnitude of Joystick to change the speed of 'people'.

  • if you want, press Pause button to pause the game, nothing changes before you press button again. Note that button 'bounce' may occur meaning that multiple presses are detected.
  • if you hit the 'shots', 'health' will decrease by 1, which shows at the top left corner of screen, until 'health' = 0, game over~
  • if you successfully reach destination, you win~~ what a easy game! wait, just a simple model :)

Press B back to menu.

Now, you could try 'Start(Hell)', every function as before, if you fail the game, I've set up a slightly simple one for you, by the way, you can check the complexity of game at any time (expect count-down time)

Pause

Pause interface shows the complexity of game with parameter xx shots/ second and Maximum shots xx.

Collision

a 'beautiful' interface of 'HEALTH - 1'.

Exit

nothing display on LCD, press B back to menu.


All wikipages