init
This commit is contained in:
commit
1bae9f78bd
73 changed files with 6521 additions and 0 deletions
15
scenes/cloud/cloud.gd
Normal file
15
scenes/cloud/cloud.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
extends Sprite2D
|
||||
|
||||
var speed:int
|
||||
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready() -> void:
|
||||
frame = randi_range(0,3)
|
||||
var sc = randi_range(1,6)
|
||||
scale = Vector2(sc,sc)
|
||||
speed = randi_range(-1,-4)
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(_delta: float) -> void:
|
||||
global_position.x += speed
|
470
scenes/cloud/cloud.torch
Normal file
470
scenes/cloud/cloud.torch
Normal file
|
@ -0,0 +1,470 @@
|
|||
[orchestration type="OScript" load_steps=23 format=3 uid="uid://dk1fj1b34j6oe"]
|
||||
|
||||
[obj type="OScriptFunction" id="OScriptFunction_ngs18"]
|
||||
guid = "4E93ED4F-1566-4AD5-885A-21A5B25A0020"
|
||||
method = {
|
||||
"name": &"_ready",
|
||||
"flags": 8
|
||||
}
|
||||
id = 0
|
||||
|
||||
[obj type="OScriptFunction" id="OScriptFunction_hl67t"]
|
||||
guid = "68015AFE-F296-4A95-AF87-0D2149ABD799"
|
||||
method = {
|
||||
"name": &"_process",
|
||||
"flags": 8,
|
||||
"args": [{
|
||||
"name": &"delta",
|
||||
"type": 3
|
||||
}]
|
||||
}
|
||||
id = 4
|
||||
|
||||
[obj type="OScriptFunction" id="OScriptFunction_hy1i5"]
|
||||
guid = "C9480AC5-8F88-4F12-8CBD-26C8D5EEA0D8"
|
||||
method = {
|
||||
"name": &"_on_visible_on_screen_notifier_2d_screen_exited"
|
||||
}
|
||||
id = 14
|
||||
|
||||
[obj type="OScriptGraph" id="OScriptGraph_qvaj1"]
|
||||
graph_name = &"EventGraph"
|
||||
offset = Vector2(118.151, 35.7418)
|
||||
zoom = 1.21
|
||||
flags = 8
|
||||
nodes = Array[int]([0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17])
|
||||
functions = Array[int]([0, 4, 14])
|
||||
|
||||
[obj type="OScriptNodeEvent" id="OScriptNodeEvent_d0t27"]
|
||||
function_id = "4E93ED4F-1566-4AD5-885A-21A5B25A0020"
|
||||
id = 0
|
||||
position = Vector2(320, 200)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodePropertySet" id="OScriptNodePropertySet_5xg6c"]
|
||||
mode = 2
|
||||
property_name = &"frame"
|
||||
property_hint = "0,3,1"
|
||||
node_path = NodePath(".")
|
||||
property = {
|
||||
"name": &"frame",
|
||||
"type": 2,
|
||||
"class_name": &"",
|
||||
"hint": 1,
|
||||
"hint_string": "0,3,1",
|
||||
"usage": 16777222
|
||||
}
|
||||
id = 1
|
||||
position = Vector2(640, 200)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"frame",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 0,
|
||||
"hint": 1,
|
||||
"hint_string": "0,3,1",
|
||||
"usage": 16777222
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_i7flf"]
|
||||
function_name = &"randi_range"
|
||||
method = {
|
||||
"name": &"randi_range",
|
||||
"return": {
|
||||
"type": 2
|
||||
},
|
||||
"args": [{
|
||||
"name": &"from",
|
||||
"type": 2
|
||||
}, {
|
||||
"name": &"to",
|
||||
"type": 2
|
||||
}]
|
||||
}
|
||||
id = 2
|
||||
position = Vector2(440, 280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"from",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"to",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": 4
|
||||
}, {
|
||||
"pin_name": &"return_value",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 1026
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeEvent" id="OScriptNodeEvent_3043m"]
|
||||
function_id = "68015AFE-F296-4A95-AF87-0D2149ABD799"
|
||||
id = 4
|
||||
position = Vector2(320, 420)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"delta",
|
||||
"type": 3,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_waa14"]
|
||||
function_name = &"get_global_position"
|
||||
target_class_name = "Node2D"
|
||||
target_type = 24
|
||||
flags = 522
|
||||
method = {
|
||||
"name": &"get_global_position",
|
||||
"return": {
|
||||
"type": 5
|
||||
},
|
||||
"flags": 5
|
||||
}
|
||||
chain = false
|
||||
id = 5
|
||||
position = Vector2(340, 600)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node2D",
|
||||
"target_class": "Node2D"
|
||||
}, {
|
||||
"pin_name": &"return_value",
|
||||
"type": 5,
|
||||
"dir": 1,
|
||||
"flags": 1026
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_tovmh"]
|
||||
function_name = &"set_global_position"
|
||||
target_class_name = "Node2D"
|
||||
target_type = 24
|
||||
flags = 520
|
||||
method = {
|
||||
"name": &"set_global_position",
|
||||
"args": [{
|
||||
"name": &"position",
|
||||
"type": 5
|
||||
}]
|
||||
}
|
||||
chain = false
|
||||
id = 6
|
||||
position = Vector2(1180, 420)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node2D",
|
||||
"target_class": "Node2D"
|
||||
}, {
|
||||
"pin_name": &"position",
|
||||
"type": 5,
|
||||
"flags": 2,
|
||||
"dv": Vector2(0, 0)
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeOperator" id="OScriptNodeOperator_y6f7j"]
|
||||
op = 6
|
||||
code = &"+"
|
||||
name = &"Addition"
|
||||
left_type = 2
|
||||
left_type_name = &"int"
|
||||
right_type = 2
|
||||
right_type_name = &"int"
|
||||
return_type = 2
|
||||
id = 7
|
||||
position = Vector2(800, 560)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"a",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"b",
|
||||
"type": 2,
|
||||
"flags": 2
|
||||
}, {
|
||||
"pin_name": &"result",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 2
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeDecompose" id="OScriptNodeDecompose_oqbno"]
|
||||
id = 8
|
||||
position = Vector2(580, 600)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"value",
|
||||
"type": 5,
|
||||
"flags": 10,
|
||||
"dv": Vector2(0, 0)
|
||||
}, {
|
||||
"pin_name": &"x",
|
||||
"type": 3,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": 0.0
|
||||
}, {
|
||||
"pin_name": &"y",
|
||||
"type": 3,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": 0.0
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_wxgaa"]
|
||||
id = 9
|
||||
position = Vector2(980, 600)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"x",
|
||||
"type": 3,
|
||||
"flags": 2,
|
||||
"dv": 0.0
|
||||
}, {
|
||||
"pin_name": &"y",
|
||||
"type": 3,
|
||||
"flags": 2,
|
||||
"dv": 0.0
|
||||
}, {
|
||||
"pin_name": &"value",
|
||||
"type": 5,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": Vector2(0, 0)
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_1b54s"]
|
||||
function_name = &"randi_range"
|
||||
method = {
|
||||
"name": &"randi_range",
|
||||
"return": {
|
||||
"type": 2
|
||||
},
|
||||
"args": [{
|
||||
"name": &"from",
|
||||
"type": 2
|
||||
}, {
|
||||
"name": &"to",
|
||||
"type": 2
|
||||
}]
|
||||
}
|
||||
id = 10
|
||||
position = Vector2(1440, 260)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"from",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": -1
|
||||
}, {
|
||||
"pin_name": &"to",
|
||||
"type": 2,
|
||||
"flags": 2,
|
||||
"dv": -4
|
||||
}, {
|
||||
"pin_name": &"return_value",
|
||||
"type": 2,
|
||||
"dir": 1,
|
||||
"flags": 1026
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_34soe"]
|
||||
function_name = &"set_global_scale"
|
||||
target_class_name = "Node2D"
|
||||
target_type = 24
|
||||
flags = 520
|
||||
method = {
|
||||
"name": &"set_global_scale",
|
||||
"args": [{
|
||||
"name": &"scale",
|
||||
"type": 5
|
||||
}]
|
||||
}
|
||||
chain = false
|
||||
id = 11
|
||||
position = Vector2(1220, 200)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node2D",
|
||||
"target_class": "Node2D"
|
||||
}, {
|
||||
"pin_name": &"scale",
|
||||
"type": 5,
|
||||
"flags": 2,
|
||||
"dv": Vector2(0, 0)
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeComposeFrom" id="OScriptNodeComposeFrom_r8ki6"]
|
||||
id = 12
|
||||
position = Vector2(1020, 280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"x",
|
||||
"type": 3,
|
||||
"flags": 2,
|
||||
"dv": 0.0
|
||||
}, {
|
||||
"pin_name": &"y",
|
||||
"type": 3,
|
||||
"flags": 2,
|
||||
"dv": 0.0
|
||||
}, {
|
||||
"pin_name": &"value",
|
||||
"type": 5,
|
||||
"dir": 1,
|
||||
"flags": 2,
|
||||
"dv": Vector2(0, 0)
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeCallBuiltinFunction" id="OScriptNodeCallBuiltinFunction_a637r"]
|
||||
function_name = &"randf_range"
|
||||
method = {
|
||||
"name": &"randf_range",
|
||||
"return": {
|
||||
"type": 3
|
||||
},
|
||||
"args": [{
|
||||
"name": &"from",
|
||||
"type": 3
|
||||
}, {
|
||||
"name": &"to",
|
||||
"type": 3
|
||||
}]
|
||||
}
|
||||
id = 13
|
||||
position = Vector2(820, 280)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"from",
|
||||
"type": 3,
|
||||
"flags": 2,
|
||||
"dv": 1.0
|
||||
}, {
|
||||
"pin_name": &"to",
|
||||
"type": 3,
|
||||
"flags": 2,
|
||||
"dv": 6.0
|
||||
}, {
|
||||
"pin_name": &"return_value",
|
||||
"type": 3,
|
||||
"dir": 1,
|
||||
"flags": 1026
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeEvent" id="OScriptNodeEvent_euhco"]
|
||||
function_id = "C9480AC5-8F88-4F12-8CBD-26C8D5EEA0D8"
|
||||
id = 14
|
||||
position = Vector2(340, 760)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeCallMemberFunction" id="OScriptNodeCallMemberFunction_55fjp"]
|
||||
function_name = &"queue_free"
|
||||
target_class_name = "Node"
|
||||
target_type = 24
|
||||
flags = 520
|
||||
method = {
|
||||
"name": &"queue_free"
|
||||
}
|
||||
chain = false
|
||||
id = 15
|
||||
position = Vector2(860, 760)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"target",
|
||||
"type": 24,
|
||||
"flags": 2050,
|
||||
"label": "Node",
|
||||
"target_class": "Node"
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeVariableGet" id="OScriptNodeVariableGet_imnbl"]
|
||||
variable_name = &"speed"
|
||||
id = 16
|
||||
position = Vector2(600, 480)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"value",
|
||||
"type": 3,
|
||||
"dir": 1,
|
||||
"flags": 2050,
|
||||
"label": "speed",
|
||||
"usage": 4102
|
||||
}])
|
||||
|
||||
[obj type="OScriptNodeVariableSet" id="OScriptNodeVariableSet_62f5t"]
|
||||
variable_name = &"speed"
|
||||
id = 17
|
||||
position = Vector2(1640, 200)
|
||||
pin_data = Array[Dictionary]([{
|
||||
"pin_name": &"ExecIn",
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"speed",
|
||||
"type": 3,
|
||||
"flags": 2050,
|
||||
"usage": 4102
|
||||
}, {
|
||||
"pin_name": &"ExecOut",
|
||||
"dir": 1,
|
||||
"flags": 4
|
||||
}, {
|
||||
"pin_name": &"value",
|
||||
"type": 3,
|
||||
"dir": 1,
|
||||
"flags": 1026,
|
||||
"usage": 4102
|
||||
}])
|
||||
|
||||
[obj type="OScriptVariable" id="OScriptVariable_nfldx"]
|
||||
name = "speed"
|
||||
category = "Default"
|
||||
classification = "type:float"
|
||||
type = 3
|
||||
default_value = 0.0
|
||||
|
||||
[resource]
|
||||
base_type = &"Sprite2D"
|
||||
variables = Array[OScriptVariable]([SubResource("OScriptVariable_nfldx")])
|
||||
functions = Array[OScriptFunction]([SubResource("OScriptFunction_ngs18"), SubResource("OScriptFunction_hl67t"), SubResource("OScriptFunction_hy1i5")])
|
||||
connections = Array[int]([0, 0, 1, 0, 4, 0, 6, 0, 16, 0, 7, 0, 5, 0, 8, 0, 7, 0, 9, 0, 1, 0, 11, 0, 13, 0, 12, 0, 14, 0, 15, 0, 11, 0, 17, 0, 2, 0, 1, 1, 8, 0, 7, 1, 8, 1, 9, 1, 13, 0, 12, 1, 10, 0, 17, 1, 9, 0, 6, 2, 12, 0, 11, 2])
|
||||
nodes = Array[OScriptNode]([SubResource("OScriptNodeEvent_d0t27"), SubResource("OScriptNodePropertySet_5xg6c"), SubResource("OScriptNodeCallBuiltinFunction_i7flf"), SubResource("OScriptNodeEvent_3043m"), SubResource("OScriptNodeCallMemberFunction_waa14"), SubResource("OScriptNodeCallMemberFunction_tovmh"), SubResource("OScriptNodeOperator_y6f7j"), SubResource("OScriptNodeDecompose_oqbno"), SubResource("OScriptNodeComposeFrom_wxgaa"), SubResource("OScriptNodeCallBuiltinFunction_1b54s"), SubResource("OScriptNodeCallMemberFunction_34soe"), SubResource("OScriptNodeComposeFrom_r8ki6"), SubResource("OScriptNodeCallBuiltinFunction_a637r"), SubResource("OScriptNodeEvent_euhco"), SubResource("OScriptNodeCallMemberFunction_55fjp"), SubResource("OScriptNodeVariableGet_imnbl"), SubResource("OScriptNodeVariableSet_62f5t")])
|
||||
graphs = Array[OScriptGraph]([SubResource("OScriptGraph_qvaj1")])
|
17
scenes/cloud/cloud.tscn
Normal file
17
scenes/cloud/cloud.tscn
Normal file
|
@ -0,0 +1,17 @@
|
|||
[gd_scene load_steps=3 format=3 uid="uid://dhrn26gfar1rn"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://cfks34adpcdyi" path="res://assets/images/clouds/clouds.png" id="1_jfc78"]
|
||||
[ext_resource type="Script" path="res://scenes/cloud/cloud.gd" id="2_m6nde"]
|
||||
|
||||
[node name="Cloud" type="Sprite2D"]
|
||||
scale = Vector2(6, 6)
|
||||
texture = ExtResource("1_jfc78")
|
||||
vframes = 4
|
||||
frame = 3
|
||||
script = ExtResource("2_m6nde")
|
||||
|
||||
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
|
||||
position = Vector2(6.08333, 0.500001)
|
||||
scale = Vector2(0.608333, 0.7)
|
||||
|
||||
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
|
Loading…
Add table
Add a link
Reference in a new issue