You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
995 B
32 lines
995 B
3 years ago
|
[gd_scene load_steps=8 format=2]
|
||
|
|
||
|
[ext_resource path="res://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]
|
||
|
|
||
|
[sub_resource type="SpriteFrames" id=1]
|
||
|
animations = [ {
|
||
|
"frames": [ ExtResource( 4 ), ExtResource( 2 ), ExtResource( 3 ), ExtResource( 5 ) ],
|
||
|
"loop": true,
|
||
|
"name": "default",
|
||
|
"speed": 5.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 )
|
||
|
|
||
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||
|
position = Vector2( 0, 3 )
|
||
|
rotation = 1.5708
|
||
|
shape = SubResource( 2 )
|