From 5484f0c96016d1661f27ba1fae8a432ff233835e Mon Sep 17 00:00:00 2001 From: Nixon Date: Sat, 27 Aug 2022 20:53:38 +0800 Subject: [PATCH] added Platform component to Melty platform --- src/game.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game.rs b/src/game.rs index 8da2492..544eb1e 100644 --- a/src/game.rs +++ b/src/game.rs @@ -264,6 +264,7 @@ pub fn spawn_melty_platform( .insert(Collider::cuboid(48., 8.)) .insert(Melty(color)) .insert(Level) + .insert(Platform) .with_children(|c| { c.spawn_bundle(SpriteBundle { texture: asset_server.get_handle("melty.png"),