Initial commit
Un bout de jeu, qui fait pas grand chose mais on progresse.
This commit is contained in:
44
animations/hero/hero_player.tscn
Normal file
44
animations/hero/hero_player.tscn
Normal file
@@ -0,0 +1,44 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://baywvs4i4flug"]
|
||||
|
||||
[sub_resource type="Animation" id="Animation_ox0ew"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [1]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_jdm18"]
|
||||
resource_name = "idle_right"
|
||||
length = 0.7
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [56, 57, 58, 59, 60, 60, 61]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_l2iau"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_ox0ew"),
|
||||
"idle_right": SubResource("Animation_jdm18")
|
||||
}
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer"]
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_l2iau")
|
||||
}
|
||||
24
animations/hero/player_walking_blend.tres
Normal file
24
animations/hero/player_walking_blend.tres
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_resource type="AnimationNodeBlendSpace2D" load_steps=5 format=3 uid="uid://cy73mgvdr54rh"]
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_uayji"]
|
||||
animation = &"walking_left"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_gokxj"]
|
||||
animation = &"walking_right"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ej6m1"]
|
||||
animation = &"walking_up"
|
||||
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_tuibh"]
|
||||
animation = &"walking_down"
|
||||
|
||||
[resource]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_uayji")
|
||||
blend_point_0/pos = Vector2(-1, 0)
|
||||
blend_point_1/node = SubResource("AnimationNodeAnimation_gokxj")
|
||||
blend_point_1/pos = Vector2(1, 0)
|
||||
blend_point_2/node = SubResource("AnimationNodeAnimation_ej6m1")
|
||||
blend_point_2/pos = Vector2(0, -1)
|
||||
blend_point_3/node = SubResource("AnimationNodeAnimation_tuibh")
|
||||
blend_point_3/pos = Vector2(0, 1)
|
||||
blend_mode = 2
|
||||
9
animations/hero/sprite_2d.tscn
Normal file
9
animations/hero/sprite_2d.tscn
Normal file
@@ -0,0 +1,9 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://cjp5bk3jyul4f"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://bsmk7gmdxhn5p" path="res://assest/persos/hero.png" id="1_8t3lc"]
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D"]
|
||||
texture = ExtResource("1_8t3lc")
|
||||
hframes = 56
|
||||
vframes = 20
|
||||
frame = 59
|
||||
Reference in New Issue
Block a user