Map screen version
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
class_name MapNode
|
||||
extends RefCounted
|
||||
## One node on the run map. Regenerated every run and never persisted, so RefCounted
|
||||
## rather than Resource. `pos` is normalized (0-1) so the map screen can lay the node out
|
||||
## at any resolution; `links` are column indices in the *next* row this node connects to
|
||||
## (the Slay-the-Spire branching path).
|
||||
|
||||
var row: int = 0
|
||||
var col: int = 0
|
||||
var pos: Vector2 = Vector2.ZERO
|
||||
var level: LevelDef = null
|
||||
var links: PackedInt32Array = PackedInt32Array()
|
||||
var cleared: bool = false
|
||||
Reference in New Issue
Block a user