No such thing as a stupid question

So I’m very new to all of this and am having a stab at developing a space shooter game and I want to use phaser because it looks awesome!

I’m just a bit confused about the web server part of getting started as my knowledge here is poor…

Going along with the offical getting started section on phaser.io I seem to be getting tripped up because the assets are loaded in with a CDN?? I’m using Gitpod so have foregone the use of a local web server because I can just do python3 -m http.server in the terminal and that seems to work when I test it with other peoples source code for different phaser projects.

Is this just a drawback of using python in this way? Am I ok to continue developing with phaser like this so long as I load phaser.js within my projects? Would I be better off in the long run getting something like WAMP?

I’m very much learning the ropes here so thanks in advance for your time and patience! :grimacing:

What problem have you had?

The reult in my live preview doesn’t match the expected outcome. It’s just green boxes after loading part 3 for example. Inspecting reveals 404s for the pngs.

It’s the same with part 10 loaded. This also has an Uncaught TypeError: Cannot read property ‘texture’ of undefined.

I’m looking at this now. It seems slightly different to when I tested it earlier but am I right in thinking this is related to the cdn provided in the html files?

Really I’m just wondering whether or not I can develop in Gitpod just using python for a web server.

https://github.com/samme/phaser3-faq/wiki#how-do-i-load-cross-origin-assets

I don’t know about the Gitpod part, but try

this.load.setCORS('anonymous');

and see if it helps.

Thanks for the reply. Pleased to report that so far I’m not having any problems using python to create a server :crossed_fingers: