SortaCanvas - [UPDATE] Rotation & collisions!
I was writing a meme generator, then realized I needed a canvas, and drag and drop, and images, and text.. and ended up writing an entire library?
<canvas> "game engine", that's AFAIK, similar to p5.js, without the drawbacks.
I added experimental support for object rotation, object collision detection, and did some code cleanup.
- Rectangles, circles, image and text support
- Render loop
- NEW! Object rotation + animation
- NEW! Object collision detection
- Constructor-based objects
- Strict mode with error checking and fallbacks
- Object picking (also known as raycasting)
- User event system - supports mouse AND touch input
- Animation support (with
- Dynamic scaling and position
- Web Worker support
I'll probably write some games with this library soon.. so stay tuned!
The Repl is on a team (@SortaGames), so the link is here: