const img = new Image(); img.src = "./assets/body.png"; class Render { constructor(id, mapsrc) { this.canvas = document.getElementById(id); this.ctx = canvas.getContext("2d"); this.players = []; this.mapsrc=mapsrc this.ReloadAff(); } AddPlayer(player) { this.players.push(player); } RemPlayer(id) { for(let i=0;i { this.RenderPlayer(player); }) } }