![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
Diff: Person.cpp
- Revision:
- 7:defdc7cb4e0b
- Parent:
- 6:e63641e13374
- Child:
- 8:2fd3eedcde64
diff -r e63641e13374 -r defdc7cb4e0b Person.cpp --- a/Person.cpp Fri Dec 02 13:33:02 2016 +0000 +++ b/Person.cpp Mon Dec 05 07:34:15 2016 +0000 @@ -14,11 +14,11 @@ return p; }else if(jump_time == MAX_JUMP_TIME){ //down - p.y += 1; + p.y += 2; }else{ //up jump_time++; - p.y--; + p.y -= 2; } return p; } @@ -31,7 +31,7 @@ point Person::jump(){ if(jump_count < MAX_JUMP_COUNT){ - p.y--; + p.y -= 2; jump_time = 1; jump_count++; }