initial commit

This commit is contained in:
KingOfDog
2019-06-11 18:46:14 +02:00
committed by KingOfDog
commit 35bc54eaac
13 changed files with 875 additions and 0 deletions

5
helper-methods.js Normal file
View File

@@ -0,0 +1,5 @@
function calculateTileSize(width, height, tilesX, tilesY) {
const tileWidth = width / tilesX,
tileHeight = height / tilesY;
return Math.floor(Math.min(tileWidth, tileHeight));
}