weaver-engine
v1.1.2
Published
A JavaScript game engine designed for web games.
Downloads
2
Maintainers
Readme
Weaver Engine
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/[email protected]/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>