ourcade / phaser3-typescript-parcel-template Goto Github PK
View Code? Open in Web Editor NEW๐ฆ For people who want to spend time making Phaser 3 games in TypeScript instead of configuring build tools. ๐พ
License: MIT License
๐ฆ For people who want to spend time making Phaser 3 games in TypeScript instead of configuring build tools. ๐พ
License: MIT License
When I try to follow along with the tutorial and load a .png onto the canvas, it displays a neon green block with a line through it. I placed the image in public/tiles/ and then loaded it at that location too:
this.load.image('tiles', 'tiles/faune.png')
I don't get any errors on the dev tools console either? It's very strange. The out the box example (where it loads the phaser logo) works just fine, probably because it is not loading it from my filesystem. It might be worth mentioning that I had to use v2.0.0 of Parcel because I couldn't get the previous version to install.
Hello!
I followed the instructions, downloaded the dependencies and ran the npm server as detailed, however, once I ran it, I got the following error.
phaser3-typescript-parcel-template/src/main.ts: Invalid Version: undefined
I have not modified or altered the code in anyway.
I apologize in advance if this is not an issue with the project, but rather my end, as I have done very little web-dev.
Thanks in advance!
Here is the full error from the terminal
home/user/Desktop/phaser3-typescript-parcel-template/src/main.ts: Invalid Version: undefined
at new SemVer (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
at compare (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
at lt (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
at /home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/lib/index.js:276:22
at Object.default (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
at getEnvPlugins (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/src/transforms/babel/env.js:62:34)
at getEnvConfig (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
at async getBabelConfig (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/src/transforms/babel/config.js:32:19)
at async babelTransform (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)
at async JSAsset.pretransform (/home/user/.nvm/versions/node/v15.11.0/lib/node_modules/parcel-bundler/src/assets/JSAsset.js:83:5)
Hello,
Do we also have the option to import 3d rooms and characters?
Parcel by default is installing v1 and fails at least on node v16.
Instead had to install v2
npm install -g parcel@next
Currently, sourcemap file comes along when you run build script.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.