runner

Dependencies:   mbed

GameEngine/GameEngine.h

Committer:
kamtas
Date:
2019-05-09
Revision:
3:59e67155e2dd
Parent:
2:1900a4144537
Child:
4:7fca66882a00

File content as of revision 3:59e67155e2dd:

#ifndef GAMEENGINE_H
#define GAMEENGINE_H

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


class GameEngine
{

public:
    GameEngine();
    ~GameEngine();

    void init(int runner_width,int runner_height, int obstacle_width, int obstacle_height);
    void read_input(Gamepad &pad);
    void update(Gamepad &pad);
    void draw(N5110 &lcd);
    
private:
    
    Runner _r;
    Obstacle _o1;
     
    int _runner_width;
    int _runner_height;
    int _obstacle_width;
    int _obstacle_height;

    int _rx;
    int _o1y;
    
    bool _j;

};

#endif