A lightweight, performant 2D game engine built from the ground up in TypeScript. dino-ge provides a robust, developer-friendly framework for building 2D web games.
⚠️ This project is in alpha ⚠️
npm install dino-ge
import { Engine, Sprite, Vector2 } from 'dino-ge';
class MyGame {
constructor() {
new Engine({
onLoad: () => this.onLoad(),
update: () => this.onUpdate()
}, {
title: 'My Game',
width: '100%',
height: '100%'
});
}
onLoad() {
const player = new Sprite({
tag: 'player',
img: 'player', // Asset tag from ResourceLoader
rows: 1,
cols: 4,
position: new Vector2(400, 300),
zIndex: 10,
scale: 3
});
player.play();
}
onUpdate() {
// Game logic here
}
}
Full API documentation and guides are available at https://gledrich.github.io/dino-ge/index.html.
Dino GE is released under the MIT License.