latticexyz / mud

MUD is a framework for building autonomous worlds
https://mud.dev
MIT License
725 stars 183 forks source link

feat(template/phaser): improve template features #2799

Closed roaminro closed 1 month ago

roaminro commented 5 months ago

This PR improves the phaser template by adding a MapSystem that allows for players to spawn and move. As mentioned in #2468 , this system is inspired by the Emojimon example, but only the Movable, Player and Position components are implemented to keep the template simple.

Here's a screenshot with 2 players:

Screenshot from 2024-05-08 01-38-18

Let me know if you'd like me to change anything.

Closes #2468

changeset-bot[bot] commented 5 months ago

⚠️ No Changeset found

Latest commit: 76cc920d8c5e9e0bdd77bec9c15b9ae0855fba53

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR