Coin Clicker
A fast-paced mini-game demonstrating Arcade Physics for falling objects, timed events, high-score tracking via the Registry, and scene transitions.
1024 × 768
// Find out more information about the Game Config at: https://phaser.io/oss/docs/api-documentation/3.90.0/typedef/types-core#gameconfig
const config = {
type: Phaser.AUTO,
width: 1024,
height: 768,
parent: "phaser-container",
backgroundColor: "#028af8",
scale: {
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH
},
physics: {
default: "arcade",
arcade: {
gravity: { y: 400 }
}
},
scene: [
Boot,
Preloader,
MainMenu,
ClickerGame,
GameOver
]
};
let game = new Phaser.Game(config);