Skip to content

Instantly share code, notes, and snippets.

@evilpaul-atebit
Created December 10, 2018 20:02
class Object {
constructor(xPos, yPos, image, type) {
this.xPos = xPos - image.width / 2;
this.yPos = yPos - image.height / 2;
this.image = image;
this.type = type;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment