JSFiddle - React, Tailwind, and code Playground

by TtRSt

JavaScript

var load_state = {
    preload: function() {
		
		game.load.tilemap("level", "level.json", null, Phaser.Tilemap.TILED_JSON);
					
		this.game.load.image("tiles", "tiles.png", 32, 32);
					
		this.game.load.image("hero", "hero.png");
		this.game.load.image("star", "star.png");
		this.game.load.image("button", "diamond.png");
    },

    create: function() {
        // When all assets are loaded, go to the 'menu' state
        this.game.state.start('menu');
    }
};