Litecanvas

A tiny and lightweight (~4kb) HTML5 Canvas 2D engine suitable for small games and creative programming for people who enjoy coding.

Join the community: https://discord.com/invite/r2c3rGsvH3

Warning: This project is still in the "alpha" stage. Break changes may occur frequently. All feedback is welcome and appreciated.

Features

  • Simple API: Just update & draw loops, input, few functions to draw shapes and other utilities to play sound effects and math. Ideal to learn or teach the game development fundamentals.
  • Predefined color palette: Just use a number (from 0 to 11) to choose a color in our 12-color palette or define a new palette with your own colors.
  • Extensible: Use or create plugins to improve the engine core.
  • Web-based Playground: You don't need to install anything to start. Our playground works even offline, very useful for testing ideas anywhere anytime (even on your mobile phone).

Useful links

StatusIn development
CategoryTool
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorLuiz Bills
Tags2D, coding, Game engine, html5, javascript, lightweight, minigames, Open Source, PICO-8, tiny
Code licenseMIT License
Average sessionDays or more
InputsMouse, Touchscreen
LinksHomepage, Discord, GitHub

Development log

View all posts

Comments

Log in with itch.io to leave a comment.

is mobile supported?

Yep, you can use it on mobile. Did you encounter any problems?

no problems. i see the touch works perfect. but i can't see any multitouch in the demo.

multitouch is not supported YET

(1 edit)

okey. i'll be waiting for multitouch function. love your game engine! 👍

parent.addEventListener('touchmove', function(event) {    
    
    // finger 1
    let x1 = event.touches[0].clientX;
    let y1 = event.touches[0].clientY;
    
    // second finger
    let x2 = event.touches[1].clientX;
    let y2 = event.touches[1].clientY;
});

added multitouch support in the latest version :)