https://github.com/ourcade/phaser3-vs-kaboomjs
Compare and contrast Phaser 3 and Kaboom.js to create similar game mechanics
https://github.com/ourcade/phaser3-vs-kaboomjs
example-code game-development gamedev kaboom-js kaboomjs phaser3 typescript
Last synced: 2 months ago
JSON representation
Compare and contrast Phaser 3 and Kaboom.js to create similar game mechanics
- Host: GitHub
- URL: https://github.com/ourcade/phaser3-vs-kaboomjs
- Owner: ourcade
- License: mit
- Created: 2021-10-09T15:25:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-11T15:09:37.000Z (about 3 years ago)
- Last Synced: 2025-03-27T15:06:32.730Z (3 months ago)
- Topics: example-code, game-development, gamedev, kaboom-js, kaboomjs, phaser3, typescript
- Language: TypeScript
- Homepage: https://youtu.be/INiqsyOHe4Y
- Size: 290 KB
- Stars: 18
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README

# Phaser 3 vs Kaboom.js in 3 Examples
> Compare and contrast 2 different ways to create the same mechanics
## Overview
This repository contains 3 game mechanic examples using Phaser 3 and Kaboom.js.
- space shooting
- exploding block
- A* pathfindingEach example has a Phaser 3 version and a Kaboom.js version as a means to compare and contrast a class-based paradigm against a functional, component-based paradigm.
[Check out a video going over the code on YouTube!](https://youtu.be/g4slFm0lows)
## Getting Started
Clone this repository with git, install dependencies, and then each example has a separate run command.
First install dependencies:
```
npm install
```Then for each example run one of the following at a time:
```
npm run start:space # for the space example
npm run start:blocks # for the blocks example
npm run start:astar # for the astar example
```Go to http://localhost:3000 to see the example with a side-by-side comparison.
If the running example doesn't appear to change then try running the `clean` script and try again:
```
npm run clean
```You can also try a hard reload by holding shift and then pressing the refresh button just in case things are cached by the browser.
## Resources
Check out the [Phaser 3 website](https://phaser.io/) and the [Kaboom.js](https://kaboomjs.com/) website for more on each library.
For more tutorials on making games with Phaser 3 or Kaboom.js, check out these Ourcade resources:
### From YouTube
- [Getting Started with Phaser 3.50+](https://youtu.be/3Q5jP85PXrE)
- [Making Your First Phaser 3 Game with TypeScript](https://www.youtube.com/playlist?list=PLumYWZ2t7CRvLU1E-n6VDiOdfEeRQSXPE)
- [5 Tips for Getting Started with Kaboom.js](https://youtu.be/5F7eaCcZFTk)
- [Snake Game with Kaboom.js](https://www.youtube.com/playlist?list=PLumYWZ2t7CRui4Td_ZYDYc5jTDmisYqid)Check out the [Ourcade channel page for even more](https://www.youtube.com/ourcadehq) including ECS in Phaser 3, custom components in Kaboom.js, and multiplayer games with Colyseus. Be sure to subscribe!
### From the Blog
- [Making Your First Phaser 3 Game in Modern JavaScript](https://blog.ourcade.co/series/making-your-first-phaser-3-game-in-modern-javascript/)
- [5 Tips for Getting Started with Kaboom.js](https://blog.ourcade.co/posts/2021/5-tips-getting-started-kaboom-js/)Check out the [full blog for more](https://blog.ourcade.co/) including a pair of free ebooks!
## Assets
The game art from this example was provided by [Kenney.nl](http://kenney.nl) and [ansimuz](https://ansimuz.itch.io/legend-of-faune).
## License
[MIT License](https://github.com/ourcade/phaser3-vs-kaboomjs/blob/master/LICENSE)