BlueGit

timfa frameworkv3

round coords on draw

timfa Tim · pushed by timfa

Authored 2022-10-18 · 4 years ago

Hash
1433c9d44e51ea9530abe99ff9330e22b1155dc6
Parent
12efde4a
1 file changed +2 −2
framework/engine/objectComponents/renderer.js +2 −2
@@ -106,8 +106,8 @@ class Renderer
106 106 this.sprite.draw(
107 107 this.gameObject.scene,
108 108 sx, sy, sw, sh,
109 this.gameObject.transform.position.x,
110 this.gameObject.transform.position.y,
109 Math.round(this.gameObject.transform.position.x),
110 Math.round(this.gameObject.transform.position.y),
111 111 this.gameObject.transform.size.x,
112 112 this.gameObject.transform.size.y,
113 113 this.gameObject.transform.rotation,
@@ -106,8 +106,8 @@ class Renderer
106 this.sprite.draw(
106 this.sprite.draw(
107 this.gameObject.scene,
107 this.gameObject.scene,
108 sx, sy, sw, sh,
108 sx, sy, sw, sh,
109 this.gameObject.transform.position.x,
109 Math.round(this.gameObject.transform.position.x),
110 this.gameObject.transform.position.y,
110 Math.round(this.gameObject.transform.position.y),
111 this.gameObject.transform.size.x,
111 this.gameObject.transform.size.x,
112 this.gameObject.transform.size.y,
112 this.gameObject.transform.size.y,
113 this.gameObject.transform.rotation,
113 this.gameObject.transform.rotation,