All there but errors need fixing

Dependencies:   mbed

Overview:

Rookie Tetris is a jigsaw style game based on the classic Tetris.

A block will appear at the top of the screen, you must move it (your options for movement are left, right and down - you cannot move up the board). The block will stop when it if placed either on the floor of the board or on-top of another block.

Your goal is to fill a complete row of the board with the blocks; when you do so the row will delete and the pattern above it will drop down. The game is over when your pattern is tall enough to reach to the top of the board!

Controls:

Use the joystick to move your block! Your block cannot move out of the parameters of the board.

Pot 2 controls the contrast of the screen.

Tetromino/Tetromino.h

Committer:
el18rs
Date:
2020-06-01
Revision:
11:0183a52c1077
Parent:
10:7310c9440547
Child:
23:cbfa9d1ee3db

File content as of revision 11:0183a52c1077:

#ifndef TETROMINO_H
#define TETROMINO_H

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

class Tetromino
{
public:

Tetromino();
~Tetromino();
void init(int x, int y);
void draw(N5110 &lcd);
void update(Direction d, float mag);
//void set_velocity(Vector2D v);
Vector2D get_pos();
Vector2D get_velocity();

private:

Vector2D _velocity;

int _x;
int _y;
int _speed;
//int _width;
//int _height;

};
#endif