开源软件名称:playable.js
开源软件地址:https://gitee.com/lanfei/playable.js
开源软件介绍:
playable.js![Build Status](https://img.shields.io/circleci/project/github/Lanfei/playable.js.svg) ![Coverage Status](https://coveralls.io/repos/github/Lanfei/playable.js/badge.svg) ![Version](https://img.shields.io/npm/v/playable.js.svg) ![License](https://img.shields.io/npm/l/playable.js.svg) ![Dependencies](https://david-dm.org/Lanfei/playable.js/status.svg) ![DevDependencies](https://david-dm.org/Lanfei/playable.js/dev-status.svg)
A lightweight HTML5 game engine. InstallationWebpack/BrowserifyDirect <script> IncludeSimply download and include with a script tag. playable will be registered as a global variable. CDNFor prototyping or learning purposes, you can use the latest version with: <script src="https://cdn.jsdelivr.net/npm/playable.js"></script> For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions: <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/playable.min.js"></script> You can browse the source of the NPM package at jsDelivr or unpkg. Hello WorldJavaScriptlet stage = new playable.Stage();let text = new playable.Text('Hello playable.js');stage.addChild(text); Try it on CodePen TypeScript(Recommended)class Main extends playable.Stage { public constructor() { super(); let text = new playable.Text('Hello playable.js'); this.addChild(text); } }new Main(); Try it on CodePen Documentation |
请发表评论