You've found the Code.org fork of p5.play. Please check out the main project here!

Code.org uses this fork of the p5.play library to enable the creation of games and playthings in its Game Lab learning environment.

p5.play provides a Sprite class to manage visual objects in 2D space and features such as animation support, basic collision detection and resolution, sprite grouping, helpers for mouse and keyboard interactions, and a virtual camera.

The game running in the background was made with p5.play and it's about 100 lines of code. Check all the examples/tutorials.

p5.play extends p5.js, a javascript library (and a community) that aims to make coding accessible for artists, designers, educators, and beginners. If you are not familiar with p5.js, you should start here.

p5.play is built for accessibility and simplicity, not performance. It is designed to be understood and possibly modified by intermediate programmers. It is not a box2D-based physics engine, it doesn't use events, nor supports 3D. If you are looking for robust (but more complex) game frameworks I suggest phaser.io or easel.js.

To contribute or report bugs go to our github page.

Original p5.play created by Paolo Pedercini | molleindustria.org | @molleindustria