Matis Requis 201241242

Dependencies:   mbed

Tempest Game

Game Screen

https://os.mbed.com/media/uploads/MatisRequis/tempest_board_wiki.png The board is made of 12 columns. The Hero stays at the top of the column

Game Controls

https://os.mbed.com/media/uploads/MatisRequis/gamepad_buttons.png

To control the hero spaceship point the joystick to the column you want the hero to go to.

Press the A button to shoot a bullet in the column you are currently in.

Bullet/Bullet.h

Committer:
MatisRequis
Date:
2020-05-22
Revision:
4:8e3ba8d6d915
Parent:
3:54132cf073d7
Child:
6:037dfa5064a1

File content as of revision 4:8e3ba8d6d915:

#ifndef BULLET_H
#define BULLET_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Board.h"

class Bullet {
public:
    Bullet();
    ~Bullet();
    void init(int column);
    void draw(N5110 &lcd);
    void update();
private:
    int _size;
    int _column;
    int _x;
    int _y;
    Board _board;
    int _currentpos;
};
#endif