-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGameSegment.tscn
50 lines (39 loc) · 1.29 KB
/
GameSegment.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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://Block.tscn" type="PackedScene" id=1]
[ext_resource path="res://Player.tscn" type="PackedScene" id=2]
[ext_resource path="res://GameSegment.gd" type="Script" id=3]
[sub_resource type="SegmentShape2D" id=1]
b = Vector2( 0, 1800 )
[sub_resource type="SegmentShape2D" id=2]
a = Vector2( 512, 0 )
b = Vector2( 512, 1800 )
[node name="GameSegment" type="Node2D"]
script = ExtResource( 3 )
Block = ExtResource( 1 )
input = {
"left": "rightsegment_left",
"right": "rightsegment_right",
"up": "rightsegment_up"
}
[node name="Background" type="Sprite" parent="."]
centered = false
[node name="ColorRect" type="ColorRect" parent="Background"]
margin_right = 512.0
margin_bottom = 1920.0
color = Color( 0.278431, 0.278431, 0.278431, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Player" parent="." instance=ExtResource( 2 )]
z_index = 1
_size = Vector2( 100, 100 )
[node name="LeftWall" type="StaticBody2D" parent="."]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="LeftWall"]
shape = SubResource( 1 )
[node name="RightWall" type="StaticBody2D" parent="."]
collision_layer = 4
collision_mask = 0
[node name="CollisionShape2D" type="CollisionShape2D" parent="RightWall"]
shape = SubResource( 2 )