{"repo":"litecanvas/game-engine","free":true,"listed":false,"github":"https://github.com/litecanvas/game-engine","clone":"git clone https://github.com/litecanvas/game-engine.git","description":"Lightweight (~4kb) HTML5 canvas engine suitable for small games, animations and creative programming for people who enjoy coding. No dependencies.","language":"JavaScript","stars":72,"topics":["game-development","game-engine","js13k","fantasy-console","hacktoberfest","html5-canvas","javascript-game","p5js","pico-8","processing"],"license":"MIT","category":"game-templates","readme_excerpt":"Litecanvas &nbsp; Litecanvas is a lightweight HTML5 canvas 2D engine suitable for small web games, prototypes, game jams, animations, creative coding, learning game programming and game design, etc. &nbsp; &nbsp; [!WARNING] This project is still in the \"alpha\" stage. Break changes may occur frequently. All feedback is welcome and appreciated. Features - Tiny : Only 4KB (minified + gzipped). - Simple API : Just few functions to draw shapes and some utilities. - ZzFX : Play or create sound effects with ZzFX. - Extensible : Use or create plugins to add functionalities or change the engine. - Playground : Access or install the playground webapp to code and share games (even offline). Getting Started You can play around with Litecanvas in the Playground without installing nothing. If you want to test locally, just use one of the installation options. HTML/CDN Create a HTML file and add a tag with one of the following CDN links: Unpkg jsDelivr ESM Template For those who are familiar with Node/NPM, we have a basic template. API Basic game structure Note : if you installed via NPM you need to import the package first: import litecanvas from \"litecanvas\" Set the width and height of the game screen Colors Litecanvas has a default palette with 4 colors: Each time a Litecanvas' function ask for a color, you should use an of theses colors by its index. Note: You can customize the color palette using the pal() function. Example Printing messages By default, the texts are white (color #3). ","default_branch":null,"files":null,"tree":[],"storefront":"/r/litecanvas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/litecanvas/game-engine/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}