-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.tscn
42 lines (29 loc) · 1.03 KB
/
player.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
[gd_scene load_steps=4 format=2]
[ext_resource path="res://player.gd" type="Script" id=1]
[ext_resource path="res://pong-player-pad.png" type="Texture" id=2]
[sub_resource type="RectangleShape2D" id=1]
custom_solver_bias = 0.0
extents = Vector2( 10, 121.33 )
[node name="player" type="Node2D" index="0"]
position = Vector2( 0, -1 )
script = ExtResource( 1 )
speed = 10
UP_INPUT_ACTION = "player1-up"
DOWN_INPUT_ACTION = "player1-down"
[node name="StaticBody2D" type="StaticBody2D" parent="." index="0"]
input_pickable = false
collision_layer = 1
collision_mask = 1
constant_linear_velocity = Vector2( 0, 0 )
constant_angular_velocity = 0.0
friction = 1.0
bounce = 0.0
_sections_unfolded = [ "Transform" ]
[node name="CollisionShape2D" type="CollisionShape2D" parent="StaticBody2D" index="0"]
scale = Vector2( 1, 0.82371 )
shape = SubResource( 1 )
_sections_unfolded = [ "Transform" ]
[node name="pong-player-pad" type="Sprite" parent="." index="1"]
scale = Vector2( 20, 20 )
texture = ExtResource( 2 )
_sections_unfolded = [ "Transform" ]