Another clone of the famous Asteroid game.
Adjust the webpack.config.js
file as follows:
entry: './src/games/asteroid/game.ts'
Adjust the index.html
as follows:
... href="styles/css/styles
-fullscreen
.css Delete this line:<h1>phaser3-typescript</h1>
Adjust the game.ts
as follows:
width: window.innerWidth height: window.innerHeight
- Phaser.Game
- Phaser.Config
- Phaser.Scenes.ScenePlugin
- Phaser.Loader
- Phaser.GameObjects.BitmapText
- Phaser.Input.Keyboard.Key
- Phaser.GameObjects.Graphics
- Phaser.Geom.Intersects.RectangleToRectangle
- Phaser.Math.RandomDataGenerator