I was reading this topic:
https://community.appinventor.mit.edu/t/tetris-recreation-of-1980s-retro-game/51075
and it occurred to me to look for a code to create a Tetris with JavaScript.
I found this:
https://parzibyte.github.io/tetris-javascript/
from
https://github.com/parzibyte/tetris-javascript by Parzibyte
The proposal is to adapt the code to App Inventor so that it works with all local files.
and that the controls are Buttons created with App Inventor.
- Some AI website can help you.