Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/images/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions assets/images/splash.png.import
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[remap]

importer="texture"
type="CompressedTexture2D"
uid="uid://bi4g3x3jlcnjk"
path="res://.godot/imported/splash.png-f8b0c4c0b0b0b0b0b0b0b0b0b0b0b0b0.ctex"
metadata={
"vram_texture": false
}

[deps]

source_file="res://assets/images/splash.png"
dest_files=["res://.godot/imported/splash.png-f8b0c4c0b0b0b0b0b0b0b0b0b0b0b0b0.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
3 changes: 3 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ config_version=5
config/name="placeholder"
run/main_scene="uid://c1ibyecb1dmow"
config/features=PackedStringArray("4.4", "GL Compatibility")
boot_splash/image="res://assets/images/splash.png"
boot_splash/fullsize=false
boot_splash/use_filter=true

[audio]

Expand Down
18 changes: 17 additions & 1 deletion test/unit/test_main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,20 @@ func test_project_settings():
# Test basic project settings
var app_name = ProjectSettings.get_setting("application/config/name")
assert_not_null(app_name, "Application name should be set in project settings")
assert_ne(app_name, "", "Application name should not be empty")
assert_ne(app_name, "", "Application name should not be empty")

func test_boot_splash_configuration():
# Test that boot splash is properly configured
var splash_image = ProjectSettings.get_setting("application/boot_splash/image")
assert_not_null(splash_image, "Boot splash image should be configured")
assert_eq(splash_image, "res://assets/images/splash.png", "Boot splash should use custom splash.png")

# Test that the splash image file exists
assert_true(FileAccess.file_exists("res://assets/images/splash.png"), "Splash screen image file should exist")

# Test boot splash settings
var fullsize = ProjectSettings.get_setting("application/boot_splash/fullsize")
assert_false(fullsize, "Boot splash fullsize should be false for proper scaling")

var use_filter = ProjectSettings.get_setting("application/boot_splash/use_filter")
assert_true(use_filter, "Boot splash should use filter for smooth rendering")