utils.js
export const centerGameObjects = (objects) => {
objects.forEach(function (object) {
object.anchor.setTo(0.5)
})
}
Last updated
export const centerGameObjects = (objects) => {
objects.forEach(function (object) {
object.anchor.setTo(0.5)
})
}
Last updated