1
- [gd_scene load_steps =4 format =3 uid ="uid://ci147qf6s6jhg" ]
1
+ [gd_scene load_steps =7 format =3 uid ="uid://ci147qf6s6jhg" ]
2
2
3
3
[ext_resource type ="Texture2D" uid ="uid://2lkjiw4cpjo1" path ="res://game-06/graphics/ship.png" id ="1_be160" ]
4
4
[ext_resource type ="Texture2D" uid ="uid://c2kmueth1qo3q" path ="res://game-06/graphics/coin.png" id ="2_bcxue" ]
5
+ [ext_resource type ="Script" path ="res://addons/block_code/simple_nodes/simple_character/simple_character.gd" id ="3_7g8jp" ]
5
6
[ext_resource type ="Texture2D" uid ="uid://sfab1iwfjhyc" path ="res://game-06/graphics/obstacle.png" id ="3_w1gab" ]
6
7
7
- [node name ="Main" type ="Node2D" ]
8
+ [sub_resource type ="RectangleShape2D" id ="RectangleShape2D_s7voe" ]
9
+ size = Vector2 (960 , 20 )
8
10
9
- [node name = "Ship" type ="Sprite2D" parent = ". " ]
10
- position = Vector2 (157 , 236 )
11
- scale = Vector2 ( 0.197971 , 0.197971 )
12
- texture = ExtResource ( "1_be160" )
11
+ [sub_resource type ="RectangleShape2D" id = "RectangleShape2D_m1jur " ]
12
+ size = Vector2 (960 , 20 )
13
+
14
+ [ node name = "Main" type = "Node2D" ]
13
15
14
16
[node name ="Coin" type ="Sprite2D" parent ="." ]
15
17
position = Vector2 (413.597 , 305.681 )
@@ -20,3 +22,21 @@ texture = ExtResource("2_bcxue")
20
22
position = Vector2 (563.597 , 220.681 )
21
23
scale = Vector2 (0.515775 , 0.515775 )
22
24
texture = ExtResource ("3_w1gab" )
25
+
26
+ [node name ="SimpleCharacter" type ="CharacterBody2D" parent ="." groups =["affected_by_gravity" ]]
27
+ position = Vector2 (157 , 236 )
28
+ script = ExtResource ("3_7g8jp" )
29
+
30
+ [node name ="Ship" type ="Sprite2D" parent ="SimpleCharacter" ]
31
+ scale = Vector2 (0.197971 , 0.197971 )
32
+ texture = ExtResource ("1_be160" )
33
+
34
+ [node name ="Walls" type ="StaticBody2D" parent ="." ]
35
+
36
+ [node name ="CollisionShape2D" type ="CollisionShape2D" parent ="Walls" ]
37
+ position = Vector2 (480 , 0 )
38
+ shape = SubResource ("RectangleShape2D_s7voe" )
39
+
40
+ [node name ="CollisionShape2D2" type ="CollisionShape2D" parent ="Walls" ]
41
+ position = Vector2 (480 , 544 )
42
+ shape = SubResource ("RectangleShape2D_m1jur" )
0 commit comments