0.0.11 • Published 12 months ago

@4lfred/lucius v0.0.11

Weekly downloads
-
License
PRIVATE
Repository
-
Last release
12 months ago

Lucius - visual stunning games with the power of Canvas API and WebComponents.

Introduction

Lucis is a 2D game engine for the web, built on top of the HTML5 Canvas API and WebComponents. Doesn't use in-canvas UI rendering. All UI items are rendered outside the canvas via CSS or SVG with web components, then: drawn on top of the canvas.

This allows for a more flexible UI system, and allows for more complex UI elements without the hard way of draw them inside the canvas.

Features

  • 2D rendering with HTML5 Canvas API.
  • UI rendering via web components using SCSS or SVG.

Installation

Lucius is available as a NPM package, so you can install it with:

npm install @4lfred/lucius

Usage

JavaScript/TypeScript

Lucius is a class-based engine, so you can create a new instance of the engine with:

const Lucius = require('lucius-engine');
const engine = new Lucius();

Then, you can start the engine with:

engine.start();
0.0.11

12 months ago

0.0.1

12 months ago