Skip to content

Unity Engine extension as custom package that allows Unity to render and move the Hyperbolic Plane using tile maps

Notifications You must be signed in to change notification settings

pggkun/HyperbolicTileMapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HyperbolicTileMapping

Unity Engine extension as custom package that allows Unity to render and move the Hyperbolic Plane using tile maps. Leia-me em Portugês

Installation

Using Unity package manager, select: Add package from git URL with the link:

https://github.com/pggkun/HyperbolicTileMapping.git?path=/Assets/Release

or download the .unitypackage from the last release at releases page

Usage

At first, create the tile objects that you will use and assign the subdivided plane prefab or a custom plane prefab, and assign a texture to it.

creating tile object

assign prefab and texture

Now create the Chunk Object and assign the Tile Objects you will use and change the ChunkMap field to set the position of your tile inside the chunk.

creating chunk object

Currently you can set just 13 tiles to a chunk, following the pattern below, but you can extend it to use chunk of chunks.

chunk pattern

To render and move the chunk you will need just to call the public method Initialize of your Chunk Object, and use the horizontal and vertical axis to move it.

movement

About

Unity Engine extension as custom package that allows Unity to render and move the Hyperbolic Plane using tile maps

Resources

Stars

Watchers

Forks

Packages

No packages published