Giter Club home page Giter Club logo

phaser3-rollup-typescript's Introduction


header
Phaser 3 TypeScript Starter

This is a Phaser 3 starter with TypeScript, Rollup with ⚡️ lightning fast HMR through Vite.

Available Commands

Command Description
yarn install Install project dependencies
yarn dev Builds project and open web server, watching for changes
yarn build Builds code bundle with production settings
yarn serve Run a web server to serve built code bundle

Development

After cloning the repo, run yarn install from your project directory. Then, you can start the local development server by running yarn dev and navigate to http://localhost:3000.

Production

After running yarn build, the files you need for production will be on the dist folder. To test code on your dist folder, run yarn serve and navigate to http://localhost:5000

phaser3-rollup-typescript's People

Contributors

carlos-montiers avatar dependabot[bot] avatar geocine avatar karbassi 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  avatar  avatar  avatar  avatar  avatar

phaser3-rollup-typescript's Issues

License

Hey, this is an awesome project that helps save a lot of time, but there is no license added to the project so it defaults to closed source, all rights reserved.

Would it be possible for you to please add a license? Even just an MIT one.

Thanks!

A way to tip the creator?

This template is just so damn useful and cool. I love it. I used it for a couple of quick projects with much joy.

Is there any way to tip the author? Can you accept donations of any kind? I'd love to say thanks with a small contribution.

How to integrate like express?

Hi,

If I wanna develop a multiplayer game via socket.io.
And use express for server side.

How could I take use of this template?

Thx

Can't use imported code from custom files in scenes

Hey there!

First of all, thank you very much for this typescript phaser starter kit! It works much faster than the one from photonstorm and is a bliss to work with. :)

I experienced an issue and was wondering if you might know what's the problem.
If I want to use an imported variable in one of my scene files like:

import Phaser from 'phaser';

import { threshold } from '../data';

class Start extends Phaser.Scene {
  constructor() {
    super('Start');
  }

  public create() {
    console.log(threshold);
  }
}

export default Start;

When I run the code, I'll get the following error:
image

Can you help me out here?

Cheers,
Florentin

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.