From ac0a57b9b1aed340a0a888fc3203e5658ebee1b2 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 20 Mar 2024 21:12:37 +0100 Subject: [PATCH] cleanup --- src/world.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/world.rs b/src/world.rs index 4a24411..8353028 100644 --- a/src/world.rs +++ b/src/world.rs @@ -16,19 +16,16 @@ const ASTEROID_SIZE: f32 = 100.0; //const ASSET_CUBEMAP: &str = "textures/cubemap-fs8.png"; //const ASSET_CUBEMAP_AR: &str = "textures/out.png"; -const ASSET_ASTRONAUT: &str = "external/alien.glb#Scene0"; const ASSET_ASTEROID1: &str = "models/asteroid.glb#Scene0"; const ASSET_ASTEROID2: &str = "models/asteroid2.glb#Scene0"; -const ASSET_PIZZERIA: &str = "models/pizzeria.glb#Scene0"; -const ASSET_JUPITER: &str = "models/jupiter.glb#Scene0"; fn asset_name_to_path(name: &str) -> &'static str { match name { - "suit" => ASSET_ASTRONAUT, - "jupiter" => ASSET_JUPITER, + "suit" => "external/alien.glb#Scene0", + "jupiter" => "models/jupiter.glb#Scene0", "asteroid1" => ASSET_ASTEROID1, "asteroid2" => ASSET_ASTEROID2, - "pizzeria" => ASSET_PIZZERIA, - _ => ASSET_ASTRONAUT, + "pizzeria" => "models/pizzeria.glb#Scene0", + _ => "external/alien.glb#Scene0", } }