Skip to content

Commit

Permalink
proper boot logo wow
Browse files Browse the repository at this point in the history
  • Loading branch information
RealMCoded committed Feb 19, 2022
1 parent 73c7c79 commit 8fcc75e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
7 changes: 6 additions & 1 deletion objects/obj_bootGraphic/Draw_0.gml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
/// @description
//draw_text_color(32, 32, "TEMPORARY BOOT GRAPHIC!\n\nIT IS LOADING HOWEVER", c_white, c_white, c_white, c_white, t)

draw_sprite_ext(global.sprite[0], 0, 0, 0, 0.7, 0.7, 0, c_white, t)

switch global.system{
case "95": draw_sprite_ext(global.sprite[1], 0, room_width/2, room_height/2, 0.5, 0.5, 0, c_white, t*2) break;
case "95plus": draw_sprite_ext(global.sprite[1], 0, room_width/2, room_height/2, 1, 1, 0, c_white, t*2) break;
default: draw_sprite_ext(global.sprite[1], 0, room_width/2, room_height/2, 1, 1, 0, c_white, t*2) break;
}

t+=0.01
1 change: 1 addition & 0 deletions rooms/init/RoomCreationCode.gml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ ini_close()

#region Sprites - ALL OF THESE ARE PLACEHOLDERS AT FIRST
global.sprite[0] = spr_null //
global.sprite[1] = spr_null
#endregion

#region Backgrounds
Expand Down
2 changes: 1 addition & 1 deletion rooms/rm_bootGraphic/rm_bootGraphic.yy

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion scripts/initSystem/initSystem.gml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ global.level = ini_read_real(global.system, "level", 1)
ini_close()

//Define assets
global.sprite[0] = sprite_add(global.installLocation + "\\wallpapers.desktop\\skins\\" + global.system +"\\wallpaper6.png", 1, 0, 1, 0, 0)
global.sprite[0] = sprite_add(global.installLocation + "\\wallpapers.desktop\\skins\\" + global.system +"\\sky.png", 1, 0, 1, 0, 0)

switch global.system {
case "95": global.sprite[1] = sprite_add(global.installLocation + "\\art\\skins\\" + global.system +"\\logo.png", 1, 0, 0, 512, 256) break;
case "95plus": global.sprite[1] = sprite_add(global.installLocation + "\\art\\skins\\" + global.system +"\\logo.png", 1, 0, 0, 256, 128) break;
default: break;
}

sprite_replace(spr_bar, global.installLocation + "\\art\\skins\\" + global.system +"\\progressbarpanel.png", 1, 0, 0, 66, 22)

Expand Down

0 comments on commit 8fcc75e

Please sign in to comment.