Sylves Demos

Sylves is an open source library for working with grids.


This project includes several demo scenes showing how to use various features in a practical setting. They typically combine multiple features of Sylves to produce useful effects.

You can find the source at https://github.com/BorisTheBrave/sylves-demos/

The following demos are included:

CellPicker


This demo lets you edit the terrain on a planet surface. It's inspired by this Planet game.

It demonstrates

  • Creating a mesh grid and mesh prism grid from a mesh.
  • How to detect where the mouse is pointing in 3d space.
  • How to do marching cubes (wang tile) style autotiling.
  • How to use deformations to warp tiles to fit an irregular grid.

Controls

Use left/right click to change the terrain, and middle mouse to control the camera.

Pathfinder


This demo lets you edit a tilemap with the mouse, and performs pathfinding on that map.

It demonstrates:

  • Using the transform modifier to turn a square grid into an isometric grid.
  • How to interact between Sylves and Unity's tilemap system.
  • How to detect where the mouse is pointing in 2d space.
  • How to use pathfinding

Controls

Use left click to toggle a tile, and middle mouse to control the camera.

Langton

This demo is an animated version of the tutorial showing how to implement Langton's Ant.

Controls

None

Polyominoes

This demo shows about placing compound pieces, like you might see in a city builder game.

It demonstrates:

  • How to use grid symmetry to translate or rotate a shape on a grid.
  • How to write code abstractly to support any grid.

Controls

Left click to place a piece down. Right click to rotate. Middle mouse to control the camera.

StatusReleased
CategoryOther
PlatformsHTML5
AuthorBoris

Leave a comment

Log in with itch.io to leave a comment.