A free no-dependency Typescript game engine designed for developing 2D games
inks2d is a free no-dependency Typescript game engine designed for developing 2D games. It provides you with a fast, friendly and clean framework to prototype and develop your games on. This means that most of the hard work is already done, letting you concentrate on the design and testing of your game.
Package | Version (click for changelogs) |
---|---|
inks2d | |
create-inks2d |
With NPM:
$ npm create inks2d@latest
With Yarn:
$ yarn create inks2d
With PNPM:
$ pnpm create inks2d
Then follow the prompts!
You can also directly specify the project name and the platform you want to use via additional command line options. For example, to scaffold a inks2d + Web project, run:
# npm 6.x
npm create inks2d@latest my-inks2d-game --platform web
# npm 7+, extra double-dash is needed:
npm create inks2d@latest my-inks2d-game -- --platform web
# yarn
yarn create inks2d my-inks2d-game --platform web
# pnpm
pnpm create inks2d my-inks2d-game --platform web
See create-inks2d for more details on each supported platform
import { Engine, Scene } from "inks2d";
import { Rectangle } from "inks2d/geom";
const g = new Engine(640, 480);
class Main extends Scene {
constructor() {
super();
}
async start(e: Engine) {
super.start(e);
const rect = new Rectangle(50, 50, "blue");
rect.position.x = g.stage.width / 2;
rect.position.y = g.stage.height / 2;
g.stage.addChild(rect);
}
}
g.scene = new Main();
g.start();
It was built by Phillipe Martins (aka "Inkasa Dev"), and is released for free under the MIT license, which means you can use it for almost any purpose (including commercial projects). We appreciate credit where possible, but it is not a requirement.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Pimi Jumpers | Lolly Balls |
Noah Crush Mania | Shinobi Way | Two Dots | Get the Blacks |
Phillipe Martins |
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details