Introduction: This work mainly completes the Snake game, which is similar to the one used on non-smart phones before. The main function is to adjust the speed and control the snake to eat as many small foods as possible. After resetting, the EEWorld picture will be displayed first, followed by the GigaDevice icon, and finally my own Snake logo. Then I will enter the game. The main interface of the game provides two options: \"Start Game\" and \"Speed Adjustment\". There are nine speeds from 1 to 9 to choose from in the speed adjustment. The larger the number, the faster the speed. The entire work design uses only three buttons (a KEY1 on the GD32E231 board and two KEY2 and KEY3 on my stm32 board). In the game, KEY1 can be used to pause the game, and KEY2 and KEY3 are used to control the direction of the snake. KEY2 controls the snake to rotate clockwise, and KEY3 controls the snake to rotate in the positive direction. Author: EEWorld community user hehung Original link: https://bbs.eeworld.com.cn/thread-1078169-1-1.html
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore