Create a Survival Game in Javascript with Phaser 3 in 2023
- Description
- Curriculum
- FAQ
- Reviews
If you need to practise your javascript…
If you want to learn some new ES6 stuff…
If you have ever wanted to create a survival game…
Then this course is for you!
You will get experience using:
-
ES6
-
Classes
-
Arrays
-
Objects
-
Functions
-
Phaser 3
-
Tiled
-
Animation
-
Spritesheets
Creating a survival game is fun and a great way to learn some Javascript and Phaser fundamentals.
The game includes:
-
Animations
-
Basic Enemy AI
-
Audio
-
Mouse & Keyboard Input Handling
-
Advanced Matter Physics
Full source code is included.
I hope you enjoy the course!
About me
I’ve been developing games using Unity3D for over 7 years now. I currently have ten games published on the Android app store. My first game I ever wrote, ‘Isle Survive’, has had over 1 million downloads and an average rating of 4 out of 5. I have also written numerous Unity plugins to enable adding features to mobile games like advertising banners and ‘In-App’ purchasing.
Account packages, haulage systems, mainframe processors, websites… I’ve done all sorts of programming but now I try to write games and it is so much more fun!
I still remember how excited I was, getting my ZX81 and writing my first few lines of BASIC. Yes I’m that old…
I love how the barrier of entry to game development has been lowered these past few years. I’m sure this has a lot to do with the current indie game explosion and I’m very excited for the future.
Why not join my discord server and say hello?!
-
2SoftwareVideo lesson
-
3Getting The Source CodeText lesson
-
4Before We Start The CodeText lesson
-
5Start The CodeVideo lesson
IMPORTANT!!!
Due to changes in the matter physics plugin, you will need to make the follwoing changes:
In survival-game.js add .default to the end of the plugin line:
plugins: { scene: [ { plugin: PhaserMatterCollisionPlugin.default, key: 'matterCollision', mapping: 'matterCollision' } ] }
In index.html use the latest version of phaser by changing the phaser script line src to:
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/phaser.js"
In this video we start off in Visual Studio Code and create our project folder that will contain our game.
We use the Terminal in VS Code to do this but if you are using Windows you may run in to problems changing to another drive since I use:
cd /d
To change to the D drive
However I can do this since I am using 'bash' as my terminal shell, for a standard Windows command shell or powershell you will need to use:
d:
To change to the D drive
If you want to use bash in windows there are various options but the simplest is probably to install Git for Windows since you will probably want to use / learn git if you are a web developer.
https://gitforwindows.org/

External Links May Contain Affiliate Links read more