SSSnake
Hardware- 7 Devlogs
- 11 Total hours
I am building simple Snake game on raspberry pico 2 using c++/assembly. I use custom ILI9341 display driver. I have plan to make small ai capable of playing snake in real time with only ~400KB of RAM
I am building simple Snake game on raspberry pico 2 using c++/assembly. I use custom ILI9341 display driver. I have plan to make small ai capable of playing snake in real time with only ~400KB of RAM
I refactored code for better readibilty. Optimized draw digit function. I think that project is ready to ship.
I have implemented DQN Agent with input size 11 hidden state 128 output size 3 which can play snake game in real time on raspberry pi pico 2. I will try make it better, best scores achieved by ai was 52. I also noticed bug where snake body is larger than one square of grid. Now I’ll focus on optimalization and bug fixes.
Little changes in layout for better game experience. Added Assembly utils for optimalization. Fixed bug - Eaten apple sound wasnt stopping when player died what caused beeping until new game. Added new load screen. Added support for \n in drawString function
Previously font size was fixed now you can adjust it. Added loose screen and melody generator when you catch apple. Now I will add more sound like death sound or snake length achievment sound. Then I will focus on creating edge ai capable of playing snake with only 512KB ram on PICO 2
I have implemented basic snake gae. Now I will work on optimalization and lose screen.Later I will try make edge AI capable of working fluently on PICO 2 with 520MB RAM. PS: It’s hard to play and record in same time
Added some simple snake map.
He have some power