ZIWEI LIU
/
ELEC2645_Project_el19z2l
201377806 ZiWei Liu
Diff: main.cpp
- Revision:
- 3:e53e289cd4ba
- Parent:
- 2:d621a4cbe0c2
- Child:
- 4:aada5ebb075d
--- a/main.cpp Fri May 15 09:04:00 2020 +0000 +++ b/main.cpp Fri May 15 13:30:09 2020 +0000 @@ -17,7 +17,15 @@ #include "DodgeEngine.h" #include "Character.h" #include "Block.h" -#include "ctime" + +#define x1up 50 +#define y1up 1 +#define x1down 50 +#define y1down 20 +#define x2up 50 +#define y2up 40 +#define x2down 50 +#define y2down 84 //objects Gamepad pad; @@ -44,7 +52,7 @@ refreshing(); wait(1.0f/fps); - block.blockinit(); + dodge.init(x1up, y1up, x1down, y1down, x2up, y2up,x2down,y2down); while (1) { dodge.dodgeupdate(); refreshing();