diff --git a/scenes/car.tscn b/scenes/car.tscn index 0568a85..e70bf49 100644 --- a/scenes/car.tscn +++ b/scenes/car.tscn @@ -2,8 +2,8 @@ [ext_resource type="Script" path="res://scripts/car_node.gd" id="1_0tin3"] [ext_resource type="Script" path="res://scripts/car.gd" id="1_i5tet"] -[ext_resource type="Texture2D" uid="uid://mqdujngircok" path="res://sprites/car_features.png" id="3_ts6mm"] -[ext_resource type="Texture2D" uid="uid://e5aeyl47wi8p" path="res://sprites/car_body.png" id="4_lps13"] +[ext_resource type="Texture2D" uid="uid://c5rlo1fhm3bl4" path="res://sprites/bobbycar_features.png" id="3_k2wmt"] +[ext_resource type="Texture2D" uid="uid://dojj5iqges76q" path="res://sprites/bobbycar_body.png" id="4_2gwtk"] [ext_resource type="Script" path="res://scripts/tiretrails.gd" id="5_4geqi"] [ext_resource type="Script" path="res://scripts/label_round.gd" id="5_vheit"] [ext_resource type="PackedScene" uid="uid://dilif5od0ipli" path="res://scenes/burnout.tscn" id="6_nxxrr"] @@ -43,7 +43,7 @@ [ext_resource type="AudioStream" uid="uid://c86arger0uqdn" path="res://sounds/sliding_tires/sliding_9.mp3" id="39_4qf5g"] [sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bj1hp"] -radius = 8.0 +radius = 9.0 height = 34.0 [sub_resource type="Curve" id="Curve_qs34t"] @@ -142,13 +142,15 @@ script = ExtResource("1_i5tet") [node name="sprite_features" type="Sprite2D" parent="CharacterBody_Car"] z_index = 10 +texture_filter = 1 scale = Vector2(0.5, 0.5) -texture = ExtResource("3_ts6mm") +texture = ExtResource("3_k2wmt") [node name="sprite_body" type="Sprite2D" parent="CharacterBody_Car"] z_index = 10 +texture_filter = 1 scale = Vector2(0.5, 0.5) -texture = ExtResource("4_lps13") +texture = ExtResource("4_2gwtk") [node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody_Car"] rotation = -1.57079 diff --git a/scripts/gamestate.gd b/scripts/gamestate.gd index aeb1bff..20cb5c8 100644 --- a/scripts/gamestate.gd +++ b/scripts/gamestate.gd @@ -81,13 +81,12 @@ class Player: inputkey=key colori=pcolori var sat = 1.0 - var val = 0.7 + var val = 1.0 #1 is medium gray if colori<0: color=Color.from_hsv(randf_range(0.0,1.0), sat,val,1.0) else: color=Color.from_hsv(fmod(0.3*colori,1.0), sat,val,1.0) - print("i is "+str(colori)+" h="+str(fmod(0.3*colori,1.0))+" assigned color "+str(color)) func startGame(): diff --git a/sprites/bobbycar.xcf b/sprites/bobbycar.xcf new file mode 100644 index 0000000..e579c7e Binary files /dev/null and b/sprites/bobbycar.xcf differ diff --git a/sprites/bobbycar_body.png b/sprites/bobbycar_body.png new file mode 100644 index 0000000..95051e3 Binary files /dev/null and b/sprites/bobbycar_body.png differ diff --git a/sprites/bobbycar_body.png.import b/sprites/bobbycar_body.png.import new file mode 100644 index 0000000..336bfc0 --- /dev/null +++ b/sprites/bobbycar_body.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dojj5iqges76q" +path="res://.godot/imported/bobbycar_body.png-deb1c5f7ee50c5db4bca95892fd75dfb.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprites/bobbycar_body.png" +dest_files=["res://.godot/imported/bobbycar_body.png-deb1c5f7ee50c5db4bca95892fd75dfb.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/sprites/bobbycar_features.png b/sprites/bobbycar_features.png new file mode 100644 index 0000000..52a47f4 Binary files /dev/null and b/sprites/bobbycar_features.png differ diff --git a/sprites/bobbycar_features.png.import b/sprites/bobbycar_features.png.import new file mode 100644 index 0000000..4b44f2a --- /dev/null +++ b/sprites/bobbycar_features.png.import @@ -0,0 +1,34 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c5rlo1fhm3bl4" +path="res://.godot/imported/bobbycar_features.png-84ad9b1fa5b03c387a42969b62416b58.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprites/bobbycar_features.png" +dest_files=["res://.godot/imported/bobbycar_features.png-84ad9b1fa5b03c387a42969b62416b58.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1