forked from Awayah/bouncy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplayer.tscn
30 lines (20 loc) · 807 Bytes
/
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
[gd_scene load_steps=6 format=2]
[ext_resource path="res://scripts/Player.gd" type="Script" id=1]
[ext_resource path="res://images/player_body.png" type="Texture" id=2]
[ext_resource path="res://images/player_eye.png" type="Texture" id=3]
[sub_resource type="PhysicsMaterial" id=1]
bounce = 3.0
[sub_resource type="CircleShape2D" id=2]
[node name="player" type="RigidBody2D"]
physics_material_override = SubResource( 1 )
script = ExtResource( 1 )
[node name="player_shape" type="CollisionShape2D" parent="."]
scale = Vector2( 3, 3 )
shape = SubResource( 2 )
[node name="player_body" type="Sprite" parent="."]
scale = Vector2( 0.3, 0.3 )
texture = ExtResource( 2 )
[node name="player_eye" type="Sprite" parent="."]
position = Vector2( -3, 0 )
scale = Vector2( 0.3, 0.3 )
texture = ExtResource( 3 )