|
2 | 2 |
|
3 | 3 | [ext_resource type="PackedScene" uid="uid://cg8ibi18um3vg" path="res://addons/block_code/examples/pong_game/space.tscn" id="1_y56ac"]
|
4 | 4 | [ext_resource type="Script" path="res://addons/block_code/block_code_node/block_code.gd" id="3_6jaq8"]
|
5 |
| -[ext_resource type="PackedScene" uid="uid://ddx1cd5q6t61o" path="res://addons/block_code/simple_nodes/simple_character/simple_character.tscn" id="3_hjpbs"] |
| 5 | +[ext_resource type="Script" path="res://addons/block_code/simple_nodes/simple_character/simple_character.gd" id="3_mdrcv"] |
6 | 6 | [ext_resource type="Script" path="res://addons/block_code/ui/block_canvas/serialized_block_tree_node.gd" id="4_qtggh"]
|
7 | 7 | [ext_resource type="Texture2D" uid="uid://tplpgtnfeda0" path="res://addons/block_code/examples/pong_game/assets/paddle.png" id="4_ra7bh"]
|
8 | 8 | [ext_resource type="Script" path="res://addons/block_code/ui/block_canvas/serialized_block.gd" id="5_wr38c"]
|
9 | 9 | [ext_resource type="Script" path="res://addons/block_code/ui/block_canvas/serialized_block_tree_node_array.gd" id="6_ppdc3"]
|
10 | 10 | [ext_resource type="Script" path="res://addons/block_code/block_script_data/block_script_data.gd" id="7_uuuue"]
|
11 |
| -[ext_resource type="PackedScene" uid="uid://bis7afjjuwypq" path="res://addons/block_code/simple_nodes/simple_scoring/simple_scoring.tscn" id="8_yg457"] |
12 | 11 | [ext_resource type="PackedScene" uid="uid://c7l70grmkauij" path="res://addons/block_code/examples/pong_game/ball.tscn" id="9_xrqll"]
|
13 | 12 | [ext_resource type="PackedScene" uid="uid://fhoapg3anjsu" path="res://addons/block_code/examples/pong_game/goal_area.tscn" id="12_nqmxu"]
|
| 13 | +[ext_resource type="Script" path="res://addons/block_code/simple_nodes/simple_scoring/simple_scoring.gd" id="13_tg3yk"] |
14 | 14 |
|
15 | 15 | [sub_resource type="Resource" id="Resource_k6jw1"]
|
16 | 16 | script = ExtResource("5_wr38c")
|
@@ -796,20 +796,22 @@ version = 0
|
796 | 796 |
|
797 | 797 | [node name="Space" parent="." instance=ExtResource("1_y56ac")]
|
798 | 798 |
|
799 |
| -[node name="PaddleLeft" parent="." groups=["paddles"] instance=ExtResource("3_hjpbs")] |
| 799 | +[node name="PaddleLeft" type="CharacterBody2D" parent="." groups=["paddles"]] |
800 | 800 | modulate = Color(0.509804, 0.360784, 0.972549, 1)
|
801 | 801 | position = Vector2(64, 544)
|
802 | 802 | collision_mask = 5
|
| 803 | +script = ExtResource("3_mdrcv") |
803 | 804 | texture = ExtResource("4_ra7bh")
|
804 | 805 |
|
805 | 806 | [node name="BlockCode" type="Node" parent="PaddleLeft"]
|
806 | 807 | script = ExtResource("3_6jaq8")
|
807 | 808 | block_script = SubResource("Resource_qmak3")
|
808 | 809 |
|
809 |
| -[node name="PaddleRight" parent="." groups=["paddles"] instance=ExtResource("3_hjpbs")] |
| 810 | +[node name="PaddleRight" type="CharacterBody2D" parent="." groups=["paddles"]] |
810 | 811 | modulate = Color(0.509804, 0.360784, 0.972549, 1)
|
811 | 812 | position = Vector2(1856, 544)
|
812 | 813 | collision_mask = 5
|
| 814 | +script = ExtResource("3_mdrcv") |
813 | 815 | texture = ExtResource("4_ra7bh")
|
814 | 816 |
|
815 | 817 | [node name="BlockCode" type="Node" parent="PaddleRight"]
|
@@ -839,8 +841,9 @@ position = Vector2(1984, 544)
|
839 | 841 | script = ExtResource("3_6jaq8")
|
840 | 842 | block_script = SubResource("Resource_6drva")
|
841 | 843 |
|
842 |
| -[node name="SimpleScoring" parent="." instance=ExtResource("8_yg457")] |
| 844 | +[node name="SimpleScoring" type="CanvasLayer" parent="." groups=["hud"]] |
843 | 845 | follow_viewport_enabled = true
|
| 846 | +script = ExtResource("13_tg3yk") |
844 | 847 |
|
845 | 848 | [node name="BlockCode" type="Node" parent="SimpleScoring"]
|
846 | 849 | script = ExtResource("3_6jaq8")
|
|
0 commit comments