game stuff
This commit is contained in:
parent
07da40dce7
commit
e75cd7406f
20 changed files with 1527 additions and 387 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue