I just released p5.play, a javascript library for the creation of games and playthings. It’s still a beta but it includes features that are common to most 2D games: Sprites with animation support, collision detection and resolution (limited to Axis Aligned Bounding Boxes and circles for now), a camera and functions to facilitate mouse and keyboard input.
The library is built with accessibility – not performance – in mind and tries to not be “opinionated” in terms of how a video game is supposed to work, something that is easier to say than to implement.
P5.play is an add-on to p5.js, which is in turn a spin-off / spiritual successor of Processing, a popular tool among creative coders and educators. I’m looking forward to adopt p5.js in my courses at CMU and happy to be finally contributing to an open source project.