alpha
Login
or
Join now
mihaizaurus.at
/
hexabounds
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
funky vibe-coded app to test out hex-grid based outlines
Star
1
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
hexabounds
/
src
/
routes
/
at
main
2 files
Mihai
Switch hex coordinate system to axial (q, r)
7w ago
73622fb4
+layout.svelte
Switch hex coordinate system to axial (q, r) Replace the doubled-offset ID system with standard axial coordinates. The same (q, r) pair now identifies the same hex in both flat-top and flat-sides orientations, so shapes port correctly between layouts and the 30° visual rotation on mode switch is expected behaviour. - hexNeighborIds: drop flatTop param; 6 directions are layout-invariant - generateGrid: compute axial IDs from offset loop counters - buildHexesFromIds: use axial pixel projection formulas - translateHexId deleted; shape moves are plain (q+dq, r+dr) addition - originQ/originR replace originCol/originRow throughout - saveShape stores {q, r} positions; fmtPos outputs axial coords - migrateItem converts old {column, row} localStorage data on first load
1 month ago
+page.svelte
Switch hex coordinate system to axial (q, r) Replace the doubled-offset ID system with standard axial coordinates. The same (q, r) pair now identifies the same hex in both flat-top and flat-sides orientations, so shapes port correctly between layouts and the 30° visual rotation on mode switch is expected behaviour. - hexNeighborIds: drop flatTop param; 6 directions are layout-invariant - generateGrid: compute axial IDs from offset loop counters - buildHexesFromIds: use axial pixel projection formulas - translateHexId deleted; shape moves are plain (q+dq, r+dr) addition - originQ/originR replace originCol/originRow throughout - saveShape stores {q, r} positions; fmtPos outputs axial coords - migrateItem converts old {column, row} localStorage data on first load
1 month ago