this.spawnEntity(EntityButton, 20, 170, { img: "credits.png", name: "creditsButton", size: { x: 77, y: 32 } }); var continueButton = this.getEntityByName("continueGameButton");