All Projects → hexus → phaser-sat-example

hexus / phaser-sat-example

Licence: other
An experiment that uses sat-js with Phaser.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to phaser-sat-example

Phaser Examples
🎮 Game collections made by Phaser
Stars: ✭ 140 (+900%)
Mutual labels:  phaser, example
dvc dask use case
A use case of a reproducible machine learning pipeline using Dask, DVC, and MLflow.
Stars: ✭ 22 (+57.14%)
Mutual labels:  example
examples-android
Android demo application for GLMap framework
Stars: ✭ 14 (+0%)
Mutual labels:  example
Ubufundi
Android Code Recipies:Short targeted code snippets to get the job done
Stars: ✭ 16 (+14.29%)
Mutual labels:  example
kotlin-multiplatform-example
A barebones Kotlin multiplatform project with JVM and JS targets
Stars: ✭ 15 (+7.14%)
Mutual labels:  example
deep-snake
A snake game trained using simple deep learning implemented in client side javascript.
Stars: ✭ 77 (+450%)
Mutual labels:  example
blocker
🎮 (WIP - phase 3) Multiplayer online game using Phaser + WebSocket (Socket.IO)
Stars: ✭ 48 (+242.86%)
Mutual labels:  phaser
UnityPseudoInstancedGPUParticles
GPU Particles w/ Screen Space Collision Example.
Stars: ✭ 99 (+607.14%)
Mutual labels:  example
php-finder refactoring-kata
🐘🔍Incomprehensible Finder Refactoring Kata port for PHP
Stars: ✭ 22 (+57.14%)
Mutual labels:  example
UmbracoAngularBackofficePages
Example project showing how to extend Umbraco with a custom tree and edit page using web api and angular
Stars: ✭ 55 (+292.86%)
Mutual labels:  example
doks-example
Example DigitalOcean Kubernetes workload with service exposed through a DO load-balancer.
Stars: ✭ 150 (+971.43%)
Mutual labels:  example
spring-boot-mongodb-react-java-crud
Spring Boot, MongoDB and React.js CRUD Java Web Application Example
Stars: ✭ 33 (+135.71%)
Mutual labels:  example
go-worker-thread-pool
A visual working example of a Thread Pool pattern, based on a known blog article.
Stars: ✭ 24 (+71.43%)
Mutual labels:  example
go-echo-boilerplate
The fastest way to build a restful API with golang and echo framework. Includes common required features for modern web applications. A boilerplate project with golang and Echo.
Stars: ✭ 53 (+278.57%)
Mutual labels:  example
play-scala-streaming-example
Example Play application showing Comet and Server Sent Events in Scala
Stars: ✭ 42 (+200%)
Mutual labels:  example
tca-swiftui-navigation-demo
Demo project that shows how to implement navigation in SwiftUI iOS application using Swift Composable Architecture
Stars: ✭ 75 (+435.71%)
Mutual labels:  example
gms2-destructible-terrain
⛰️ Collidable, destructible terrain in GameMaker Studio 2
Stars: ✭ 24 (+71.43%)
Mutual labels:  example
lisp-gui-examples
GUI for generating a tone in various Lisp dialects
Stars: ✭ 28 (+100%)
Mutual labels:  example
webpack-on-demand-loading
No description or website provided.
Stars: ✭ 16 (+14.29%)
Mutual labels:  example
portal-demos
A few demos on how the new portal API can be used with React.
Stars: ✭ 14 (+0%)
Mutual labels:  example

Phaser SAT Example

An example of using the Separating Axis Theorem for collision handling with Phaser.

Check it out for yourself here!

PhaserSat.js is a heavily commented Phaser scene that puts all of this together.

A screenshot of the Phaser SAT example in action

I put this together because I'm terrible at maths and wanted to learn how to perform collision detection and response against sloped tiles. I wanted something like this from a fantastic tutorial by Metanet.

Even though Phaser has its Ninja Physics engine, which is ported from the very examples linked above, I wanted to see if it could be done more concisely.

In the end was able to achieve this thanks to the awesome SAT.js library and this very handy tutorial.

Installation

Install NPM, install Bower, and then install the Bower dependencies.

npm install -g bower
bower install

Open up index.html in your browser!

Controls

WASD to move.

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