All Projects → Annoraaq → grid-engine

Annoraaq / grid-engine

Licence: Apache-2.0 license
An exceptional plugin for grid-based features in the Phaser 3 framework.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to grid-engine

Phaser Arcade Slopes
📐 A Phaser CE plugin that brings sloped tile collision handling to the Arcade Physics engine
Stars: ✭ 124 (+0%)
Mutual labels:  tile, phaser
craft
Phaser Library with utility chainable functions
Stars: ✭ 27 (-78.23%)
Mutual labels:  phaser
phaser-template-tsc
A simple template project for creating Phaser games in TypeScript.
Stars: ✭ 30 (-75.81%)
Mutual labels:  phaser
phaser-cat
A 2D top-down shooting game, built with phaser + box2d plugin
Stars: ✭ 17 (-86.29%)
Mutual labels:  phaser
phaser3-simple-rpg
A simple Phaser3 RPG using Typescript ⚔️
Stars: ✭ 80 (-35.48%)
Mutual labels:  phaser
node-vue-phaser-boilerplate
Boilerplate to get started developing Node.js-server + Vue/Phaser-client online-games, based on Webpack and with Babel/ES2015 support.
Stars: ✭ 25 (-79.84%)
Mutual labels:  phaser
phaser
This is where Phaser 4 is being developed
Stars: ✭ 291 (+134.68%)
Mutual labels:  phaser
phaser-plugin-game-scale
Scale or resize the game canvas. Phaser v3.15 only
Stars: ✭ 35 (-71.77%)
Mutual labels:  phaser
Driftwood
Driftwood 2D Tiling Game Engine and Development Suite
Stars: ✭ 23 (-81.45%)
Mutual labels:  tile
elemental-one
A simple platformer made along the theme of Ludum Dare 28
Stars: ✭ 36 (-70.97%)
Mutual labels:  phaser
game-template
Cross-platform project template using Electron and Angular with the Phaser game engine. Project has Flexbox integrated for easy and responsive organization of components around the Phaser canvas.
Stars: ✭ 16 (-87.1%)
Mutual labels:  phaser
Berry
Berry is a simple Tiled Map Loader for Corona SDK.
Stars: ✭ 16 (-87.1%)
Mutual labels:  tile
Flappy-Bird
🐦 A Simple 2D Game Using Phaser
Stars: ✭ 13 (-89.52%)
Mutual labels:  phaser
phaser-ui-comps
Phaser 3 UI Components built by Adobe Animate
Stars: ✭ 60 (-51.61%)
Mutual labels:  phaser
lumo
A high performance WebGL tile rendering library
Stars: ✭ 58 (-53.23%)
Mutual labels:  tile
AsLib
🎨: RPG map maker (paint tool)
Stars: ✭ 82 (-33.87%)
Mutual labels:  tile
phaser-plugin-advanced-timing
Shows FPS, frame intervals, and performance info. Phaser 2/CE
Stars: ✭ 25 (-79.84%)
Mutual labels:  phaser
tilematrix
helps handling tile pyramids
Stars: ✭ 15 (-87.9%)
Mutual labels:  tile
phaser-starter
Minimal starter project to get a Phaser game environment up and running with ease.
Stars: ✭ 73 (-41.13%)
Mutual labels:  phaser
ts-phaser-bomb-game
Bomberman clone using websockets and phaser 3
Stars: ✭ 18 (-85.48%)
Mutual labels:  phaser

Welcome to the Grid Engine plugin! This Phaser 3 plugin adds grid-based movement to your tilemap game. Your characters will be able to only move in whole tile sizes, locked to the x-y grid!

This plugin is also compatible (and written in) TypeScript; enjoy full type support!

Features

  • Grid-based movement, of course!
  • Tile-based collision detection
  • One-way collision detection
  • Support for multiple characters
  • Pathfinding (for both NPCs and the player)
  • Random movement (can also limit to a radius)
  • Following other characters
  • Diagonal movement (8 directions)
  • Isometric maps (Beta)
  • Multiple character layers (Beta)
  • Collision groups

📖 Read our most current documentation.

➡️ You can try/download a list of examples.

🛠 Also check out the Chrome DevTools plugin.

Installation

Installing the Grid Engine plugin is simple.

NPM

npm i --save grid-engine

Web

<!-- Download the .zip and copy GridEngine.min.js from dist directory -->
<script src="GridEngine.min.js"></script>

Then, inside your Phaser game config...

const gameConfig = {
  // ...

  plugins: {
    scene: [
      {
        key: "gridEngine",
        plugin: GridEngine,
        mapping: "gridEngine",
      },
    ],
  },

  // ...
};

const game = new Phaser.Game(gameConfig);

Now you're all set to start using Grid Engine in your scenes!

function create() {
  // ...

  const gridEngineConfig = {
    characters: [
      {
        id: "player",
        sprite: playerSprite,
        walkingAnimationMapping: 6,
      },
    ],
  };

  this.gridEngine.create(tilemap, gridEngineConfig);

  // ...
}

Example GIFs

Special Thanks

splashsky, therebelrobot, xLink

License

Apache 2.0

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