added Platform component to Melty platform

This commit is contained in:
Nixon 2022-08-27 20:53:38 +08:00
parent 3c721c3225
commit 9778367226

View file

@ -272,6 +272,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"),