Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Level Editor Readme and Undo (control-z) restore previous tiles #266

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

ethanlolomg
Copy link
Contributor

@ethanlolomg ethanlolomg commented Dec 28, 2024

Change Logs:

  • Added readme for level editor src/editor/README.md
  • Updated src/editor/undo.js to store previous state value
  • Updated src/editor/le.js to use the stored previous tile value and restore them when an undo is performed (works for both single click and drag tile placement)

Undo Restore previous tiles demo:
https://github.com/user-attachments/assets/d77330da-d743-4917-b0e2-d7f43d389902

@ianmacartney ianmacartney merged commit cdb414a into a16z-infra:main Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants