All Projects → n00begon → phaser-jam-template

n00begon / phaser-jam-template

Licence: MIT license
A Phaser Template to kick off your Game Jam with everything you need. Typescript, code quality, building for itch, various input methods, examples, bootloader, preloader, main game, end screen, credits screen and license screen.

Programming Languages

typescript
32286 projects
PLSQL
303 projects
HTML
75241 projects

Projects that are alternatives of or similar to phaser-jam-template

phaser-parcel
A Phaser 3 game template using Parcel bundler
Stars: ✭ 64 (+255.56%)
Mutual labels:  phaser, phaser-boilerplate, phaser3
phaser3-typescript-starter-kit
This repository contains the code necessary to start making a game in Phaser 3 using TypeScript.
Stars: ✭ 94 (+422.22%)
Mutual labels:  phaser, phaser-boilerplate, phaser3
mmo-arch
Base Architecture for creating scalable games using microservices through Angular, Phaser, NestJS, NATS, and MySQL
Stars: ✭ 25 (+38.89%)
Mutual labels:  phaser, phaser3
phaser-typescript-webpack
Another Phaser CE boilerplate using TypeScript and Webpack.
Stars: ✭ 17 (-5.56%)
Mutual labels:  phaser, phaser-boilerplate
ts-phaser-bomb-game
Bomberman clone using websockets and phaser 3
Stars: ✭ 18 (+0%)
Mutual labels:  phaser, phaser3
phaser-starter
Minimal starter project to get a Phaser game environment up and running with ease.
Stars: ✭ 73 (+305.56%)
Mutual labels:  phaser, phaser-boilerplate
Cavemen-GGJ2019
A multiplayer survival game developed during Global Game Jam 2019.
Stars: ✭ 21 (+16.67%)
Mutual labels:  phaser, phaser3
phaser-ui-comps
Phaser 3 UI Components built by Adobe Animate
Stars: ✭ 60 (+233.33%)
Mutual labels:  phaser, phaser3
phaser3-simple-rpg
A simple Phaser3 RPG using Typescript ⚔️
Stars: ✭ 80 (+344.44%)
Mutual labels:  phaser, phaser3
Opensc2k
OpenSC2K - An Open Source remake of Sim City 2000 by Maxis
Stars: ✭ 4,753 (+26305.56%)
Mutual labels:  phaser, phaser3
phaser-boilerplate
Phaser Boilerplate
Stars: ✭ 15 (-16.67%)
Mutual labels:  phaser, phaser-boilerplate
phaser-plugin-game-scale
Scale or resize the game canvas. Phaser v3.15 only
Stars: ✭ 35 (+94.44%)
Mutual labels:  phaser, phaser3
template
使用 phaser3 + es6 + webpack4.8.1 配置开发游戏(基本模版)
Stars: ✭ 12 (-33.33%)
Mutual labels:  phaser, phaser3
phaser-3-palette-swapping-example
Example of using palette swapping on a spritesheet in Phaser 3.
Stars: ✭ 32 (+77.78%)
Mutual labels:  phaser, phaser3
Phaser3.Boilerplate
Phaser 3 Boilerplate project for rapid development.
Stars: ✭ 15 (-16.67%)
Mutual labels:  phaser, phaser-boilerplate
phaser3-webpack-es6-dev-starter
Development set up for Phaser 3, Webpack, and ES6.
Stars: ✭ 44 (+144.44%)
Mutual labels:  phaser, phaser3
phaser3-faq
A guide to Phaser 3
Stars: ✭ 69 (+283.33%)
Mutual labels:  phaser, phaser3
phaser3-typescript-template
A Phaser 3 TypeScript Template
Stars: ✭ 30 (+66.67%)
Mutual labels:  phaser-boilerplate, phaser3
phaser-cat
A 2D top-down shooting game, built with phaser + box2d plugin
Stars: ✭ 17 (-5.56%)
Mutual labels:  phaser
elemental-one
A simple platformer made along the theme of Ludum Dare 28
Stars: ✭ 36 (+100%)
Mutual labels:  phaser

