feat: Improve player sprite rendering with pixelation and animation fixes
This commit is contained in:
@@ -6,6 +6,9 @@ function render() {
|
||||
// Clear the canvas
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
// Set pixelated rendering for the entire canvas
|
||||
ctx.imageSmoothingEnabled = false;
|
||||
|
||||
// Draw animated sky background
|
||||
renderSky();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user