Skip to content

rakkarage/RageTileMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RageTileMap

+-+-+
|2|3|
+-+-+
|0|1|
+-+-+
index = y * width + x

A simple tile map using unity and csharp.

It works by indexing tiles in a sprite sheet using an enum.

Features:

  • Create maps with code or custom editor.
  • Flip and rotate tiles.
  • Animate tiles.
  • Maximum of 126x126 (15876) tiles. (Thanks Obama!?)
  • Tiled tmx csv import

New:

  • Mini map.
  • Path finding. (with path display in game (pooled animated prefabs) and in editor (arrow gizmos))
  • Raycast light & fog of war.
  • Pan map (with snap to screen & character) & pinch and mouse wheel zoom.
  • Oriented and stretched background.

Graphics:

Interactive WebGL Demo:

Credits: