I’m building an LED coffee table, I like the idea of playing simple games on it as well as just running pretty patterns. Has anyone got any cool code to share for Snake or Tetris that I could adapt?
Here is the code of my implementation
It’s a little rough, but the basics of Snake are done
https://github.com/netmindz/arduino/blob/master/GameSnake/GameSnake.ino
You send u,d,l,r via Arduino serial monitor then enter. Should work on Teensy with any ws2812 matrix or any supported FastLED hardware if you swap back from WS2812Serial to regular WS2812
@Yves_BAZIN I tried Tetris, but It’s not clear what i need to define in my main project file in order to use the tetris.h, e.g what needs to be in setup() and loop()
@Will_Tatam show me your code
I’ve managed to get it up and running by building the required webpage and added the calls to initTetris, initTestrisSocketControl in setup() and http://tetrisWebSocket.loop() in loop()
@Will_Tatam cool happy that my code helped you
the html pages are in the htmlpages.zip file in my github.
Maybe a video of the result ?