Phaser 3 Jam Template

A Phaser 3 Jam Template with TypeScript, MatterJS and Webpack

"Toasty"

Github Release Date GitHub licence GitHub issues Travis Build Quality Gate Status codebeat badge Code style

Phaser is a great framework to do your game jam in, giving you an easily sharable HTML5 game while having the power to make your ideas a reality. Kick off your game jam well by being all ready to go with this template. The goal is to let you focus on your game and have all the plumbing you need sorted out. Typescript, code quality, building for itch, various input methods, examples, bootloader, preloader, main game, end screen, credits screen and license screen. Try out the live game to see what you will start with. See the recent updates in the change log

Getting Started

Once you have the template you need to install the dependencies.

npm install

While you are developing have an auto updating local server

npm run start

When you are ready to submit, creating a final production build in dist. This also creates a zip archive in itch to upload directly.

npm run build

Head over to phaser.io/learn for tutorials and code examples

Features

This framework has been designed to give you all the pieces you need to get started on your idea and grow with you through the game jam. It also has some extra helpers that you might not normally have time to implement.

Input

Implementing multiple ways of input for your game is always a challenge under pressure. In the ControlManager you can see how keyboard, mouse, touch and gamepad controls have been abstracted out into actions for the game objects to take advantage of.

Loading

Use the bootloader to quickly get your game logo on the screen then watch as the loading bar displays while it loads your spritesheets, audio, fonts and json into the game.

Builds

The builds for the project are controlled by Webpack. The dev build from npm run start runs locally with no additional webserver required. It hot reloads your changes so you can try out your ideas quickly. When you are ready to submit npm run build creates a dist directory with everything you need. It also creates a game.zip in the itch directory for you to upload straight to itch.io.

Code Quality

To help keep your code clean and working through the jam there are some tools to help avoid the last day spaghetti mess.

eslint will keep your Typescript correct and Prettier will keep it consistent.

To use Prettier and ESLint to auto fix in VSCode, install the ESLint extension in the Extensions tab and add the following lines to .vscode/settings.json:

"editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
}

jest is there to help you to test any tricky algorithms and husky will make sure you don't end up committing a broken project at an inopportune moment.

Scaling

The game and end screens are built with different screen sizes in mind. For the text based screens, lay out your text on your main monitor and it will resize it to the user's device while still using your display text.

Layout

The code is designed to give you all the pieces you need to give your game jam game a solid structure to build from. This is often something that you don't have time to architect during the jam but will pay off as you come to the end and can still safely modify your code.

assets

Contains everything for the artist and sound designer. The spritesheets are created with TexturePacker. The JSON folder holds the physics shapes for custom objects which are created with PhysicsEditor.

dist

Is where the build output goes. This has all the final files and everything you need to deploy your game.

itch

Will contain a single game.zip for you to upload to itch.io.

src

Contains the source code. It is broken up by scene

preloader

The Bootloader and Preloader get all your assets into the game. It has a loading bar and examples for loading Sprite Sheets, Audio, JSON and Fonts.

main

The Main Scene is the core game loop. The objects holds the interactive game objects and there are a number of managers to keep the various parts of your code clean as it grows. There is also a UI Scene which overlays text on top of the game.

instructions, end, credits, license

These scenes are text based for you to tell your player how to play, wrap up the game, credit the developers and meet your licensing requirements.

utilities

The extra utilities are game settings and some examples of different types of display text.

web

Contains the webpage layout and the favicons.

webpack

Has the development and production configuration for the builds.

Contributing

Feel free to submit issues for problems your find or features you would like to see. Create a pull request for something that you implemented during the jam that you wish was in the template.

Credits

Images

Toasty created for this project by Jaclyn Kim. Additional imagery from Kenney

Music

Arpent from freepd.com by Kevin MacLeod

Inspired by

Phaser 3 Project Template and Phaser 3 TypeScript/Webpack Project Template

License

The MIT License (MIT)

"Roll"

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].