added Platform component to Melty platform
This commit is contained in:
parent
d5f8ca3844
commit
5484f0c960
1 changed files with 1 additions and 0 deletions
|
@ -264,6 +264,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