File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -29,11 +29,12 @@ fn window_conf() -> Conf {
2929#[ macroquad:: main( window_conf) ]
3030async fn main ( ) {
3131 rand:: srand ( macroquad:: miniquad:: date:: now ( ) as _ ) ;
32- let pause = load_texture ( "assets/pause.png" ) . await . unwrap ( ) ;
33- let play = load_texture ( "assets/play.png" ) . await . unwrap ( ) ;
34- let fast = load_texture ( "assets/fast.png" ) . await . unwrap ( ) ;
35- let slow = load_texture ( "assets/slow.png" ) . await . unwrap ( ) ;
36- let restart = load_texture ( "assets/restart.png" ) . await . unwrap ( ) ;
32+
33+ let pause = Texture2D :: from_file_with_format ( include_bytes ! ( "../assets/pause.png" ) , None ) ;
34+ let play = Texture2D :: from_file_with_format ( include_bytes ! ( "../assets/play.png" ) , None ) ;
35+ let fast = Texture2D :: from_file_with_format ( include_bytes ! ( "../assets/fast.png" ) , None ) ;
36+ let slow = Texture2D :: from_file_with_format ( include_bytes ! ( "../assets/slow.png" ) , None ) ;
37+ let restart = Texture2D :: from_file_with_format ( include_bytes ! ( "../assets/restart.png" ) , None ) ;
3738 let th = ( screen_height ( ) - HEIGHT ) * 0.5 ;
3839
3940 let gamecam = Camera2D {
You can’t perform that action at this time.
0 commit comments