Skip to content

Algorithm for maintaining a rectangular formation of isometric tiles on an arbitrary size map

License

Notifications You must be signed in to change notification settings

lukezirngibl/isometric-game-tile-manager

Repository files navigation

Isometric Game Tile Manager

npm

Installation

npm install isometric-game-tile-manager

Getting started

For now, please reference the phaser-js example. API documentation coming soon.

Demo

Check out the demo

How it works

In the diagrams below, the blue outline is the screen view and the blue arrows are the directions the screen is moving. The green tiles are the tiles that are being rendered and stored in memory.

Vertical move

alt text

As the player moves upward, top rows are added and bottom rows are removed.

Lateral move

alt text

As the player moves right, right columns are added and left columns are removed.

Future work

  • Handle window size changes
  • Mini map where user can jump to locations

About

Algorithm for maintaining a rectangular formation of isometric tiles on an arbitrary size map

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published