-
Notifications
You must be signed in to change notification settings - Fork 0
/
game.tscn
117 lines (93 loc) · 6.1 KB
/
game.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
[gd_scene load_steps=18 format=3 uid="uid://ccqdkuc7b22bs"]
[ext_resource type="TileSet" uid="uid://buclsmiivqlb7" path="res://map/tileset.tres" id="1_ms62v"]
[ext_resource type="Texture2D" uid="uid://dr4lckiwhbwsg" path="res://icon.svg" id="2_e03qj"]
[ext_resource type="PackedScene" uid="uid://c42xtx57bayxb" path="res://map/map_00.tscn" id="2_f7ham"]
[ext_resource type="Script" path="res://Player.gd" id="2_f8xbt"]
[ext_resource type="Script" path="res://MapCreator.gd" id="2_ksiwt"]
[ext_resource type="Script" path="res://KoyoriTimer.gd" id="3_0fdt0"]
[ext_resource type="PackedScene" uid="uid://cpptajcetwq04" path="res://guns/GunHitbox.tscn" id="3_h4yv5"]
[ext_resource type="Script" path="res://guns/Shotgun.gd" id="4_f2cli"]
[ext_resource type="PackedScene" uid="uid://bmtouhwhdg5nk" path="res://map/map_02.tscn" id="5_cpxy6"]
[ext_resource type="Script" path="res://guns/Grapple.gd" id="6_67nph"]
[ext_resource type="Resource" uid="uid://c18ccafp4xn4f" path="res://guns/Shotgun.tres" id="7_4y0qf"]
[ext_resource type="Script" path="res://JumpBuffer.gd" id="7_rspcd"]
[ext_resource type="Script" path="res://Hurtbox.gd" id="11_38qx1"]
[ext_resource type="PackedScene" uid="uid://dabcm8u46uapg" path="res://map/map_01.tscn" id="12_4bn0t"]
[ext_resource type="Script" path="res://FireCountDisplay.gd" id="15_l0nab"]
[sub_resource type="RectangleShape2D" id="RectangleShape2D_3fea0"]
size = Vector2(26, 26)
[sub_resource type="RectangleShape2D" id="RectangleShape2D_53k5f"]
size = Vector2(24, 24)
[node name="Game" type="Node2D"]
[node name="TileMap" type="TileMap" parent="."]
tile_set = ExtResource("1_ms62v")
format = 2
layer_0/tile_data = PackedInt32Array(-589815, 1, 1, -262154, 1, 1, -327690, 1, 1, -393226, 1, 1, -458762, 1, 1, -524298, 1, 1, -589834, 1, 1, -655370, 1, 1, -720906, 1, 1, -786442, 1, 1, -851978, 1, 1, -917514, 1, 1, -983050, 1, 1, -1048586, 1, 1, -1114122, 1, 1, -1179658, 1, 1, -1245194, 1, 1, -1310730, 1, 1, -1376266, 1, 1, -1441802, 1, 1, -1507338, 1, 1, -1572874, 1, 1, -1638410, 1, 1, -1703946, 1, 1, -1769482, 1, 1, -1835018, 1, 1, -1900554, 1, 1, -1966090, 1, 1, -2031626, 1, 1, -2097162, 1, 1, -2162698, 1, 1, -2228234, 1, 1, -2293770, 1, 1, -2359306, 1, 1, -2424842, 1, 1, -2490378, 1, 1, -2555914, 1, 1, -2621450, 1, 1, -2686986, 1, 0, -2752503, 1, 0, -2686967, 1, 1, -2621431, 1, 1, -2555895, 1, 1, -2490359, 1, 1, -2424823, 1, 1, -2359287, 1, 1, -2293751, 1, 1, -2228215, 1, 1, -2162679, 1, 1, -2097143, 1, 1, -2031607, 1, 1, -1966071, 1, 1, -1900535, 1, 1, -1834999, 1, 1, -1769463, 1, 1, -1703927, 1, 1, -1638391, 1, 1, -1572855, 1, 1, -1507319, 1, 1, -1441783, 1, 1, -1376247, 1, 1, -1310711, 1, 1, -1245175, 1, 1, -1179639, 1, 1, -1114103, 1, 1, -1048567, 1, 1, -983031, 1, 1, -917495, 1, 1, -851959, 1, 1, -786423, 1, 1, -720887, 1, 1, -655351, 1, 1, -524279, 1, 1, -458743, 1, 1, -393207, 1, 1, -196618, 1, 1, -131082, 1, 1, -65546, 1, 1, -327671, 1, 1, -262135, 1, 1, -196599, 1, 1, -131063, 1, 1, -65527, 1, 1, 9, 196609, 2, 8, 131073, 3, 7, 131073, 3, 6, 131073, 3, 5, 131073, 3, 4, 131073, 3, 3, 131073, 3, 2, 131073, 3, 1, 131073, 3, 0, 131073, 3, 65535, 131073, 3, 65534, 131073, 3, 65533, 131073, 3, 65532, 131073, 3, 65531, 131073, 3, 65530, 131073, 3, 65529, 131073, 3, 65528, 131073, 3, 65527, 131073, 3, 65526, 65537, 2, -10, 1, 1)
[node name="MapCreator" type="Node2D" parent="TileMap"]
script = ExtResource("2_ksiwt")
maps = Array[PackedScene]([ExtResource("2_f7ham"), ExtResource("12_4bn0t"), ExtResource("5_cpxy6")])
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="TileMap/MapCreator"]
[node name="Player" type="CharacterBody2D" parent="TileMap"]
position = Vector2(0, -51)
collision_layer = 2
script = ExtResource("2_f8xbt")
hit_scene = ExtResource("3_h4yv5")
[node name="JumpBuffer" type="Timer" parent="TileMap/Player" node_paths=PackedStringArray("player")]
wait_time = 0.1
one_shot = true
script = ExtResource("7_rspcd")
player = NodePath("..")
[node name="KoyoriTimer" type="Timer" parent="TileMap/Player" node_paths=PackedStringArray("player")]
wait_time = 0.15
one_shot = true
script = ExtResource("3_0fdt0")
player = NodePath("..")
[node name="Camera2D" type="Camera2D" parent="TileMap/Player"]
position = Vector2(0, 20)
limit_left = 0
limit_right = 480
limit_bottom = 100
[node name="Sprite2D" type="Sprite2D" parent="TileMap/Player"]
scale = Vector2(0.2, 0.2)
texture = ExtResource("2_e03qj")
[node name="CollisionShape2D" type="CollisionShape2D" parent="TileMap/Player"]
shape = SubResource("RectangleShape2D_3fea0")
[node name="GrappleCast" type="RayCast2D" parent="TileMap/Player"]
target_position = Vector2(0, 100)
[node name="Guns" type="Node" parent="TileMap/Player"]
[node name="Shotgun" type="Node" parent="TileMap/Player/Guns" node_paths=PackedStringArray("player")]
script = ExtResource("4_f2cli")
resource = ExtResource("7_4y0qf")
player = NodePath("../..")
[node name="Grapple" type="Node" parent="TileMap/Player/Guns" node_paths=PackedStringArray("cast")]
script = ExtResource("6_67nph")
cast = NodePath("../../GrappleCast")
[node name="Hurtbox" type="Area2D" parent="TileMap/Player"]
collision_layer = 8
collision_mask = 0
script = ExtResource("11_38qx1")
[node name="CollisionShape2D" type="CollisionShape2D" parent="TileMap/Player/Hurtbox"]
shape = SubResource("RectangleShape2D_53k5f")
[node name="Hand" type="Node2D" parent="TileMap/Player"]
[node name="Sprite2D" type="Sprite2D" parent="TileMap/Player/Hand"]
position = Vector2(13, 0)
scale = Vector2(0.109375, 0.03125)
texture = ExtResource("2_e03qj")
[node name="CanvasLayer" type="CanvasLayer" parent="."]
[node name="MarginContainer" type="MarginContainer" parent="CanvasLayer"]
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 0
grow_vertical = 0
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
[node name="HBoxContainer" type="HBoxContainer" parent="CanvasLayer/MarginContainer" node_paths=PackedStringArray("shotgun")]
layout_mode = 2
script = ExtResource("15_l0nab")
shotgun = NodePath("../../../TileMap/Player/Guns/Shotgun")
tex = ExtResource("2_e03qj")