-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame.tscn
96 lines (80 loc) · 3.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
[gd_scene load_steps=13 format=3 uid="uid://dderwc6alxmyk"]
[ext_resource type="Script" path="res://scripts/Game.cs" id="1_23mwj"]
[ext_resource type="Script" path="res://scripts/Camera.cs" id="2_5vldj"]
[ext_resource type="Script" path="res://scripts/Player.cs" id="2_578kt"]
[ext_resource type="Texture2D" uid="uid://c6l7w1wuyitjp" path="res://assets/ball_base.png" id="3_nm1ro"]
[ext_resource type="Script" path="res://scripts/Enemy.cs" id="4_472y6"]
[ext_resource type="Theme" uid="uid://cq2e8oc8lvi8k" path="res://themes/defualt.tres" id="4_o8cob"]
[ext_resource type="Script" path="res://scripts/Score.cs" id="4_xngiy"]
[ext_resource type="Texture2D" uid="uid://bw355amdlnufx" path="res://assets/enemy.png" id="5_qad1s"]
[sub_resource type="CircleShape2D" id="CircleShape2D_da3ge"]
radius = 59.0762
[sub_resource type="CircleShape2D" id="CircleShape2D_6ccxd"]
radius = 64.3334
[sub_resource type="Gradient" id="Gradient_yww1q"]
offsets = PackedFloat32Array(0.00645161, 0.5, 1)
colors = PackedColorArray(1, 0.145781, 0.960215, 1, 0.719735, 0.176415, 0.994669, 1, 0.537282, 0.00378308, 0.966528, 1)
[sub_resource type="GradientTexture1D" id="GradientTexture1D_gqowe"]
gradient = SubResource("Gradient_yww1q")
[node name="Game" type="Node2D"]
script = ExtResource("1_23mwj")
metadata/_edit_horizontal_guides_ = [-2147.0]
[node name="Camera" type="Camera2D" parent="."]
scale = Vector2(0.226563, 0.225236)
script = ExtResource("2_5vldj")
[node name="Player" type="CharacterBody2D" parent="."]
z_index = 5
scale = Vector2(1, 0.994144)
script = ExtResource("2_578kt")
JumpForce = 721.0
downForceModifier = 1.2
downForce = 20.0
force = 25.0
metadata/_edit_group_ = true
[node name="Sprite2D" type="Sprite2D" parent="Player"]
z_index = 3
scale = Vector2(0.226563, 0.226563)
texture = ExtResource("3_nm1ro")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Player"]
shape = SubResource("CircleShape2D_da3ge")
debug_color = Color(0, 0.6, 0.701961, 0.419608)
[node name="Enemy" type="CharacterBody2D" parent="."]
position = Vector2(646, 65)
scale = Vector2(1.04145, 0.951219)
up_direction = Vector2(0, 1)
script = ExtResource("4_472y6")
metadata/_edit_group_ = true
[node name="Sprite2D" type="Sprite2D" parent="Enemy"]
position = Vector2(0, 1.05128)
scale = Vector2(0.255, 0.255)
texture = ExtResource("5_qad1s")
[node name="CollisionShape2D" type="CollisionShape2D" parent="Enemy"]
shape = SubResource("CircleShape2D_6ccxd")
disabled = true
[node name="Tap" type="Label" parent="."]
offset_left = -621.0
offset_top = -256.0
offset_right = -42.0
offset_bottom = -73.0
scale = Vector2(1.00208, 1)
theme = ExtResource("4_o8cob")
text = "Tap!"
horizontal_alignment = 1
[node name="Score" type="Label" parent="."]
offset_left = 12.0
offset_top = -324.0
offset_right = 587.0
offset_bottom = -141.0
rotation = 0.00101987
theme = ExtResource("4_o8cob")
text = "0"
horizontal_alignment = 1
script = ExtResource("4_xngiy")
metadata/_edit_use_anchors_ = true
[node name="Background" type="TextureRect" parent="."]
z_index = -1
offset_right = 576.0
offset_bottom = 1024.0
texture = SubResource("GradientTexture1D_gqowe")
expand_mode = 1
metadata/_edit_lock_ = true