Skip to content

themushroompirates/irregular-map-creator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Irregular Map Creator

An old project I found lying around :)

Written in Lua for LÖVE.

Graph creation and Point location for an irregular map formed of polygons (the idea came from an old board game).

The Graph is created as a doubly-linked list of edges, and linked edges and vertices (nodes).

Locates the point to a graph face, and finds the neighbouring faces via the connected edges.

Broadphase search is done on the face bounding boxes in a quadtree before querying the polygon edges.

Point-based (mouse) hit detection of nodes, edges and faces separately with tolerances (detection radii).

Basic loading/saving of the map data is handled, and panning/zooming with the mouse.

Screenshots

Showing edges only

Showing edges only

Showing nodes with no selection

Showing edges only

Showing nodes with mouse selection, highlighting a face and its neighbours

Showing edges only

Zoomed-in edges only

Showing edges only (zoomed)

Zoomed-in selection

Zoomed selection

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages