GithubHelp home page GithubHelp logo

ourcade / phaser3-typescript-parcel-template Goto Github PK

View Code? Open in Web Editor NEW
219.0 6.0 106.0 84 KB

๐Ÿ“ฆ For people who want to spend time making Phaser 3 games in TypeScript instead of configuring build tools. ๐Ÿ‘พ

License: MIT License

HTML 6.95% TypeScript 65.18% JavaScript 27.87%
typescript phaser3 phaserjs parceljs project-template starter-template

phaser3-typescript-parcel-template's People

Contributors

dependabot[bot] avatar supertommy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

phaser3-typescript-parcel-template's Issues

Cannot load image onto canvas

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.

Invalid Version: undefined

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)

Parcel Installation fails

Parcel by default is installing v1 and fails at least on node v16.

Instead had to install v2
npm install -g parcel@next

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.