20 lines
486 B
JavaScript
20 lines
486 B
JavaScript
import PartidaBattle from "./PartidaBattle.js";
|
|
|
|
const canvasMapa = document.getElementById("mapa");
|
|
const ctxMapa = canvasMapa.getContext("2d");
|
|
canvasMapa.width = 640;
|
|
canvasMapa.height = 640;
|
|
const scale = 2;
|
|
ctxMapa.scale(scale, scale);
|
|
|
|
const canvasMiniMapa = document.getElementById("minimapa");
|
|
const ctxMiniMapa = canvasMiniMapa.getContext("2d");
|
|
canvasMiniMapa.width = 320;
|
|
canvasMiniMapa.height = 320;
|
|
|
|
|
|
|
|
|
|
const partida=new PartidaBattle();
|
|
partida.draw(ctxMapa,ctxMiniMapa);
|