diff --git a/Scenes/Car.tscn b/Scenes/Car.tscn index c716ef4..5c8020e 100644 --- a/Scenes/Car.tscn +++ b/Scenes/Car.tscn @@ -5,8 +5,8 @@ [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] +[ext_resource path="res://Sprites/alistair/car-fulla.png" type="Texture" id=8] +[ext_resource path="res://Sprites/alistair/car-full-1a.png" type="Texture" id=9] [sub_resource type="SpriteFrames" id=1] animations = [ { @@ -15,10 +15,10 @@ animations = [ { "name": "default", "speed": 5.0 }, { -"frames": [ ExtResource( 4 ), ExtResource( 2 ), ExtResource( 7 ), ExtResource( 6 ) ], +"frames": [ ExtResource( 8 ), ExtResource( 9 ), ExtResource( 3 ), ExtResource( 5 ) ], "loop": true, "name": "Accelerate", -"speed": 20.0 +"speed": 12.0 } ] [sub_resource type="CapsuleShape2D" id=2] diff --git a/Scripts/Car.gd b/Scripts/Car.gd index eea01ff..1e42593 100644 --- a/Scripts/Car.gd +++ b/Scripts/Car.gd @@ -25,16 +25,16 @@ func handle_movements(): # inputs if Input.is_action_pressed("move_up"): - vel.y = -1 + vel.y = -0.2 if Input.is_action_pressed("move_down"): - vel.y = 1 + vel.y = 0.2 if Input.is_action_pressed("move_left"): - moveSpeed += 5 + moveSpeed += moveSpeed/100 else: - moveSpeed -= 1 + moveSpeed -= moveSpeed/200 if Input.is_action_pressed("move_right"): moveSpeed -= 5 - moveSpeed = clamp(moveSpeed, 280, 500) + moveSpeed = clamp(moveSpeed, 280, 840) # move the player move_and_slide(vel * moveSpeed, Vector2.ZERO) diff --git a/Sprites/alistair/car-full-1.png b/Sprites/alistair/car-full-1.png index 751708d..d53a6c7 100644 Binary files a/Sprites/alistair/car-full-1.png and b/Sprites/alistair/car-full-1.png differ diff --git a/Sprites/alistair/car-full-1a.png b/Sprites/alistair/car-full-1a.png new file mode 100644 index 0000000..17de1e4 Binary files /dev/null and b/Sprites/alistair/car-full-1a.png differ diff --git a/Sprites/alistair/car-full-1a.png.import b/Sprites/alistair/car-full-1a.png.import new file mode 100644 index 0000000..79af666 --- /dev/null +++ b/Sprites/alistair/car-full-1a.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/car-full-1a.png-9b2367e0e0aa7991883e975458f2991e.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/alistair/car-full-1a.png" +dest_files=[ "res://.import/car-full-1a.png-9b2367e0e0aa7991883e975458f2991e.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0 diff --git a/Sprites/alistair/car-full-2.png b/Sprites/alistair/car-full-2.png index 5f4b1b4..23491a9 100644 Binary files a/Sprites/alistair/car-full-2.png and b/Sprites/alistair/car-full-2.png differ diff --git a/Sprites/alistair/car-full-3.png b/Sprites/alistair/car-full-3.png index 6eea821..bc97925 100644 Binary files a/Sprites/alistair/car-full-3.png and b/Sprites/alistair/car-full-3.png differ diff --git a/Sprites/alistair/car-full.png b/Sprites/alistair/car-full.png index aa7bc2f..45e4958 100644 Binary files a/Sprites/alistair/car-full.png and b/Sprites/alistair/car-full.png differ diff --git a/Sprites/alistair/car-fulla.png b/Sprites/alistair/car-fulla.png new file mode 100644 index 0000000..a8ceb6a Binary files /dev/null and b/Sprites/alistair/car-fulla.png differ diff --git a/Sprites/alistair/car-fulla.png.import b/Sprites/alistair/car-fulla.png.import new file mode 100644 index 0000000..344e601 --- /dev/null +++ b/Sprites/alistair/car-fulla.png.import @@ -0,0 +1,35 @@ +[remap] + +importer="texture" +type="StreamTexture" +path="res://.import/car-fulla.png-778856aaeb965fd406219d8dc5da0f94.stex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://Sprites/alistair/car-fulla.png" +dest_files=[ "res://.import/car-fulla.png-778856aaeb965fd406219d8dc5da0f94.stex" ] + +[params] + +compress/mode=0 +compress/lossy_quality=0.7 +compress/hdr_mode=0 +compress/bptc_ldr=0 +compress/normal_map=0 +flags/repeat=0 +flags/filter=true +flags/mipmaps=false +flags/anisotropic=false +flags/srgb=2 +process/fix_alpha_border=true +process/premult_alpha=false +process/HDR_as_SRGB=false +process/invert_color=false +process/normal_map_invert_y=false +stream=false +size_limit=0 +detect_3d=true +svg/scale=1.0