|
|
|
[gd_scene load_steps=10 format=2]
|
|
|
|
|
|
|
|
[ext_resource path="res://Scripts/Car.gd" type="Script" id=1]
|
|
|
|
[ext_resource path="res://Sprites/alistair/car-full-1.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://Sprites/alistair/car-full-2.png" type="Texture" id=3]
|
|
|
|
[ext_resource path="res://Sprites/alistair/car-full.png" type="Texture" id=4]
|
|
|
|
[ext_resource path="res://Sprites/alistair/car-full-3.png" type="Texture" id=5]
|
|
|
|
[ext_resource path="res://Sprites/alistair/car-full-3a.png" type="Texture" id=6]
|
|
|
|
[ext_resource path="res://Sprites/alistair/car-full-2a.png" type="Texture" id=7]
|
|
|
|
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
|
|
animations = [ {
|
|
|
|
"frames": [ ExtResource( 4 ), ExtResource( 2 ), ExtResource( 3 ), ExtResource( 5 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "default",
|
|
|
|
"speed": 5.0
|
|
|
|
}, {
|
|
|
|
"frames": [ ExtResource( 4 ), ExtResource( 2 ), ExtResource( 7 ), ExtResource( 6 ) ],
|
|
|
|
"loop": true,
|
|
|
|
"name": "Accelerate",
|
|
|
|
"speed": 20.0
|
|
|
|
} ]
|
|
|
|
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
|
|
|
radius = 26.0
|
|
|
|
height = 236.0
|
|
|
|
|
|
|
|
[node name="Car" type="KinematicBody2D"]
|
|
|
|
script = ExtResource( 1 )
|
|
|
|
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
|
|
position = Vector2( 0, -42 )
|
|
|
|
frames = SubResource( 1 )
|
|
|
|
animation = "Accelerate"
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
position = Vector2( 0, 3 )
|
|
|
|
rotation = 1.5708
|
|
|
|
shape = SubResource( 2 )
|