Modified Bomberman Game in mbed
Dependencies: 4DGL-uLCD-SE USBDevice mbed
Revision 1:e62bd2dbaed4, committed 2015-10-22
- Comitter:
- tshin7
- Date:
- Thu Oct 22 20:29:08 2015 +0000
- Parent:
- 0:d67cfa38e861
- Commit message:
- asfaf
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
| mbed-rtos.lib | Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Oct 22 20:20:53 2015 +0000
+++ b/main.cpp Thu Oct 22 20:29:08 2015 +0000
@@ -113,11 +113,11 @@
}
void bomb() {
if (move=='m'){
- pc.printf("Boooooom!\n\r");
- uLCD.filled_circle(x3,y3,radius,BLUE);
+ pc.printf("Boooooom!\n\r");
x4=x3;
y4=y3;
- while(timer<=300){
+ while(timer<=50){
+ uLCD.filled_circle(x4,y4,radius,BLUE);
drawHero();
eraseHero();
moveHero();
@@ -133,13 +133,12 @@
timer++;
}
timer=0;
- wait(1);
uLCD.filled_rectangle(x4+3, y4+20, x4-3, y4-20, BLUE);
uLCD.filled_rectangle(x4+20, y4+3, x4-20, y4-3, BLUE);
wait(1);
uLCD.filled_rectangle(x4+3, y4+20, x4-3, y4-20, BLACK);
uLCD.filled_rectangle(x4+20, y4+3, x4-20, y4-3, BLACK);
- if ((((x1-radius)<=(x4+20))&&((y1>=y3-5)&&(y1<=y3+5)))&&(((x1+radius)>=(x4-20))&&((y1>=y4-5)&&(y1<=y4+5)))){
+ if ((((x1-radius)<=(x4+20))&&((y1>=y4-5)&&(y1<=y4+5)))&&(((x1+radius)>=(x4-20))&&((y1>=y4-5)&&(y1<=y4+5)))){
hit1=1;
eraseBaddie1();
}
--- a/mbed-rtos.lib Thu Oct 22 20:20:53 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://mbed.org/users/mbed_official/code/mbed-rtos/#12552ef4e980