From d4fdcd574f1b61e7f30399c1ed46d4eda66d5e65 Mon Sep 17 00:00:00 2001 From: onezDerv Date: Mon, 30 Sep 2024 08:22:12 -0400 Subject: [PATCH] better assets --- static/assets/head.svg | 53 ++++++++++++++++++++-------------------- static/assets/map.svg | 32 ++++++++++++------------ static/assets/player.svg | 30 ++++++++++++----------- static/js/index.js | 6 ++++- 4 files changed, 63 insertions(+), 58 deletions(-) diff --git a/static/assets/head.svg b/static/assets/head.svg index 8004607..f5c1d7f 100644 --- a/static/assets/head.svg +++ b/static/assets/head.svg @@ -24,7 +24,7 @@ inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" inkscape:zoom="2.9077441" - inkscape:cx="20.806508" + inkscape:cx="20.634553" inkscape:cy="88.384669" inkscape:window-width="1860" inkscape:window-height="1004" @@ -33,35 +33,36 @@ inkscape:window-maximized="1" inkscape:current-layer="layer1" /> - - - - + id="defs1" /> - + + + + + + + + + + diff --git a/static/assets/map.svg b/static/assets/map.svg index e6d3e60..f5bfa49 100644 --- a/static/assets/map.svg +++ b/static/assets/map.svg @@ -24,9 +24,9 @@ inkscape:pagecheckerboard="0" inkscape:deskcolor="#d1d1d1" inkscape:document-units="px" - inkscape:zoom="4.1121712" - inkscape:cx="73.562113" - inkscape:cy="79.276856" + inkscape:zoom="16.448685" + inkscape:cx="73.562112" + inkscape:cy="79.276855" inkscape:window-width="1860" inkscape:window-height="1004" inkscape:window-x="30" @@ -57,21 +57,19 @@ inkscape:isstock="true" inkscape:label="Checkerboard"> - + style="stroke:none" + x="0" + y="0" + width="1" + height="1" + id="rect209" /> - + style="stroke:none" + x="1" + y="1" + width="1" + height="1" + id="rect211" /> + inkscape:current-layer="layer1" + showgrid="false" /> + transform="translate(5,5)"> + d="m 31.743312,69.350998 c 11.434836,-1.542869 22.958802,-3.448643 33.167713,0" + id="path4" + sodipodi:nodetypes="cc" /> diff --git a/static/js/index.js b/static/js/index.js index 32734ff..f10fc92 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -49,9 +49,13 @@ class Game extends GameBasic { ctx.restore(); + ctx.fillStyle = ent.you.split('-')[0]; + + ctx.beginPath(); + ctx.arc(ent.pos.x, ent.pos.y, 32,0,2*Math.PI); + ctx.fill(); ctx.drawImage(assetsIn[0], ent.pos.x - 64 / 2, ent.pos.y - 64 / 2, 64, 64); - ctx.fillStyle = ent.you.split('-')[0]; ctx.strokeStyle = "rgb(255,255,255)"; ctx.lineWidth = "8"; ctx.textAlign = "center";