CSS Webfonts preloading working in Phaser
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
fonts
lib
.jshintrc
LICENSE
README.md
background.png
flag.html
flag.js
fonts.css
index.html
preloading.html
preloading.js
splash.html
splash.js
styles.css

README.md

webfont-preloading

This is a collection of demos showing different techniques to preload CSS webfonts and use it in your games. Here we are using Phaser as a game engine/framework.

You can see these demos online here.

How to run the demos

You can also clone this repository and run them locally, but Phaser needs a server to be able to load assets. This means that just opening index.html will not work. There are several quick ways to run a local server:

With Python:

python -m SimpleHttpServer

With npm and http-server:

npm install http-server -g
http-server