Implementation of road intersections and road splitting (halfway)

This commit is contained in:
2026-04-24 18:22:55 +02:00
parent 91e205869c
commit b9b7f610ac
5 changed files with 103 additions and 21 deletions

View File

@@ -15,5 +15,6 @@ ROAD_COLOUR :: rl.BLACK
NODE_DONE_COLOUR :: rl.BROWN
NODE_BUILD_COLOUR :: rl.GOLD
NODE_CURSOR_COLOUR :: rl.BLUE
NODE_SNAP_COLOUR :: rl.PINK
BACKGROUND_COLOUR :: rl.LIGHTGRAY

8
common/structures.odin Normal file
View File

@@ -0,0 +1,8 @@
package common
import rl "vendor:raylib"
Intersection_Data :: struct {
road: u32,
point: rl.Vector2,
}