Initial commit
This commit is contained in:
110
Characters/Player/Player.tscn
Normal file
110
Characters/Player/Player.tscn
Normal file
@@ -0,0 +1,110 @@
|
||||
[gd_scene load_steps=19 format=2]
|
||||
|
||||
[ext_resource path="res://Characters/Player/player.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Characters/Player/Bit/Idle_01.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Characters/Player/Bit/Idle_02.png" type="Texture" id=3]
|
||||
[ext_resource path="res://Characters/Player/Bit/Idle_03.png" type="Texture" id=4]
|
||||
[ext_resource path="res://Characters/Player/Bit/Idle_04.png" type="Texture" id=5]
|
||||
[ext_resource path="res://Characters/Player/Bit/Jump_01.png" type="Texture" id=6]
|
||||
[ext_resource path="res://Characters/Player/Bit/Run_01.png" type="Texture" id=7]
|
||||
[ext_resource path="res://Characters/Player/Bit/Run_02.png" type="Texture" id=8]
|
||||
[ext_resource path="res://Characters/Player/Bit/Run_03.png" type="Texture" id=9]
|
||||
[ext_resource path="res://Characters/Player/Bit/Run_04.png" type="Texture" id=10]
|
||||
[ext_resource path="res://Characters/Player/Bit/Run_05.png" type="Texture" id=11]
|
||||
[ext_resource path="res://Characters/Player/Bit/Run_06.png" type="Texture" id=12]
|
||||
[ext_resource path="res://Lightmaps/PlayerLight.png" type="Texture" id=13]
|
||||
[ext_resource path="res://Lightmaps/CompleteWhite.png" type="Texture" id=14]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id=1]
|
||||
radius = 11.2128
|
||||
height = 0.0
|
||||
|
||||
[sub_resource type="SpriteFrames" id=2]
|
||||
animations = [ {
|
||||
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ) ],
|
||||
"loop": true,
|
||||
"name": "idle",
|
||||
"speed": 3.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 6 ) ],
|
||||
"loop": true,
|
||||
"name": "jump",
|
||||
"speed": 0.0
|
||||
}, {
|
||||
"frames": [ ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ) ],
|
||||
"loop": true,
|
||||
"name": "run",
|
||||
"speed": 10.0
|
||||
} ]
|
||||
|
||||
[sub_resource type="CircleShape2D" id=3]
|
||||
radius = 121.239
|
||||
|
||||
[sub_resource type="CircleShape2D" id=4]
|
||||
radius = 139.247
|
||||
|
||||
[node name="Player" type="KinematicBody2D"]
|
||||
position = Vector2( 0.377872, 0.100608 )
|
||||
script = ExtResource( 1 )
|
||||
__meta__ = {
|
||||
"_edit_group_": true
|
||||
}
|
||||
BASE_CAMERA_ZOOM = 0.4
|
||||
VIEW_SMOOTH_FACTOR = 0.1
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
position = Vector2( -1.38898, 7.56054 )
|
||||
rotation = 1.5708
|
||||
scale = Vector2( 0.574, 0.604 )
|
||||
shape = SubResource( 1 )
|
||||
|
||||
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
||||
position = Vector2( -1.21067, 0.601201 )
|
||||
frames = SubResource( 2 )
|
||||
animation = "idle"
|
||||
frame = 1
|
||||
playing = true
|
||||
|
||||
[node name="Label" type="Label" parent="."]
|
||||
margin_left = -61.0
|
||||
margin_top = -35.0
|
||||
margin_right = 64.0
|
||||
margin_bottom = -21.0
|
||||
text = "SIXTEENCHARACTER"
|
||||
align = 1
|
||||
__meta__ = {
|
||||
"_edit_use_anchors_": false
|
||||
}
|
||||
|
||||
[node name="Light2D" type="Light2D" parent="."]
|
||||
position = Vector2( -0.495953, 13.2623 )
|
||||
z_index = 2
|
||||
texture = ExtResource( 13 )
|
||||
texture_scale = 0.95
|
||||
energy = 0.7
|
||||
shadow_enabled = true
|
||||
shadow_filter = 4
|
||||
shadow_filter_smooth = 4.9
|
||||
|
||||
[node name="Darken" type="Light2D" parent="."]
|
||||
texture = ExtResource( 14 )
|
||||
texture_scale = 7.7
|
||||
energy = 0.7
|
||||
mode = 1
|
||||
shadow_filter = 2
|
||||
|
||||
[node name="View" type="Area2D" parent="."]
|
||||
modulate = Color( 0.192157, 0.239216, 0.713726, 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="View"]
|
||||
shape = SubResource( 3 )
|
||||
disabled = true
|
||||
|
||||
[node name="Receive" type="Area2D" parent="."]
|
||||
modulate = Color( 0.658824, 0.984314, 0.227451, 1 )
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="Receive"]
|
||||
modulate = Color( 0.439216, 0.427451, 0.427451, 1 )
|
||||
shape = SubResource( 4 )
|
||||
[connection signal="body_entered" from="View" to="." method="_on_Area2D_body_entered"]
|
||||
[connection signal="body_exited" from="View" to="." method="_on_Area2D_body_exited"]
|
||||
Reference in New Issue
Block a user