Hey i recently doin my first project in Phaser im writing my code in ts and using Visual Code
i have this recent problem when im trying to run the program
please help guys … i ran out of options
Hey i recently doin my first project in Phaser im writing my code in ts and using Visual Code
i have this recent problem when im trying to run the program
please help guys … i ran out of options
It looks like you’re using Phaser 3, not 2.
Usually you need
import Phaser from 'phaser';
Try photonstorm/phaser3-typescript-project-template or another template.
this is the instruction i was given they say i need to command npm i phaser which this what they gave me…
where do i clone this template ? (node modules? )
I’m really new with this
Oh if it’s an assignment I guess you should use the files you got.
You should be able to do
npm install
from the folder that has package.json
.