Slither.io
![截圖 2020-11-25 下午3.14.11.png](/proxy/?url=https://content.instructables.com/FVX/L1D1/KHVZP4WC/FVXL1D1KHVZP4WC.png&filename=截圖 2020-11-25 下午3.14.11.png)
中文叫做貪食蛇,玩家操控一條直線(蛇身),它會不停前進,但只能操控蛇頭部的方向(上下左右),讓蛇去觸碰到的食物(光點),並要避免觸碰到自身。 每次貪食蛇吃掉一件食物,它的身體便增長一些。
材料
![截圖 2020-11-25 下午3.18.42.png](/proxy/?url=https://content.instructables.com/FOF/EVWI/KHVZP4WV/FOFEVWIKHVZP4WV.png&filename=截圖 2020-11-25 下午3.18.42.png)
Arduino Leonardo
MAX7219 8*8 - if you bought the wrong one, you can cut it yourself. Box - any box Joystick Jumper wires Breadboard Battery carrier Battery case Batteries
Code
https://create.arduino.cc/editor/15hsu/39d4398a-cf...
程式碼中標註了更改過後的地方