57 lines
2.5 KiB
Text
57 lines
2.5 KiB
Text
[gd_scene load_steps=16 format=2]
|
|
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run7.png" type="Texture" id=1]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run5.png" type="Texture" id=2]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run6.png" type="Texture" id=3]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run3.png" type="Texture" id=4]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_jump2.png" type="Texture" id=5]
|
|
[ext_resource path="res://mini-game/scripts/player2.gd" type="Script" id=6]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run0.png" type="Texture" id=7]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run4.png" type="Texture" id=8]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run2.png" type="Texture" id=9]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_run1.png" type="Texture" id=10]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_jump1.png" type="Texture" id=11]
|
|
[ext_resource path="res://mini-game/ressources/sprites/player/dino/dino_jump0.png" type="Texture" id=12]
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 7 ), ExtResource( 10 ), ExtResource( 9 ), ExtResource( 4 ), ExtResource( 8 ), ExtResource( 2 ), ExtResource( 3 ), ExtResource( 1 ) ],
|
|
"loop": true,
|
|
"name": "run",
|
|
"speed": 5.0
|
|
}, {
|
|
"frames": [ ExtResource( 12 ), ExtResource( 11 ), ExtResource( 5 ) ],
|
|
"loop": true,
|
|
"name": "jump",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
extents = Vector2( 4.46927, 8.75317 )
|
|
|
|
[sub_resource type="RectangleShape2D" id=3]
|
|
extents = Vector2( 7.82863, 6.33675 )
|
|
|
|
[node name="player2" type="KinematicBody2D"]
|
|
scale = Vector2( 10, 10 )
|
|
script = ExtResource( 6 )
|
|
jump_vitesse = 1000.0
|
|
gravite = 40.0
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
position = Vector2( -0.0702338, 0.280932 )
|
|
frames = SubResource( 1 )
|
|
animation = "run"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 0, 0.471936 )
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="Area2D" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
|
|
position = Vector2( -0.0400658, 9.23466 )
|
|
scale = Vector2( 0.609429, 0.281311 )
|
|
shape = SubResource( 3 )
|
|
[connection signal="body_entered" from="Area2D" to="." method="_on_Area2D_body_entered"]
|
|
[connection signal="body_exited" from="Area2D" to="." method="_on_Area2D_body_exited"]
|