All Projects → JamesSkemp → phaser-3-vsc-typescript-nodejs

JamesSkemp / phaser-3-vsc-typescript-nodejs

Licence: MIT license
Template for a new Phaser 3 project with Visual Studio Code, TypeScript, and Node.js.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to phaser-3-vsc-typescript-nodejs

phaser-3-palette-swapping-example
Example of using palette swapping on a spritesheet in Phaser 3.
Stars: ✭ 32 (+77.78%)
Mutual labels:  phaserjs, html5-game-development, phaser3
marthas rescue shooter game
This is a shooter game featuring Martha, a battle aircraft pilot who's trying to rescue her father. In this app, you will be able to help her by shooting and destroying the enemy's aircraft. Built with Javascript and Phaser 3.
Stars: ✭ 31 (+72.22%)
Mutual labels:  javascript-game, phaser3
badassquest
RPG / GTA-style game engine built on top of Google Maps Javascript APIs
Stars: ✭ 26 (+44.44%)
Mutual labels:  html5-game-development, javascript-game
Rigley2-FlappyBug
The awaited sequel sees our Rigley friend jumping through firewalls "Flappy Bird" style
Stars: ✭ 27 (+50%)
Mutual labels:  phaserjs, javascript-game
phaser3-typescript-template
A Phaser 3 TypeScript Template
Stars: ✭ 30 (+66.67%)
Mutual labels:  phaserjs, phaser3
Phaser Kinetic Scrolling Plugin
Kinetic Scrolling plugin for Canvas using Phaser Framework
Stars: ✭ 117 (+550%)
Mutual labels:  phaserjs, javascript-game
Cavemen-GGJ2019
A multiplayer survival game developed during Global Game Jam 2019.
Stars: ✭ 21 (+16.67%)
Mutual labels:  html5-game-development, phaser3
Opensc2k
OpenSC2K - An Open Source remake of Sim City 2000 by Maxis
Stars: ✭ 4,753 (+26305.56%)
Mutual labels:  phaserjs, phaser3
infinite-jumper-template-phaser3
Starting point template source code from Infinite Jumper in Phaser 3 in Modern JavaScript book.
Stars: ✭ 46 (+155.56%)
Mutual labels:  phaserjs, phaser3
Phaser
Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
Stars: ✭ 30,918 (+171666.67%)
Mutual labels:  phaserjs, html5-game-development
Slither.io Clone
Learn how to make Slither.io with JavaScript and Phaser! This game clones all the core features of Slither.io, including mouse-following controls, snake collisions, food, snake growth, eyes, and more. Progress through each part of the source code with our Slither.io tutorial series.
Stars: ✭ 168 (+833.33%)
Mutual labels:  phaserjs, javascript-game
laravel-startkit
Laravel Admin Dashboard, Admin Template with Frontend Template, for scalable Laravel projects. It is to save your time when You start with new scalable Laravel projects with many features Bootstrap, cooreui, infyom admin Generator, roles and permissions, translatable models, spatie media and much more
Stars: ✭ 55 (+205.56%)
Mutual labels:  starter-template
tenshin.js
天神乱漫,JavaScript实现
Stars: ✭ 34 (+88.89%)
Mutual labels:  javascript-game
phaser-particle-editor-plugin
This plugin creates particles based on JSON data generated by Phaser Particle Editor
Stars: ✭ 28 (+55.56%)
Mutual labels:  phaserjs
vue-h5-template
H5 开发的 vue 项目快速启动模板
Stars: ✭ 23 (+27.78%)
Mutual labels:  starter-template
cra-template-quickstart-redux
Opinionated quickstart Create React App template with Redux, React Testing Library and custom eslint configuration
Stars: ✭ 66 (+266.67%)
Mutual labels:  starter-template
Webview-unity-3d-2017.3-or-higher-
Webview unity 3d 2017.3 or higher - can be open website url on unity3d or open Html5, html and js on unity offline
Stars: ✭ 18 (+0%)
Mutual labels:  html5-game-development
pong-almost-from-scratch
This is an attempt of making the game pong using modern programming languages
Stars: ✭ 14 (-22.22%)
Mutual labels:  javascript-game
HTML5-Space-Invaders
A Space Invaders HTML5 porting. This work is licensed under a Creative Commons Attribution - Share Alike 3.0 - Unported license (CC BY-SA 3.0). The text of the license is available at http://creativecommons.org/licenses/by-sa/3.0/ .
Stars: ✭ 36 (+100%)
Mutual labels:  javascript-game
black-hole-square
A puzzle game for js13k 2021
Stars: ✭ 42 (+133.33%)
Mutual labels:  javascript-game

Starter Project for Phaser 3 with Visual Studio Code, TypeScript, and NodeJS

The following is a starter project to get started with a new game in Phaser 3 and Visual Studio Code, using TypeScript and NodeJS.

If using GitHub, you can use the Use this template button to create a new Phaser 3 project from this starter template.

Get Started

  1. Make sure Node.js is installed.
  2. From a command line, run npm install in the root directory (same place this README.md file is).
  3. Next run npm run start:dev to start an automatically updating instance.
  4. Use the editor of your choice (Visual Studio Code is a great choice) to start writing your game.
  5. Run npm run build to populate the public directory with the final site contents.
  6. Copy the contents of public to the site of your choice.

What This Project Provides

  • src
    • assets
      • This directory can be used to store any assets (images, audio, etcetera) that your game will use.
    • plugins
      • This directory is intended to store any plugins that are used by your game.
    • ts
      • This directory is intended to store your TypeScript files, and includes a .gitignore so that any JavaScript files that are built aren't committed.
      • A possible directory structure, as well as a few starter scenes, have been added for ease, but can be removed without issue.
    • app.css can include any styling necessary for your application.
    • favicon.ico
    • index.html
      • The title and h1 elements should be updated to match the needs of your game.
      • Includes a reference to the minified Phaser library.
      • Also includes a reference to a JavaScript file, which the Visual Studio project is setup to output TypeScript files to, and which should be updated to match your needs.
  • package.json contains the Node packages used by this project.
  • README.md is this file, and should be replaced with whatever content is needed for your game.
  • tsconfig.json
    • This file determines how TypeScript will compile the project.
    • By default all TypeScript files will be compiled into a single app.js file in the root of the project.
  • webpack.config.js
    • This file contains the default webpack configuration.
  • .editorconfig
    • "EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs." See https://editorconfig.org/
  • .eslintignore
    • This file sets which directories/files should not be parsed by eslint.
  • .eslintrc.js
    • This file contains the starting eslint configurations. Base support for TypeScript is included.
    • See ESLint Rules for more information.
  • .gitlab-ci.yml
  • .vscode/tasks.json
    • Used by Visual Studio Code when running the build task.

How to Build the Site

To build this project you'll need Node.js installed.

Next run npm install in the root directory to install the various dependencies.

Run npm run build after modifying code to populate the public directory with the final site contents. You can instead run npm run build-dev to build the JavaScript in development mode, or npm run start:dev to start an automatically updating instance.

If you'd like to run a simple web server, install http-server via npm install http-server -g, which can then be run from the public directory by running http-server.

If you'd like to lint your TypeScript/JavaScript, run npm run lint.

Upgrading Phaser

To upgrade Phaser 3 run npm upgrade --save phaser.

Upgrading Other Packages

ESLint:

npm upgrade --save eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser

Once done, run npm run lint to verify everything is still working as expected.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].