# XWUIGameMinimap

A canvas-rendered minimap driven by a `requestAnimationFrame` loop, drawing a centered player dot with a direction cone plus color-coded markers: enemies as red diamonds, NPCs and POIs as green/yellow circles, and quests as blue exclamation marks. Marker screen positions are computed from `playerPosition`, each marker's world coords, and `mapScale`. Choose a `circle` or `square` `shape`, set `size`, `backgroundColor`, and the north indicator, then update at runtime with `setPlayerPosition()`, `setPlayerRotation()`, and `setMarkers()` / `addMarker()`.

## Basic Usage

A canvas minimap with a rotating player dot and color-coded enemy, NPC, POI, and quest markers.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: A canvas minimap with a rotating player dot and color-coded enemy, NPC, POI, and quest markers.
```

## Square Radar

A compact square tactical radar with the north indicator hidden and a zoomed-in `mapScale`, showing a tight cluster of enemy contacts around the player.

```example
file: examples/SquareRadar.ts
title: Square Radar
description: A compact square tactical radar with north hidden and a zoomed-in scale showing a tight enemy contact cluster.
```

## Live Patrol

Drives the minimap's live render loop at runtime, walking the player along a path with `setPlayerPosition()`, rotating with `setPlayerRotation()`, and dropping a quest waypoint mid-route via `addMarker()`.

```example
file: examples/LivePatrol.ts
title: Live Patrol
description: Walks the player along a path with setPlayerPosition(), spins with setPlayerRotation(), and drops a quest marker via addMarker().
```

```api
```
