1- [gd_scene load_steps =6 format =3 uid ="uid://c45vpqedwbvcv " ]
1+ [gd_scene load_steps =21 format =3 uid ="uid://dps3xjhs2ssns " ]
22
33[ext_resource type ="Script" path ="res://addons/block_code/simple_nodes/simple_character/simple_character.gd" id ="1_rrros" ]
44[ext_resource type ="Texture2D" uid ="uid://dqobtlpqjmouw" path ="res://game-06/graphics/engine.svg" id ="2_qdvvn" ]
55[ext_resource type ="Texture2D" uid ="uid://blq8smrhpgtpj" path ="res://game-06/graphics/graphics.png" id ="3_s1qof" ]
6+ [ext_resource type ="Script" path ="res://addons/block_code/block_code_node/block_code.gd" id ="4_i1022" ]
7+ [ext_resource type ="Script" path ="res://addons/block_code/serialization/block_serialization_tree.gd" id ="5_8ag0i" ]
8+ [ext_resource type ="Script" path ="res://addons/block_code/serialization/block_serialization.gd" id ="6_rpoob" ]
9+ [ext_resource type ="Script" path ="res://addons/block_code/serialization/value_block_serialization.gd" id ="7_xmg58" ]
10+ [ext_resource type ="Script" path ="res://addons/block_code/serialization/block_script_serialization.gd" id ="8_ui4ru" ]
11+ [ext_resource type ="Script" path ="res://addons/block_code/code_generation/variable_definition.gd" id ="9_5ylav" ]
12+ [ext_resource type ="AudioStream" uid ="uid://bm178yv4wvqdn" path ="res://game-06/Sounds/Pew.ogg" id ="10_vxg6f" ]
613
714[sub_resource type ="Curve" id ="Curve_j0da6" ]
815_data = [Vector2 (0 , 0.570571 ), 0.0 , 0.0 , 0 , 0 , Vector2 (0.643836 , 1 ), 0.0 , 0.0 , 0 , 0 , Vector2 (1 , 1 ), 0.0 , 0.0 , 0 , 0 ]
@@ -12,6 +19,67 @@ point_count = 3
1219radius = 19.0
1320height = 70.0
1421
22+ [sub_resource type ="Gradient" id ="Gradient_dpfi0" ]
23+ offsets = PackedFloat32Array (0 , 0.06 , 0.133333 , 1 )
24+ colors = PackedColorArray (1 , 1 , 1 , 0.306667 , 1 , 1 , 1 , 0.618667 , 1 , 1 , 1 , 1 , 1 , 1 , 1 , 0 )
25+
26+ [sub_resource type ="Gradient" id ="Gradient_ejn0n" ]
27+ interpolation_mode = 1
28+ offsets = PackedFloat32Array (0 , 0.126667 , 0.293333 , 0.426667 , 0.593333 , 0.76 , 0.926667 )
29+ colors = PackedColorArray (0.92 , 0.092 , 0 , 1 , 0.8932 , 0.945778 , 0.0653333 , 1 , 0.263355 , 0.97 , 0.0679 , 1 , 0.07 , 1 , 0.7675 , 1 , 0.21 , 0.460167 , 1 , 1 , 0.535 , 0.21725 , 0.752 , 1 , 1 , 0.07 , 0.504 , 1 )
30+
31+ [sub_resource type ="Resource" id ="Resource_fhmvj" ]
32+ script = ExtResource ("7_xmg58" )
33+ name = &"get_node"
34+ arguments = {
35+ "path" : NodePath ("PewSound" )
36+ }
37+
38+ [sub_resource type ="Resource" id ="Resource_858ys" ]
39+ script = ExtResource ("6_rpoob" )
40+ name = &"call_method_node"
41+ children = Array[ExtResource ("6_rpoob" )]([])
42+ arguments = {
43+ "method_name" : "play" ,
44+ "node" : SubResource ("Resource_fhmvj" )
45+ }
46+
47+ [sub_resource type ="Resource" id ="Resource_skg1q" ]
48+ script = ExtResource ("6_rpoob" )
49+ name = &"CPUParticles2D_set_emitting"
50+ children = Array[ExtResource ("6_rpoob" )]([])
51+ arguments = {
52+ "value" : true
53+ }
54+
55+ [sub_resource type ="Resource" id ="Resource_p5qn8" ]
56+ script = ExtResource ("6_rpoob" )
57+ name = &"define_method"
58+ children = Array[ExtResource ("6_rpoob" )]([SubResource ("Resource_858ys" ), SubResource ("Resource_skg1q" )])
59+ arguments = {
60+ "method_name" : &"fire"
61+ }
62+
63+ [sub_resource type ="Resource" id ="Resource_exer3" ]
64+ script = ExtResource ("5_8ag0i" )
65+ root = SubResource ("Resource_p5qn8" )
66+ canvas_position = Vector2 (50 , 50 )
67+
68+ [sub_resource type ="Resource" id ="Resource_quep6" ]
69+ script = ExtResource ("8_ui4ru" )
70+ script_inherits = "CPUParticles2D"
71+ block_serialization_trees = Array[ExtResource ("5_8ag0i" )]([SubResource ("Resource_exer3" )])
72+ variables = Array[ExtResource ("9_5ylav" )]([])
73+ generated_script = "extends CPUParticles2D
74+
75+
76+ func fire():
77+ (get_node(\" PewSound\" )).call('play')
78+ emitting = true
79+
80+ "
81+ version = 0
82+
1583[node name ="SimpleCharacter" type ="CharacterBody2D" groups =["affected_by_gravity" ]]
1684script = ExtResource ("1_rrros" )
1785speed = Vector2 (400 , 400 )
@@ -41,3 +109,29 @@ region_rect = Rect2(338.878, 351.521, 753.301, 389.432)
41109position = Vector2 (3 , -4 )
42110rotation = -1.57079
43111shape = SubResource ("CapsuleShape2D_babat" )
112+
113+ [node name ="Lasers" type ="CPUParticles2D" parent ="." ]
114+ position = Vector2 (70 , 0 )
115+ emitting = false
116+ lifetime = 0.5
117+ one_shot = true
118+ texture = ExtResource ("2_qdvvn" )
119+ spread = 0.0
120+ gravity = Vector2 (-100 , 0 )
121+ initial_velocity_min = 450.0
122+ initial_velocity_max = 600.0
123+ scale_amount_min = 0.3
124+ scale_amount_max = 0.3
125+ color = Color (1 , 0.348495 , 0.262113 , 1 )
126+ color_ramp = SubResource ("Gradient_dpfi0" )
127+ color_initial_ramp = SubResource ("Gradient_ejn0n" )
128+ hue_variation_min = -0.5
129+ hue_variation_max = 0.5
130+
131+ [node name ="BlockCode" type ="Node" parent ="Lasers" ]
132+ script = ExtResource ("4_i1022" )
133+ block_script = SubResource ("Resource_quep6" )
134+
135+ [node name ="PewSound" type ="AudioStreamPlayer2D" parent ="Lasers" ]
136+ stream = ExtResource ("10_vxg6f" )
137+ pitch_scale = 2.0
0 commit comments