summaryrefslogtreecommitdiff
path: root/scripts/number_system
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2024-04-20 23:05:56 +0700
committeraltaf-creator <dev@altafcreator.com>2024-04-20 23:05:56 +0700
commit89abe110f28b4750037b6706ab67fbbb0c833717 (patch)
tree0b88ec4177aab83701bfff1bd0574d5399fab99d /scripts/number_system
Initial commitHEADmaster
Diffstat (limited to 'scripts/number_system')
-rw-r--r--scripts/number_system/AI.gd3
-rw-r--r--scripts/number_system/NumberNode.gd32
-rw-r--r--scripts/number_system/Player.gd4
3 files changed, 39 insertions, 0 deletions
diff --git a/scripts/number_system/AI.gd b/scripts/number_system/AI.gd
new file mode 100644
index 0000000..b8f63a9
--- /dev/null
+++ b/scripts/number_system/AI.gd
@@ -0,0 +1,3 @@
+extends Node2D
+class_name AI
+
diff --git a/scripts/number_system/NumberNode.gd b/scripts/number_system/NumberNode.gd
new file mode 100644
index 0000000..d53cc6e
--- /dev/null
+++ b/scripts/number_system/NumberNode.gd
@@ -0,0 +1,32 @@
+extends Node
+class_name NumberNode
+
+@export_group("Toggles")
+## Scan for mouse events by the player, used for Player's NumberNode to snap to
+## other NumberNodes. Disable if AI or Player.
+@export var do_scan_as_target : bool
+@export_group("Values")
+@export var value : int
+@export var modifier_value : float
+enum Operations {
+ NONE,
+ ADDITION,
+ SUBTRACTION,
+ MULTIPLICATION,
+ DIVISION,
+}
+@export var modifier_operation : Operations
+@export_group("Visuals")
+@export var sprite : Sprite2D
+@export var label : Label
+@export var color : Color
+
+func _ready():
+ update_visuals()
+
+func _process(_delta):
+ pass
+
+## Update label, size, color
+func update_visuals():
+ pass
diff --git a/scripts/number_system/Player.gd b/scripts/number_system/Player.gd
new file mode 100644
index 0000000..a39e0da
--- /dev/null
+++ b/scripts/number_system/Player.gd
@@ -0,0 +1,4 @@
+extends Node2D
+class_name Player
+
+