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.cpp

Committer:
MatisRequis
Date:
2020-05-19
Revision:
2:d59a92e65bd9
Child:
3:54132cf073d7

File content as of revision 2:d59a92e65bd9:

#include "Bullet.h"

Bullet::Bullet() {
    
}

Bullet::~Bullet() {
    
}

void Bullet::init(int origin_x, int origin_y, int size) {
    _size = size;
    _origin_x = origin_x;
    _origin_y = origin_y;
       
}

void Bullet::draw(N5110 &lcd) {
    lcd.drawRect(_x, _y, _size, _size, FILL_BLACK);
}