sint.js

sint.js

Tiny WebGL game framework. Ship your HTML5 game in minutes — runs on any mobile device.
极简 WebGL 游戏框架 · 几分钟上线一款 HTML5 游戏 · 全面适配各类移动端设备

npm downloads MIT stars

Docs · Examples · Live Demo


Why sint.js

⚡ 体积小、速度快 · 📱 移动端全适配(iOS / 安卓 / 微信 / 小程序)· 🎮 开箱即用 · 🪶 十行代码起飞 · 📦 一个文件搞定


Install

npm install sint.js
<script src="https://unpkg.com/sint.js/dist/sint.min.js"></script>

Hello, sint!

import * as SINT from 'sint.js';

const game = new SINT.Game({
  canvas: document.querySelector('#stage'),
  initWidth: 750,
  initHeight: 1334,
  backgroundColor: 0x2a3145,
});

game.preload({
  assets: { hero: './hero.png' },
  loaded: () => {
    const hero = new SINT.SpriteClip('hero');
    hero.anchor.set(0.5);
    game.add(hero);
  },
});

👉 More demos / 更多示例:sint-example


Show your support

If sint.js helps you build something cool, drop a ⭐ on GitHub — it really helps!
如果 sint.js 帮到你,欢迎点一个 ⭐ 支持一下。


Made with ❤️ by WaterTian · MIT License