Smash Blox

Smash Blox

Load the Spritesheet

Right-click and save image to your images folder

Load Spritesheet snippet

this.load.spritesheet('char', 'images/mainChar.png', { frameWidth: 128, frameHeight: 128 });

block sprite sheet code

this.load.spritesheet('blocks', this.common+'images/blocks.png', { frameWidth: 115, frameHeight: 115 });

Leave a Reply

Your email address will not be published. Required fields are marked *

Comments are closed.