Editing Gun.js - align gun

This commit is contained in:
Yewon Kim 2025-05-18 22:09:09 +09:00
parent 035cd541a0
commit 687009f8fc

View File

@ -31,7 +31,7 @@ class Gun extends Subject {
noCursor();
if (this.cursorImg) {
image(this.cursorImg, mouseX, mouseY, CURSOR_SIZE, CURSOR_SIZE);
image(this.cursorImg, mouseX - CURSOR_SIZE / 2, mouseY - CURSOR_SIZE / 2, CURSOR_SIZE, CURSOR_SIZE);
} // custom cursor
for (let bullet of this.bullets) {