weaver-engine

1.1.2 • Public • Published

Weaver Engine

npm version npm downloads GitHub contributors GitHub commit activity (branch) GitHub last commit (by committer)

Weaver Engine is a game engine written in JavaScript designed for use in web games.

Using Weaver Engine

Your JS:

import * as weaver from 'https://unpkg.com/weaver-engine@1.1.2/src/index.web.js';

let canvas = document.getElementById('canvas');

let game = new weaver.Game(canvas);
let cube = new weaver.GameObject(0, 0, 0, 10, 10, 10);
game.add(cube);
game.start();

Your HTML:

<!DOCTYPE html>
<html>
    <head>
        <title>Weaver Engine Example</title>
    </head>

    <body>
        <canvas id="canvas" style="width: 100%; height: 100%; border: none; background-color: white;"></canvas>

        <script type="module" src="script.js"></script>
    </body>
</html>

Package Sidebar

Install

npm i weaver-engine

Weekly Downloads

8

Version

1.1.2

License

SEE LICENSE IN LICENSE.md

Unpacked Size

31.7 kB

Total Files

7

Last publish

Collaborators

  • proplayer919