senior dev moment, finished spritesheet generator

This commit is contained in:
Dennis Postma 2024-12-20 20:34:39 +01:00
parent 43fe6ab33e
commit 2ac9416fe6
2 changed files with 4 additions and 4 deletions

6
package-lock.json generated
View File

@ -1616,9 +1616,9 @@
"license": "ISC" "license": "ISC"
}, },
"node_modules/ioredis": { "node_modules/ioredis": {
"version": "5.4.1", "version": "5.4.2",
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.4.1.tgz", "resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.4.2.tgz",
"integrity": "sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==", "integrity": "sha512-0SZXGNGZ+WzISQ67QDyZ2x0+wVxjjUndtD8oSeik/4ajifeiRufed8fCb8QW8VMyi4MXcS+UO1k/0NGhvq1PAg==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ioredis/commands": "^1.1.1", "@ioredis/commands": "^1.1.1",

View File

@ -184,7 +184,7 @@ export default class SpriteUpdateEvent {
// Round to nearest even number to prevent sub-pixel rendering // Round to nearest even number to prevent sub-pixel rendering
const left = Math.round(adjustedLeft / 2) * 2 const left = Math.round(adjustedLeft / 2) * 2
const top = Math.round(adjustedTop / 2) * 2 const top = 0
return { return {
input: buffer, input: buffer,