add bobbycar
This commit is contained in:
parent
2211a95700
commit
1a6343ff29
7 changed files with 76 additions and 7 deletions
|
@ -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_node.gd" id="1_0tin3"]
|
||||||
[ext_resource type="Script" path="res://scripts/car.gd" id="1_i5tet"]
|
[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://c5rlo1fhm3bl4" path="res://sprites/bobbycar_features.png" id="3_k2wmt"]
|
||||||
[ext_resource type="Texture2D" uid="uid://e5aeyl47wi8p" path="res://sprites/car_body.png" id="4_lps13"]
|
[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/tiretrails.gd" id="5_4geqi"]
|
||||||
[ext_resource type="Script" path="res://scripts/label_round.gd" id="5_vheit"]
|
[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"]
|
[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"]
|
[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"]
|
[sub_resource type="CapsuleShape2D" id="CapsuleShape2D_bj1hp"]
|
||||||
radius = 8.0
|
radius = 9.0
|
||||||
height = 34.0
|
height = 34.0
|
||||||
|
|
||||||
[sub_resource type="Curve" id="Curve_qs34t"]
|
[sub_resource type="Curve" id="Curve_qs34t"]
|
||||||
|
@ -142,13 +142,15 @@ script = ExtResource("1_i5tet")
|
||||||
|
|
||||||
[node name="sprite_features" type="Sprite2D" parent="CharacterBody_Car"]
|
[node name="sprite_features" type="Sprite2D" parent="CharacterBody_Car"]
|
||||||
z_index = 10
|
z_index = 10
|
||||||
|
texture_filter = 1
|
||||||
scale = Vector2(0.5, 0.5)
|
scale = Vector2(0.5, 0.5)
|
||||||
texture = ExtResource("3_ts6mm")
|
texture = ExtResource("3_k2wmt")
|
||||||
|
|
||||||
[node name="sprite_body" type="Sprite2D" parent="CharacterBody_Car"]
|
[node name="sprite_body" type="Sprite2D" parent="CharacterBody_Car"]
|
||||||
z_index = 10
|
z_index = 10
|
||||||
|
texture_filter = 1
|
||||||
scale = Vector2(0.5, 0.5)
|
scale = Vector2(0.5, 0.5)
|
||||||
texture = ExtResource("4_lps13")
|
texture = ExtResource("4_2gwtk")
|
||||||
|
|
||||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody_Car"]
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="CharacterBody_Car"]
|
||||||
rotation = -1.57079
|
rotation = -1.57079
|
||||||
|
|
|
@ -81,13 +81,12 @@ class Player:
|
||||||
inputkey=key
|
inputkey=key
|
||||||
colori=pcolori
|
colori=pcolori
|
||||||
var sat = 1.0
|
var sat = 1.0
|
||||||
var val = 0.7
|
var val = 1.0 #1 is medium gray
|
||||||
|
|
||||||
if colori<0:
|
if colori<0:
|
||||||
color=Color.from_hsv(randf_range(0.0,1.0), sat,val,1.0)
|
color=Color.from_hsv(randf_range(0.0,1.0), sat,val,1.0)
|
||||||
else:
|
else:
|
||||||
color=Color.from_hsv(fmod(0.3*colori,1.0), sat,val,1.0)
|
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():
|
func startGame():
|
||||||
|
|
BIN
sprites/bobbycar.xcf
Normal file
BIN
sprites/bobbycar.xcf
Normal file
Binary file not shown.
BIN
sprites/bobbycar_body.png
Normal file
BIN
sprites/bobbycar_body.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
34
sprites/bobbycar_body.png.import
Normal file
34
sprites/bobbycar_body.png.import
Normal file
|
@ -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
|
BIN
sprites/bobbycar_features.png
Normal file
BIN
sprites/bobbycar_features.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
34
sprites/bobbycar_features.png.import
Normal file
34
sprites/bobbycar_features.png.import
Normal file
|
@ -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
|
Loading…
Reference in a new issue