The binaries generated for RPi should work without any special image, at least when you run them from text mode console (they may fight with the X server). Go to https://arcade.makecode.com/?compile=rawELF , click Download and select RPi. You should get a .elf file.
You’ll need a correct config file at /sd/arcade.cfg
. To test with keyboard you can do something like this:
SCAN_CODES=/dev/input/event1
BTN_LEFT=28
BTN_RIGHT=1
BTN_UP=25
BTN_DOWN=15
BTN_A=106
BTN_B=103
BTN_RESET=2
BTN_EXIT=105
BTN_MENU=6
I think this is using arrows. The scan codes can be glanced from output of ‘evtest’ command.
Otherwise, you’ll have to set up ALSA sound (if you don’t set up sound, the games will crash).
We used to have a native SDL-based interpreter for MakeCode VM bytecode. That worked on Windows, macOS and Linux (all x86, but I see no reason it wouldn’t work on ARM). I don’t believe this works anymore though. One of these days I may try to revive it, but don’t hold your breadth.