fixed all my bugs and did grenades and animations
This commit is contained in:
1 parent
5d34946622
commit
51803d0406
14 files changed
+370
-44
No files matched your search
@@ -1,12 +1,174 @@
|
||||
[gd_scene format=3 uid="uid://d4nnj62h6fjcq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://f42eg5a0cckl" path="res://scripts/player_guy.gd" id="1_j5628"]
|
||||
[ext_resource type="Texture2D" uid="uid://p72rbg7thsvi" path="res://assets/graphics/player/idle/Player Idle 48x48.png" id="2_qug0s"]
|
||||
[ext_resource type="Texture2D" uid="uid://b74hvan7k63nk" path="res://assets/graphics/player/run/player run 48x48.png" id="3_gd05a"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_80nbo"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_gd05a"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_86iwx"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_318mt"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_b8c3x"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_ogaei"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mjxbh"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pykq2"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7y57j"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1hjxj"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(384, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0npi7"]
|
||||
atlas = ExtResource("2_qug0s")
|
||||
region = Rect2(432, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_mu2pl"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(0, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_joior"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(48, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_kvipg"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(96, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_wpf5e"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(144, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yb3qs"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(192, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_js44f"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(240, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_rs0n8"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(288, 0, 48, 48)
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_022hi"]
|
||||
atlas = ExtResource("3_gd05a")
|
||||
region = Rect2(336, 0, 48, 48)
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_mu2pl"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_gd05a")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_86iwx")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_318mt")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_b8c3x")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_ogaei")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mjxbh")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pykq2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7y57j")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1hjxj")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0npi7")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"idle",
|
||||
"speed": 12.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_mu2pl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_joior")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_kvipg")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_wpf5e")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yb3qs")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_js44f")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_rs0n8")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_022hi")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"run",
|
||||
"speed": 12.0
|
||||
}]
|
||||
|
||||
[node name="CharacterBody2D" type="CharacterBody2D" unique_id=44928680]
|
||||
position = Vector2(-33, 19)
|
||||
script = ExtResource("1_j5628")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=547069058]
|
||||
shape = SubResource("CapsuleShape2D_80nbo")
|
||||
|
||||
[node name="RightCast" type="RayCast2D" parent="." unique_id=1862370013]
|
||||
target_position = Vector2(34, 1)
|
||||
|
||||
[node name="LeftCast" type="RayCast2D" parent="." unique_id=2108646942]
|
||||
target_position = Vector2(-39, 1)
|
||||
|
||||
[node name="rightspawn" type="Marker2D" parent="." unique_id=1690283250]
|
||||
position = Vector2(18, -8)
|
||||
|
||||
[node name="leftspawn" type="Marker2D" parent="." unique_id=1655353827]
|
||||
position = Vector2(-20, -8)
|
||||
|
||||
[node name="player graphic" type="AnimatedSprite2D" parent="." unique_id=1007399411]
|
||||
texture_filter = 1
|
||||
position = Vector2(2, -26)
|
||||
scale = Vector2(2.5208335, 2.3541667)
|
||||
sprite_frames = SubResource("SpriteFrames_mu2pl")
|
||||
animation = &"run"
|
||||
autoplay = "idle"
|
||||
Reference in new issue
Block a user