Skip to content

Instantly share code, notes, and snippets.

import Phaser from 'phaser'
import { initializeApp } from 'firebase/app'
import {
getFirestore,
Firestore,
setDoc,
doc,
getDoc,
DocumentSnapshot,
addDoc,
@supertommy
supertommy / WebFontFile.js
Last active April 12, 2020 18:25
Phaser 3 WebFontFile for loading Web Fonts with WebFontLoader
import Phaser from 'phaser'
import WebFontLoader from 'webfontloader'
// https://photonstorm.github.io/phaser3-docs/Phaser.Loader.File.html
export default class WebFontFile extends Phaser.Loader.File
{
/**
* @param {Phaser.Loader.LoaderPlugin} loader
* @param {string | string[]} fontNames
Verifying my Blockstack ID is secured with the address 18AvNgA2uE2GBZTUNPWTrP63HTPTyGTZEC