better assets
This commit is contained in:
parent
f171b3c320
commit
800b09d79b
4 changed files with 63 additions and 58 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue