add nations
This commit is contained in:
parent
f956972c6d
commit
b0354fd1fb
2 changed files with 72 additions and 5 deletions
10
docs/map.js
10
docs/map.js
|
@ -1,9 +1,9 @@
|
|||
const mapWidth = 16000;
|
||||
const mapHeight = 16000;
|
||||
const mapWidth = 14000;
|
||||
const mapHeight = 14000;
|
||||
|
||||
let assets = [
|
||||
'../thingie.png',
|
||||
'../thingie.png' // i swear this is temporary
|
||||
'../thingie.svg' // i swear this is temporary
|
||||
]
|
||||
|
||||
let imgA = [];
|
||||
|
@ -106,8 +106,8 @@ function move() {
|
|||
ctx.clearRect(0, 0, map.width, map.height);
|
||||
|
||||
for (let img of imgA) {
|
||||
let w = img.width * zoom;
|
||||
let h = img.height * zoom;
|
||||
let w = imgA[0].width * zoom;
|
||||
let h = imgA[0].height * zoom;
|
||||
ctx.drawImage(img, mpos[0], mpos[1], w, h)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue