cambey: rajout du personnage

Pour l'instant il ne fait rien tout seul mais on pourra le coder dans le
futur.
This commit is contained in:
Thomas Lavocat
2023-06-04 19:36:18 +02:00
parent e7baae8e9c
commit 6cf80d0a86
2 changed files with 118 additions and 0 deletions

84
caracters/cambey.tscn Normal file
View File

@@ -0,0 +1,84 @@
[gd_scene load_steps=11 format=3 uid="uid://6arjqbiqy20x"]
[ext_resource type="Texture2D" uid="uid://mm7s6bfxa4r1" path="res://sprite/camby_walking.png" id="1_2qg54"]
[sub_resource type="AtlasTexture" id="AtlasTexture_cuo84"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_du415"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 0, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_xhb16"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 24, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_egt3i"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 48, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_ww6mn"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 72, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_kkdpt"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 96, 24, 24)
[sub_resource type="AtlasTexture" id="AtlasTexture_2h0gi"]
atlas = ExtResource("1_2qg54")
region = Rect2(0, 120, 24, 24)
[sub_resource type="SpriteFrames" id="SpriteFrames_06qoc"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_cuo84")
}],
"loop": true,
"name": &"idle",
"speed": 1.0
}, {
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_du415")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_xhb16")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_egt3i")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ww6mn")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_kkdpt")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_2h0gi")
}],
"loop": true,
"name": &"walking",
"speed": 10.0
}]
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_pgu85"]
radius = 6.0
height = 16.0
[node name="Enemi" type="Node2D"]
[node name="CharacterBody2D" type="CharacterBody2D" parent="."]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="CharacterBody2D"]
sprite_frames = SubResource("SpriteFrames_06qoc")
animation = &"walking"
autoplay = "idle"
frame = 2
frame_progress = 0.266815
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody2D"]
position = Vector2(0, 2)
shape = SubResource("CapsuleShape2D_pgu85")

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://mm7s6bfxa4r1"
path="res://.godot/imported/camby_walking.png-8d532908ad10405e69397d402b0afbec.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://sprite/camby_walking.png"
dest_files=["res://.godot/imported/camby_walking.png-8d532908ad10405e69397d402b0afbec.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1