35
scenes/entrypoint.tscn
Normal file
35
scenes/entrypoint.tscn
Normal file
@@ -0,0 +1,35 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://c37m0t4dwnwbn"]
|
||||
|
||||
[ext_resource type="Resource" uid="uid://c63rkr0cudnom" path="res://resources/data/boosters/new_base_booster.tres" id="1_ki0t7"]
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_0ug6y"]
|
||||
script/source = "extends Node2D
|
||||
|
||||
|
||||
@export var booster: Booster
|
||||
|
||||
func _ready() -> void:
|
||||
print(booster.draw())
|
||||
"
|
||||
|
||||
[sub_resource type="GDScript" id="GDScript_yqgyj"]
|
||||
script/source = "extends Label
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
text = str(GameState.data.money)
|
||||
GameState.add_money(1000)
|
||||
"
|
||||
|
||||
[node name="Entrypoint" type="Node2D"]
|
||||
script = SubResource("GDScript_0ug6y")
|
||||
booster = ExtResource("1_ki0t7")
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
offset_left = 504.0
|
||||
offset_top = 255.0
|
||||
offset_right = 544.0
|
||||
offset_bottom = 278.0
|
||||
script = SubResource("GDScript_yqgyj")
|
||||
|
||||
[node name="Camera2D" type="Camera2D" parent="."]
|
||||
position = Vector2(577, 325)
|
Reference in New Issue
Block a user