game stuff

This commit is contained in:
Zutatensuppe 2020-11-25 22:03:35 +01:00
parent 07da40dce7
commit e75cd7406f
20 changed files with 1527 additions and 387 deletions

View file

@ -6,8 +6,8 @@ import Util from './../common/Util.js'
const TILE_SIZE = 64
async function createPuzzle(targetTiles, image) {
const imagePath = './../game' + image
const imageUrl = image
const imagePath = image.file
const imageUrl = image.url
// load bitmap, to determine the original size of the image
const dim = sizeOf(imagePath)