Skip to content

WaterTian/sint.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

  • Small & fast — WebGL-powered scene graph, hardware accelerated
  • 📱 Mobile-first — auto-fit canvas, retina ready, runs on iOS / Android / WeChat / mini-programs
  • 🎮 Batteries included — sprites, audio, input, tween, asset loader
  • 🪶 Zero ceremony — one Game class, ready in 10 lines
  • 📦 One file — drop in via npm or <script>

⚡ 体积小、速度快 · 📱 移动端全适配(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

About

⚡ Tiny WebGL game framework — ship HTML5 games in minutes, runs on any mobile device

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors