Peng Jingran
/
Snake_copy
ccc
Diff: main.cpp
- Revision:
- 14:f898d37428b1
- Parent:
- 1:b34f1b9b2b62
--- a/main.cpp Mon May 06 04:25:09 2019 +0000 +++ b/main.cpp Mon May 11 10:32:00 2020 +0000 @@ -22,7 +22,7 @@ lcd.init(); pad.init(); - snake.init(25,25,5,3); + snake.init(25,25,20,10); init_screen(); while (true) { @@ -36,13 +36,14 @@ void init_screen(){ - lcd.printString("Du Xianjie 201089059",0,1); - lcd.printString("Press Start!!!",0,4); + lcd.printString("Peng Jingran",10,0); + lcd.printString("201199511",20,2); + lcd.printString("Press Start!!!",1,4); lcd.refresh();//print the information while ( pad.check_event(Gamepad::START_PRESSED) == false) { pad.leds_on(); - wait(0.1); + wait(0.4); pad.leds_off(); wait(0.1); printf("Error");