Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Levelengine.h
- Committer:
- el17arm
- Date:
- 2019-03-30
- Revision:
- 16:8384e9a480ef
- Parent:
- 15:2bda80896a84
- Child:
- 17:b4079bd0e551
File content as of revision 16:8384e9a480ef:
#ifndef Levelengine_H
#define Levelengine_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Minerengine.h"
const int solid_block[9] = {
1,1,1,
1,0,1,
1,1,1,
};
const int key[12] = {
1,1,0,0,
1,0,1,1,
1,1,0,1,
};
class Levelengine
{
public:
Levelengine();
~Levelengine();
void level_one(N5110 &lcd);
void soft_blocks(int x, int y, N5110 &lcd);
void draw_solid_block(int x, int y, N5110 &lcd);
void draw_key(int x, int y, N5110 &lcd);
private:
int _collision;
int _k; //ensures loop is only executed once and key does not reappear
};
#endif