-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tscn
86 lines (63 loc) · 2.68 KB
/
main.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
[gd_scene load_steps=11 format=2]
[ext_resource path="res://backgrounds/ParallaxBackground.tscn" type="PackedScene" id=1]
[ext_resource path="res://Enemy/boss 1 nazi cirno/boss 1.tscn" type="PackedScene" id=2]
[ext_resource path="res://ents/p1/p1.tscn" type="PackedScene" id=3]
[ext_resource path="res://bosshpbar.gd" type="Script" id=4]
[ext_resource path="res://p1hpbar.gd" type="Script" id=5]
[sub_resource type="Theme" id=4]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 179, 648 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 322, 194 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 281, 69 )
[sub_resource type="RectangleShape2D" id=5]
extents = Vector2( 281, 42 )
[node name="world" type="Node2D"]
[node name="ParallaxBackground" parent="." instance=ExtResource( 1 )]
[node name="Node2D" type="Node2D" parent="."]
[node name="boss 1" parent="Node2D" instance=ExtResource( 2 )]
position = Vector2( 543, 60 )
[node name="bosshpbar" type="ProgressBar" parent="Node2D"]
margin_left = 109.0
margin_top = 32.0
margin_right = 299.0
margin_bottom = 94.0
hint_tooltip = "Boss HP
"
theme = SubResource( 4 )
step = 0.0
value = 100.0
script = ExtResource( 4 )
[node name="Node2D2" type="Node2D" parent="."]
[node name="p1" parent="Node2D2" instance=ExtResource( 3 )]
position = Vector2( 620, 610 )
[node name="p1hpbar" type="ProgressBar" parent="Node2D2"]
margin_left = 546.0
margin_top = 689.0
margin_right = 696.0
margin_bottom = 703.0
script = ExtResource( 5 )
[node name="StaticBody2D" type="StaticBody2D" parent="."]
position = Vector2( 119, 180 )
[node name="left" type="CollisionShape2D" parent="StaticBody2D"]
position = Vector2( 64, 360 )
shape = SubResource( 1 )
[node name="StaticBody2D2" type="StaticBody2D" parent="."]
position = Vector2( 119, 180 )
[node name="right" type="CollisionShape2D" parent="StaticBody2D2"]
position = Vector2( 948, 419 )
shape = SubResource( 1 )
[node name="bottom" type="CollisionShape2D" parent="StaticBody2D2"]
position = Vector2( 521, 696 )
shape = SubResource( 2 )
[node name="top" type="CollisionShape2D" parent="StaticBody2D2"]
position = Vector2( 514, -252 )
shape = SubResource( 3 )
[node name="Area2D" type="Area2D" parent="StaticBody2D2/top"]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D2/top/Area2D"]
position = Vector2( 0, 32 )
shape = SubResource( 5 )
[connection signal="bosshealthchange" from="Node2D/boss 1" to="Node2D/boss 1" method="_on_boss_1_bosshealthchange"]
[connection signal="bosshealthchange" from="Node2D/boss 1" to="Node2D/bosshpbar" method="_on_boss_1_bosshealthchange"]
[connection signal="health_changed" from="Node2D2/p1" to="Node2D2/p1hpbar" method="_on_p1_health_changed"]