Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

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

Open
aletzo opened this issue Dec 2, 2023 · 1 comment

Comments

@aletzo
Copy link

aletzo commented Dec 2, 2023

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!

@nguyenmanh1507
Copy link

@aletzo You can use z component to replace layer and layers.
Here is code example: #516

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants