PsychoPy was of course more geared towards writing experiments.
We had pretty good success writing a few different games in Elm. One was used in an fMRI scanner. The others online. The research group studies eating disorders.
You can see some of the code here:
The backend is unavailable so it is unlikely you will be able to get it running. The code is also pretty rough — was was very new to Elm and had help from people who wrote stylistically different.