diff --git a/MCU/MCU_REAL_FINAL/IMG/方块.psd b/MCU/MCU_REAL_FINAL/IMG/方块.psd index 5c18c42..e29985c 100644 Binary files a/MCU/MCU_REAL_FINAL/IMG/方块.psd and b/MCU/MCU_REAL_FINAL/IMG/方块.psd differ diff --git a/MCU/MCU_REAL_FINAL/IMG/炸弹.bmp b/MCU/MCU_REAL_FINAL/IMG/炸弹.bmp new file mode 100644 index 0000000..253b68d Binary files /dev/null and b/MCU/MCU_REAL_FINAL/IMG/炸弹.bmp differ diff --git a/MCU/MCU_REAL_FINAL/mine.c b/MCU/MCU_REAL_FINAL/mine.c index 8b0b8ff..a0f587f 100644 --- a/MCU/MCU_REAL_FINAL/mine.c +++ b/MCU/MCU_REAL_FINAL/mine.c @@ -16,11 +16,11 @@ void mineInit() char i, j; mineGameStatus = start; score = 0; - - for(i = 0; i < 8; i++) - for(j = 0; j < 8; j++) - placeIMG_BLOCK(i, j); genMine(); + for(i = 0; i < 8; i++) + for(j = 0; j < 8; j++) + if(mbase[i][j]==-1) + placeIMG_BLOCK(i, j); } void mineDestroy()