no smooth images
This commit is contained in:
parent
8e79098a63
commit
022ee45637
1 changed files with 4 additions and 1 deletions
|
@ -13,10 +13,13 @@ class Render {
|
|||
constructor(idCanvas) {
|
||||
let canvas = document.getElementById(idCanvas);
|
||||
this.ctx = canvas.getContext("2d");
|
||||
this.ctx.imageSmoothingEnabled=false;
|
||||
//this.ReloadAff();
|
||||
}
|
||||
|
||||
RenderPlayer(player,client) {
|
||||
if(player==null)
|
||||
return;
|
||||
let x=player.x
|
||||
let y=player.y
|
||||
if(x>=2000 && y>=2000 && this.map==1) {
|
||||
|
@ -68,7 +71,7 @@ class Render {
|
|||
ReloadAff() {
|
||||
|
||||
//const fond = new Image();
|
||||
if(player.x >= 2000 && player.y >=2000) {
|
||||
if(player!=null && player.x >= 2000 && player.y >=2000) {
|
||||
this.map=1;
|
||||
} else {
|
||||
this.map=0;
|
||||
|
|
Loading…
Reference in a new issue