项目作者: samme

项目描述 :
CDN-ready mirror, good for your bins, fiddles, pens, and sandboxes
高级语言: PLSQL
项目地址: git://github.com/samme/phaser-examples-assets.git
创建时间: 2017-06-01T19:00:28Z
项目社区:https://github.com/samme/phaser-examples-assets

开源协议:

下载


Mirror of phaser-examples/examples/assets, minus audio, video, and a few source files.

You can use them via https://cdn.jsdelivr.net/gh/samme/phaser-examples-assets@v2.0.0/assets, which is equivalent to https://examples.phaser.io/assets.

The first load of a fresh asset may be slow.

  1. // @preload:
  2. this.load.baseURL = 'https://cdn.jsdelivr.net/gh/samme/phaser-examples-assets@v2.0.0/assets/';
  3. this.load.crossOrigin = 'anonymous';
  4. this.load.image('dude', 'sprites/phaser-dude.png');
  5. // etc.