modularised ball vendor

This commit is contained in:
2024-11-13 15:30:05 +01:00
parent c3f84c7681
commit a12a965a2b
9 changed files with 80 additions and 26 deletions
+16
View File
@@ -0,0 +1,16 @@
extends Node2D
@export_group("Starting Prices")
@export_range(1, 1000) var _basic_ball: int
@export_range(1, 1000) var _speed_ball: int
@onready var _price_basic_current = _basic_ball
@onready var _price_speed_current = _speed_ball
# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
pass
+3
View File
@@ -0,0 +1,3 @@
extends Node
signal on_try_buy_ball(id: int)