added Platform component to Melty platform

This commit is contained in:
Nixon 2022-08-27 20:53:38 +08:00 committed by tuxmain
parent d5f8ca3844
commit 5484f0c960

View file

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