Les voitures! Des carrosses à escence.
Et bien les voitures vois-tu, maintenant elles utilisent aussi l'animation tree, le state machine of the future et les super autres magiqueries. Elles bougent grace à un Path2D qui est suivit par un PathFollow2D qui leur sert de lapin. Elles suivent le lapin, sans cesse et sans cesse. Elles sont sage.
This commit is contained in:
@@ -1,241 +1,583 @@
|
||||
[gd_scene load_steps=33 format=3 uid="uid://bt1p311rn1h6q"]
|
||||
|
||||
[ext_resource type="Script" path="res://vehicules/car.gd" id="1_vkq5y"]
|
||||
[ext_resource type="Texture2D" uid="uid://55dsls4caujg" path="res://assest/vehicules/Car_classic_red_complete_48x48.png" id="2_ahai6"]
|
||||
[ext_resource type="Texture2D" uid="uid://c5dis1wikcqws" path="res://assest/vehicules/Car_classic_red_complete_48x48_left.png" id="3_tnfoa"]
|
||||
[ext_resource type="Texture2D" uid="uid://dq81e78eaild8" path="res://assest/vehicules/Car_classic_red_48x48.png" id="4_0kman"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8fi8c"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(3408, 222, 96, 210)
|
||||
[sub_resource type="Animation" id="Animation_24r8n"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [0]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_tgw3a"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(3504, 222, 96, 210)
|
||||
[sub_resource type="Animation" id="Animation_ny3my"]
|
||||
resource_name = "driving_down"
|
||||
length = 0.6
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/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),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [18, 19, 20, 21, 22, 23]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_dj0xl"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(3600, 222, 96, 210)
|
||||
[sub_resource type="Animation" id="Animation_o7myv"]
|
||||
resource_name = "driving_left"
|
||||
length = 0.6
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/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),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [12, 13, 14, 15, 16, 17]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_omrb2"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(3696, 222, 96, 210)
|
||||
[sub_resource type="Animation" id="Animation_jej8v"]
|
||||
resource_name = "driving_right"
|
||||
length = 0.6
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/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),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [0, 1, 2, 3, 4, 5]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_l4q1w"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(3792, 222, 96, 210)
|
||||
[sub_resource type="Animation" id="Animation_ns0lb"]
|
||||
resource_name = "driving_up"
|
||||
length = 0.6
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/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),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [6, 7, 8, 9, 10, 11]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qjaw0"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(3888, 222, 96, 210)
|
||||
[sub_resource type="Animation" id="Animation_uyd0m"]
|
||||
resource_name = "idling_down"
|
||||
length = 0.1
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [47]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cjmr1"]
|
||||
atlas = ExtResource("3_tnfoa")
|
||||
region = Rect2(0, 0, 240, 144)
|
||||
[sub_resource type="Animation" id="Animation_k8xkk"]
|
||||
resource_name = "idling_left"
|
||||
length = 0.1
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [46]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_0i1ge"]
|
||||
atlas = ExtResource("3_tnfoa")
|
||||
region = Rect2(240, 0, 240, 144)
|
||||
[sub_resource type="Animation" id="Animation_vk5cn"]
|
||||
resource_name = "idling_right"
|
||||
length = 0.1
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [34]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lss5r"]
|
||||
atlas = ExtResource("3_tnfoa")
|
||||
region = Rect2(480, 0, 240, 144)
|
||||
[sub_resource type="Animation" id="Animation_0uy2s"]
|
||||
resource_name = "opening_door_left"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/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, 0.7, 0.8, 0.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [36, 37, 38, 39, 40, 41, 42, 43, 44, 45]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_8ccj1"]
|
||||
atlas = ExtResource("3_tnfoa")
|
||||
region = Rect2(720, 0, 240, 144)
|
||||
[sub_resource type="Animation" id="Animation_goslp"]
|
||||
resource_name = "opening_door_right"
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/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, 0.7, 0.8, 0.9),
|
||||
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
||||
"update": 1,
|
||||
"values": [24, 25, 26, 27, 28, 29, 30, 31, 32, 33]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_lrp4n"]
|
||||
atlas = ExtResource("3_tnfoa")
|
||||
region = Rect2(960, 0, 240, 144)
|
||||
[sub_resource type="Animation" id="Animation_xch04"]
|
||||
resource_name = "idling_up"
|
||||
length = 0.1
|
||||
loop_mode = 1
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath("Car/Sprite2D:frame")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [35]
|
||||
}
|
||||
tracks/1/type = "value"
|
||||
tracks/1/imported = false
|
||||
tracks/1/enabled = true
|
||||
tracks/1/path = NodePath("Car/CollisionHorizontal:disabled")
|
||||
tracks/1/interp = 1
|
||||
tracks/1/loop_wrap = true
|
||||
tracks/1/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [true]
|
||||
}
|
||||
tracks/2/type = "value"
|
||||
tracks/2/imported = false
|
||||
tracks/2/enabled = true
|
||||
tracks/2/path = NodePath("Car/CollisionVertical:disabled")
|
||||
tracks/2/interp = 1
|
||||
tracks/2/loop_wrap = true
|
||||
tracks/2/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 1,
|
||||
"values": [false]
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_qnkpb"]
|
||||
atlas = ExtResource("3_tnfoa")
|
||||
region = Rect2(1200, 0, 240, 144)
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_10pc8"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_24r8n"),
|
||||
"driving_down": SubResource("Animation_ny3my"),
|
||||
"driving_left": SubResource("Animation_o7myv"),
|
||||
"driving_right": SubResource("Animation_jej8v"),
|
||||
"driving_up": SubResource("Animation_ns0lb"),
|
||||
"idling_down": SubResource("Animation_uyd0m"),
|
||||
"idling_left": SubResource("Animation_k8xkk"),
|
||||
"idling_right": SubResource("Animation_vk5cn"),
|
||||
"idling_up": SubResource("Animation_xch04"),
|
||||
"opening_door_left": SubResource("Animation_0uy2s"),
|
||||
"opening_door_right": SubResource("Animation_goslp")
|
||||
}
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_n03o5"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(0, 192, 240, 144)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_btgy7"]
|
||||
animation = &"driving_left"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3k4i1"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(240, 192, 240, 144)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_d53q5"]
|
||||
animation = &"driving_right"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_pg1lo"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(480, 192, 240, 144)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_22qxt"]
|
||||
animation = &"driving_up"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_3b1y7"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(720, 192, 240, 144)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_o21fb"]
|
||||
animation = &"driving_down"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_1jisb"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(960, 192, 240, 144)
|
||||
[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_6rjtg"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_btgy7")
|
||||
blend_point_0/pos = Vector2(-1, 0)
|
||||
blend_point_1/node = SubResource("AnimationNodeAnimation_d53q5")
|
||||
blend_point_1/pos = Vector2(1, 0)
|
||||
blend_point_2/node = SubResource("AnimationNodeAnimation_22qxt")
|
||||
blend_point_2/pos = Vector2(0, -1)
|
||||
blend_point_3/node = SubResource("AnimationNodeAnimation_o21fb")
|
||||
blend_point_3/pos = Vector2(0, 1)
|
||||
blend_mode = 2
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_4lngy"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(1200, 192, 240, 144)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_3fbcc"]
|
||||
animation = &"idling_left"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_xng4i"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(1440, 210, 96, 210)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_11mhe"]
|
||||
animation = &"idling_right"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_yy3vy"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(1536, 210, 96, 210)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_6x8m6"]
|
||||
animation = &"idling_down"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_cax1g"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(1632, 210, 96, 210)
|
||||
[sub_resource type="AnimationNodeAnimation" id="AnimationNodeAnimation_ogtbq"]
|
||||
animation = &"idling_up"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_6dv7n"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(1728, 210, 96, 210)
|
||||
[sub_resource type="AnimationNodeBlendSpace2D" id="AnimationNodeBlendSpace2D_csi6s"]
|
||||
blend_point_0/node = SubResource("AnimationNodeAnimation_3fbcc")
|
||||
blend_point_0/pos = Vector2(-1, 0)
|
||||
blend_point_1/node = SubResource("AnimationNodeAnimation_11mhe")
|
||||
blend_point_1/pos = Vector2(1, 0)
|
||||
blend_point_2/node = SubResource("AnimationNodeAnimation_6x8m6")
|
||||
blend_point_2/pos = Vector2(0, 1)
|
||||
blend_point_3/node = SubResource("AnimationNodeAnimation_ogtbq")
|
||||
blend_point_3/pos = Vector2(0, -1)
|
||||
blend_mode = 2
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_7f8f4"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(1824, 210, 96, 210)
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_4uk5k"]
|
||||
advance_mode = 2
|
||||
advance_expression = "velocity"
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_vy1dr"]
|
||||
atlas = ExtResource("2_ahai6")
|
||||
region = Rect2(1920, 210, 96, 210)
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_3q86p"]
|
||||
advance_mode = 2
|
||||
advance_expression = "!velocity"
|
||||
|
||||
[sub_resource type="SpriteFrames" id="SpriteFrames_77j28"]
|
||||
animations = [{
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8fi8c")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_tgw3a")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_dj0xl")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_omrb2")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_l4q1w")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qjaw0")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"driving_down",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cjmr1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_0i1ge")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lss5r")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_8ccj1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_lrp4n")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_qnkpb")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"driving_left",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_n03o5")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3k4i1")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_pg1lo")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_3b1y7")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_1jisb")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_4lngy")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"driving_right",
|
||||
"speed": 5.0
|
||||
}, {
|
||||
"frames": [{
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_xng4i")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_yy3vy")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_cax1g")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_6dv7n")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_7f8f4")
|
||||
}, {
|
||||
"duration": 1.0,
|
||||
"texture": SubResource("AtlasTexture_vy1dr")
|
||||
}],
|
||||
"loop": true,
|
||||
"name": &"driving_up",
|
||||
"speed": 5.0
|
||||
}]
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_0fk7h"]
|
||||
advance_mode = 2
|
||||
advance_expression = "!velocity"
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_5yhvy"]
|
||||
radius = 35.5
|
||||
height = 158.0
|
||||
[sub_resource type="AnimationNodeStateMachineTransition" id="AnimationNodeStateMachineTransition_6jgtk"]
|
||||
advance_mode = 2
|
||||
advance_expression = "velocity"
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bevht"]
|
||||
radius = 38.0026
|
||||
height = 150.043
|
||||
[sub_resource type="AnimationNodeStateMachine" id="AnimationNodeStateMachine_tnex5"]
|
||||
states/Start/position = Vector2(192, 89.5556)
|
||||
states/driving/node = SubResource("AnimationNodeBlendSpace2D_6rjtg")
|
||||
states/driving/position = Vector2(460.667, -34.6667)
|
||||
states/idling/node = SubResource("AnimationNodeBlendSpace2D_csi6s")
|
||||
states/idling/position = Vector2(459.111, 88.6667)
|
||||
transitions = ["Start", "driving", SubResource("AnimationNodeStateMachineTransition_4uk5k"), "Start", "idling", SubResource("AnimationNodeStateMachineTransition_3q86p"), "driving", "idling", SubResource("AnimationNodeStateMachineTransition_0fk7h"), "idling", "driving", SubResource("AnimationNodeStateMachineTransition_6jgtk")]
|
||||
graph_offset = Vector2(80, -182)
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_w52g8"]
|
||||
radius = 29.0752
|
||||
height = 172.0
|
||||
[sub_resource type="AnimationNodeTimeScale" id="AnimationNodeTimeScale_5fwej"]
|
||||
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_j5vcu"]
|
||||
radius = 33.0
|
||||
height = 174.0
|
||||
[sub_resource type="AnimationNodeBlendTree" id="AnimationNodeBlendTree_q5j17"]
|
||||
graph_offset = Vector2(-249.333, -55.3333)
|
||||
nodes/CarStates/node = SubResource("AnimationNodeStateMachine_tnex5")
|
||||
nodes/CarStates/position = Vector2(-133.333, 173.333)
|
||||
nodes/TimeScale/node = SubResource("AnimationNodeTimeScale_5fwej")
|
||||
nodes/TimeScale/position = Vector2(120, 120)
|
||||
node_connections = [&"TimeScale", 0, &"CarStates", &"output", 0, &"TimeScale"]
|
||||
|
||||
[node name="Area2D" type="Area2D"]
|
||||
position = Vector2(-664, 181)
|
||||
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_l8rwt"]
|
||||
radius = 31.0
|
||||
height = 160.0
|
||||
|
||||
[node name="Car" type="CharacterBody2D"]
|
||||
motion_mode = 1
|
||||
script = ExtResource("1_vkq5y")
|
||||
|
||||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
rotation = -0.00268924
|
||||
sprite_frames = SubResource("SpriteFrames_77j28")
|
||||
animation = &"driving_right"
|
||||
autoplay = "driving_right"
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
texture = ExtResource("4_0kman")
|
||||
hframes = 12
|
||||
vframes = 4
|
||||
|
||||
[node name="shapeDown" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(1.5, 16)
|
||||
shape = SubResource("CapsuleShape2D_5yhvy")
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
root_node = NodePath("../..")
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_10pc8")
|
||||
}
|
||||
|
||||
[node name="shapeUp" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(1, -20)
|
||||
rotation = -0.00268924
|
||||
shape = SubResource("CapsuleShape2D_bevht")
|
||||
[node name="AnimationTree" type="AnimationTree" parent="."]
|
||||
root_node = NodePath("../..")
|
||||
tree_root = SubResource("AnimationNodeBlendTree_q5j17")
|
||||
advance_expression_base_node = NodePath("..")
|
||||
anim_player = NodePath("../AnimationPlayer")
|
||||
parameters/CarStates/driving/blend_position = Vector2(0.0425786, -0.23119)
|
||||
parameters/CarStates/idling/blend_position = Vector2(-0.000397921, -0.120715)
|
||||
parameters/TimeScale/scale = 1.0
|
||||
|
||||
[node name="shapeLeft" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-29, 29)
|
||||
[node name="CollisionHorizontal" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(-4, 28)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_w52g8")
|
||||
shape = SubResource("CapsuleShape2D_l8rwt")
|
||||
|
||||
[node name="shapeRight" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(28, 27)
|
||||
rotation = 1.5708
|
||||
shape = SubResource("CapsuleShape2D_j5vcu")
|
||||
[node name="CollisionVertical" type="CollisionShape2D" parent="."]
|
||||
position = Vector2(1, 2)
|
||||
rotation = -3.14159
|
||||
shape = SubResource("CapsuleShape2D_l8rwt")
|
||||
|
||||
Reference in New Issue
Block a user