Game For ECE 2035
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
Diff: actions.cpp
- Revision:
- 13:798a4dd14c7e
- Parent:
- 12:116a4cc85b16
- Child:
- 14:7225da81314a
--- a/actions.cpp Thu Dec 02 16:58:38 2021 +0000 +++ b/actions.cpp Thu Dec 02 20:16:28 2021 +0000 @@ -71,10 +71,10 @@ if ( walkYpos == 1) { gob_y--; - add_goblin(gob_x,gob_y); + add_goblin(gob_x,gob_y,ENEMY1); } else if ( walkYpos == 0) { gob_y++; - add_goblin(gob_x,gob_y); + add_goblin(gob_x,gob_y,ENEMY1); } } @@ -188,7 +188,7 @@ void init_dung() { Map* dung = set_active_map(1); - for(int i = map_width() + 7; i < map_area(); i += 23) { + for(int i = map_width() + 9; i < map_area(); i += 15) { add_chest(i % map_width(), i / map_width()); } pc.printf("plants\r\n"); @@ -203,11 +203,11 @@ add_portal2(10,2); - add_dragon(18,9); + add_dragon(15,9); - add_goblin(13,14); + add_goblin(5,7,ENEMY2); - add_goblin(5,10); + add_goblin(10,10,ENEMY1); print_map();