This commit is contained in:
2023-05-14 21:37:20 +02:00
parent 20b1ccde09
commit 22df1ac718
14 changed files with 535 additions and 7 deletions

91
godot/kart/entry.tscn Normal file
View File

@@ -0,0 +1,91 @@
[gd_scene load_steps=5 format=3 uid="uid://4n26dt3e4pv3"]
[ext_resource type="Shader" path="res://kart/flag.gdshader" id="1_lbvg8"]
[ext_resource type="FontFile" uid="uid://b50bdb32aerbb" path="res://remakes/font/LondrinaSolid-Regular.otf" id="2_fj37l"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_y6o8u"]
shader = ExtResource("1_lbvg8")
shader_parameter/rotation = 2.2
shader_parameter/size = 160.0
shader_parameter/time_scale = 0.125
shader_parameter/wave_amount = 0.6
shader_parameter/wave_scale = 0.2
shader_parameter/color1 = Color(0.12549, 0.12549, 0.12549, 1)
shader_parameter/color2 = Color(1, 1, 1, 1)
[sub_resource type="Theme" id="Theme_ugqrn"]
[node name="Control" type="PanelContainer"]
material = SubResource("ShaderMaterial_y6o8u")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = SubResource("Theme_ugqrn")
[node name="Logo" type="Control" parent="."]
custom_minimum_size = Vector2(300, 200)
layout_mode = 2
[node name="Label" type="Label" parent="Logo"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -151.0
offset_right = 151.0
offset_bottom = 73.0
grow_horizontal = 2
theme_override_colors/font_color = Color(0.996078, 0.92549, 0.14902, 1)
theme_override_colors/font_outline_color = Color(0.776471, 0.215686, 0.14902, 1)
theme_override_constants/outline_size = 23
theme_override_fonts/font = ExtResource("2_fj37l")
theme_override_font_sizes/font_size = 60
text = "Moorhuhn"
horizontal_alignment = 1
uppercase = true
[node name="Label2" type="Label" parent="Logo/Label"]
layout_mode = 0
offset_top = 50.0
offset_right = 302.0
offset_bottom = 162.0
theme_override_colors/font_color = Color(0.894118, 0.133333, 0.0705882, 1)
theme_override_colors/font_outline_color = Color(1, 1, 1, 1)
theme_override_constants/outline_size = 15
theme_override_constants/line_spacing = -140
theme_override_fonts/font = ExtResource("2_fj37l")
theme_override_font_sizes/font_size = 97
text = "»KART«"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Label3" type="Label" parent="Logo/Label"]
layout_mode = 2
offset_left = 174.0
offset_top = 156.0
offset_right = 337.0
offset_bottom = 214.0
rotation = -0.338594
theme_override_colors/font_color = Color(0.913725, 0.945098, 0.952941, 1)
theme_override_colors/font_outline_color = Color(0, 0, 0, 1)
theme_override_constants/outline_size = 14
theme_override_fonts/font = ExtResource("2_fj37l")
theme_override_font_sizes/font_size = 48
text = "ULTIMATE"
horizontal_alignment = 1
vertical_alignment = 1
[node name="MarginContainer" type="MarginContainer" parent="."]
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="MarginContainer"]
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
alignment = 1
[node name="Button" type="Button" parent="MarginContainer/VBoxContainer"]
layout_mode = 2
text = "Start"

29
godot/kart/flag.gdshader Normal file
View File

@@ -0,0 +1,29 @@
shader_type canvas_item;
uniform float rotation: hint_range(0.0, 3.14156, 0.01) = 1.4;
uniform float size: hint_range(0.0, 1000.0, 1.0) = 40.0;
uniform float time_scale = 50.0;
uniform float wave_amount = 0.5;
uniform float wave_scale = 0.25;
uniform vec4 color1: source_color = vec4(0, 0, 0, 1);
uniform vec4 color2: source_color = vec4(1);
float aaStep(float compValue, float gradient){
float halfChange = fwidth(gradient) / 2.0;
//base the range of the inverse lerp on the change over one pixel
float lowerEdge = compValue - halfChange;
float upperEdge = compValue + halfChange;
//do the inverse interpolation
float stepped = (gradient - lowerEdge) / (upperEdge - lowerEdge);
stepped = clamp(stepped, 0.0, 1.0);
return stepped;
}
void fragment() {
vec2 pos = FRAGCOORD.xy;
pos.y += sin(pos.x / (size * wave_amount) + TIME * time_scale) * (wave_scale * size);
pos *= mat2(vec2(sin(rotation), -cos(rotation)), vec2(cos(rotation), sin(rotation)));
pos = abs(fract(pos / size) - 0.5);
COLOR = mix(color1, color2, aaStep(0.5, pos.x + pos.y));
}

View File

@@ -19,12 +19,6 @@ boot_splash/fullsize=false
boot_splash/use_filter=false
config/icon="res://icon.png"
[display]
window/size/viewport_width=512
window/size/viewport_height=256
window/size/borderless=true
[input]
"Move Up"={

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bralq5uqyflys"
path="res://.godot/imported/body_albedo.png-580b6ee686dffd181a2d7b7b9fe62e81.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://textures/body_albedo.png"
dest_files=["res://.godot/imported/body_albedo.png-580b6ee686dffd181a2d7b7b9fe62e81.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