kaboom icon indicating copy to clipboard operation
kaboom copied to clipboard

Migration guide to version 3000 is missing the `layers()` and `layer()` functions

Open aletzo opened this issue 2 years ago • 1 comments

Hi,

Trying to learn Kaboom by following the Mario tutorial (https://docs.replit.com/tutorials/kaboom/build-mario-with-kaboom), but it seems that it was written for a version older that 3000. So I'm trying to make it run with version 3000 using the migration guide (https://kaboomjs.com/doc/migration-3000). I can see that origin() is now anchor(), solid() is replaced with body({ isStatic: true }), but no mention about layers() and layer().

Also I forked the updated working version from https://replit.com/@techwithanirudh/Mario-Updates?v=1, but it's also using the functions from the older version (solid(), origin(), layers(), etc ).

Any idea?

I can help with updating the migration docs and the tutorials if you want. Just need some help to get started.

Thanks!

aletzo avatar Dec 02 '23 12:12 aletzo

@aletzo You can use z component to replace layer and layers. Here is code example: https://github.com/replit/kaboom/pull/516

nguyenmanh1507 avatar Dec 02 '23 18:12 nguyenmanh1507