200943373MAZE
Dependencies: mbed
Fork of 200943373MAZE by
Diff: Background/Background.cpp
- Revision:
- 1:bd92ef8d00ac
- Parent:
- 0:df4347043adf
diff -r df4347043adf -r bd92ef8d00ac Background/Background.cpp --- a/Background/Background.cpp Thu May 04 11:25:43 2017 +0000 +++ b/Background/Background.cpp Thu May 04 14:08:31 2017 +0000 @@ -94,9 +94,10 @@ void Background::check_goal(Gamepad &pad ,N5110 &lcd) { - Vector2D Player_pos = _player.get_pos(); + //Vector2D Player_pos = _player.get_pos(); - if((Player_pos.x,Player_pos.y)==(40,24)){ + if((//Player_pos.x,Player_pos.y)==(40,24) + ){ lcd.printString(" GOAL ",0,2); pad.leds_on(); @@ -104,37 +105,41 @@ pad.leds_off(); } - if((Player_pos.x,Player_pos.y)==(83,43) ){ + if((//Player_pos.x,Player_pos.y)==(83,43) + ){ lcd.printString(" FAKE ",0,2); lcd.printString(" Find the other way ",0,2); lcd.refresh(); } -if((Player_pos.x,Player_pos.y)==(56,4)){ +if(//(Player_pos.x,Player_pos.y)==(56,4) +){ pad.leds_on(); lcd.printString(" trap ",0,2); pad.leds_off(); lcd.printString(" Find the other way ",0,2); lcd.refresh(); - Player_pos.x==2; - Player_pos.y==2; + // Player_pos.x==2; + //Player_pos.y==2; } -if((Player_pos.x,Player_pos.y)==(77,29)){ +if((//Player_pos.x,Player_pos.y)==(77,29) +){ pad.leds_on(); lcd.printString(" trap ",0,2); lcd.refresh(); pad.leds_off(); - Player_pos.x==2; - Player_pos.y==2; + //Player_pos.x==2; + //Player_pos.y==2; } -if((Player_pos.x,Player_pos.y)==(65,40)){ +if((//Player_pos.x,Player_pos.y)==(65,40) +){ pad.leds_on(); lcd.printString(" JUMP ",0,2); pad.leds_off(); lcd.refresh(); - Player_pos.x==65; - Player_pos.y==30; + //Player_pos.x==65; + // Player_pos.y==30; }