Wannabe RPG which failed because of some problem with planning
Dependencies: Charachters N5110 Obstacles mbed
Diff: Map/Map.cpp
- Revision:
- 0:111e3e4bea66
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Map/Map.cpp Thu May 04 08:41:39 2017 +0000 @@ -0,0 +1,52 @@ +#include "Map.h" + +Map::Map() +{ + +} + +Map::~Map() +{ + +} + +void Map::init(int heigth, + int length) +{ + _Heigth = heigth; + _Length = length; + + wall1.init(0, 0, 33, 12); + wall2.init(68, 16, 9, 12); + wall3.init(135, 6, 12, 9); + wall4.init(50, 51, 9, 8); + wall5.init(70, 70, 10, 10); + wall6.init(130, 60, 20, 20); + + column1.init(50, 16, 7); + column2.init(15, 30, 6); + column3.init(72, 8, 8); + column4.init(70, 42, 6); + column5.init(90, 20, 3); + column6.init(144, 40, 6); + column7.init(100, 63, 4); + //pc.printf("gameMap ahs been initialised"); +} + +void Map::draw(N5110 &lcd) +{ + wall1.draw(lcd); + wall2.draw(lcd); + wall3.draw(lcd); + wall4.draw(lcd); + wall5.draw(lcd); + wall6.draw(lcd); + + column1.draw(lcd); + column2.draw(lcd); + column3.draw(lcd); + column4.draw(lcd); + column5.draw(lcd); + column6.draw(lcd); + column7.draw(lcd); +} \ No newline at end of file