From 0c643519ec66afc9269151882c64cf1ca26414e1 Mon Sep 17 00:00:00 2001 From: XCemaXX Date: Sun, 4 Aug 2024 09:33:23 +0300 Subject: [PATCH] reorder load textures --- docs/ghost_rabbit_ai.wasm | Bin 34909750 -> 34909750 bytes gui/src/resources.rs | 8 ++++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ghost_rabbit_ai.wasm b/docs/ghost_rabbit_ai.wasm index 158e7955acf537dcd0fe49fd648d6f0502ecb73c..0097b5353c02045cef28a183ef8b2bb3772f27b9 100755 GIT binary patch delta 2504 zcmW;McbpCc7{Kw*-Eq9famXHJ%g7!b8l*FlqGW~ava-s`-E}xRGG41GDx>al*1aS% zT-l^D&Pn028aAc+{rcngeV)IcKc0-NBQY72J}^F5E+IBz)%sn*?g@><(-MR85}HJ0 z@7NtYn9w*PCnYnuBtAA`(ay|ZKj!J|%wTqWY*J)ma%5r{g;NCOqTCcoc|wtid28Pe zrDp|Fqe53U1@5MVQkMqOqC(Z?1nQOvokBQ7T5osRWgzQdFACP+2NR_tOJZo+?m9szjBk3RR_Q^dMEI8dQ^N(L+?5>QG&( zNA;-zHKaz=n3~YT6iZF188xRz=uvu%9;X)6lAfSe^d!YmYidJnsU1BLVq(SsDy+VU&2o0rSG@M?g z5j2uU(P$b&uhHu?md4R|nm`lj4Vpyplt78}CMD5innF`4nWoWndW%wM2F;|mX%@|< zIW(7oG>_)f0$NCm=pA~O-lO;F1Nx8_(?_&~meR-c34Kb-XgRH*mGl{XPN|eeU(hN_ zr`5EE*3vp!PZ<=V4YZNIq)qe{ZKf@>mA27#+Cg8_PTEDgDU-gTZ)p$hrG2!Y4$wh5 zM2G1JeMd*>d-{QXq+@iPPS8opqEnPjr|Bm;LqF3mbe7K1dCH+*=>lD(OLUp8&~NlR z{Xu`yRk}vk=?2}TTXdW5&|UhA{-%5M5B-~x6Bjm%BwQjSm*kd6$s>6sAW@P}@=LT7 zkb)8;g`}_)k^7{m6qDjoLP|<0DJ^BBtdx`c{K9CP(v3w*;WT|{CpU9`OOqR!_P<%FD+EIB3Fa$0_pGxD?iB4_2CoR=K=RW8Uy zxg?k6iu@+O%OCQmT$O8bU2e!txh1#dj@*^M+rE*lBKBNj%kt$JTszOz%8dawnRFgiUTJ$k}LZ4D?szY_D z9@VD?)Q}ocV`@U5QB!J0&FOP$K`p5jwWcrVOZtl1P+Mw8?WqHGq)ybCx=>f@M&0Ra z>OnoJ7xkt-)R+3vH`Jd7&_EhQgJ}pwQh=gpC=H|GG=fG_G>xLsG=|2~I2unAXd+Fb z$uxz6^es)LX*8X_qZu@lzNa7PN18>mX%5Y$c{HCE&_Y^7i)jfhrDe37R?tdXMXPBI zt)+Feo;J`%ilJEAM4Ra++Cp1t8*Qf@w3B|OUuYNYraiQm_R+8O8||k9bdV0wVLC!b z=@=cS6LgYJ(P=tEXXzaMPUqa{YNA#GU&{KLw&*=rdq*wHs-i(c_5pN<%h=fXfNg!d8P!dUE36~_2RFX+@ zNg*jEm86z5l2+15ddVOeC6i>9ERt2S$=i}$a!5|eCAlS!yd&>QUdbozzLGZ5R@zB>=^!1YlXR9Y z(p9=iclla+NKfe{y`_)zm45P#^p^oLPzK3h86uGqkSG}{!(_OOkdYECqhz#)hmD3fHeOp%~`D^q2fOqcIuhRl@ju6tCdcK3oRm{?TF%H>IVZo%dAT4L<&s>MD{@t?$sclE{*=EYPHxCexh1#d zj{GhE$X&T7_vK%CAP?n{JeDW&RG!Imc_A<5mAsZW@pykB4DlpHLM6T=kT6Loi6pUv bOA<*c$t1a?kd%^2QcIeU9lXDgI_>@gG4R3? diff --git a/gui/src/resources.rs b/gui/src/resources.rs index 5f43415..9eb5221 100644 --- a/gui/src/resources.rs +++ b/gui/src/resources.rs @@ -80,15 +80,15 @@ impl Resources { } fn load_textures(&mut self) { - self.platforms.insert(Difficulty::Practice, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/floor_practice.png"), None)); - self.platforms.insert(Difficulty::Normal, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/floor_medium.png"), None)); - self.platforms.insert(Difficulty::Unreal, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/floor_hard.png"), None)); - self.monsters.insert(MonsterType::Mummy, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/monster_mummy.png"), None)); self.monsters.insert(MonsterType::Jason, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/monster_jason.png"), None)); self.monsters.insert(MonsterType::Vampire, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/monster_vampire.png"), None)); self.monsters.insert(MonsterType::Frankenstein, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/monster_frankenstein.png"), None)); + self.platforms.insert(Difficulty::Normal, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/floor_medium.png"), None)); + self.platforms.insert(Difficulty::Practice, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/floor_practice.png"), None)); + self.platforms.insert(Difficulty::Unreal, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/floor_hard.png"), None)); + self.backgrounds.insert(Backgrounds::Game, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/background_game.png"), None)); self.backgrounds.insert(Backgrounds::MainMenu, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/background_main.png"), None)); self.backgrounds.insert(Backgrounds::Records, Texture2D::from_file_with_format(include_bytes!("../../resources/textures/background_records.png"), None));