added Platform component to Melty platform
This commit is contained in:
parent
3c721c3225
commit
9778367226
1 changed files with 1 additions and 0 deletions
|
@ -272,6 +272,7 @@ pub fn spawn_melty_platform(
|
||||||
.insert(Collider::cuboid(48., 8.))
|
.insert(Collider::cuboid(48., 8.))
|
||||||
.insert(Melty(color))
|
.insert(Melty(color))
|
||||||
.insert(Level)
|
.insert(Level)
|
||||||
|
.insert(Platform)
|
||||||
.with_children(|c| {
|
.with_children(|c| {
|
||||||
c.spawn_bundle(SpriteBundle {
|
c.spawn_bundle(SpriteBundle {
|
||||||
texture: asset_server.get_handle("melty.png"),
|
texture: asset_server.get_handle("melty.png"),
|
||||||
|
|
Loading…
Reference in a new issue