-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,20 @@ | ||
# hex-tile-map | ||
Tile Hexagonal Map with JS | ||
# Hexagonal Grid Map | ||
|
||
## Overview | ||
|
||
This project features an interactive hexagonal grid map built with HTML, CSS, and JavaScript (jQuery). The map allows users to navigate through a large grid of hexagons, each displaying its unique coordinates. Users can select individual hexagons by clicking on them, and only one hexagon can be selected at a time. The map also supports mouse dragging and keyboard navigation (WASD keys) for seamless movement, along with zoom functionality. | ||
|
||
## Features | ||
|
||
- **Hexagonal Grid Layout**: Dynamic generation of hexagonal cells that fill a specified area. | ||
- **Hexagon Selection**: Click to select a hexagon. Clicking again on the selected hexagon will deselect it. | ||
- **Mouse Dragging**: Click and drag to move the map around. | ||
- **Keyboard Navigation**: Use the W, A, S, and D keys to move the map in all directions. | ||
- **Zoom Functionality**: Scroll with the mouse wheel to zoom in and out of the map. | ||
- **Non-selectable Text**: Hexagon numbers cannot be selected, enhancing user experience. | ||
|
||
## Installation | ||
|
||
1. Clone this repository to your local machine: | ||
```bash | ||
git clone https://github.com/your-username/hexagonal-grid-map.git |