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

Feat/nicer debugging #113

Merged
merged 4 commits into from
Aug 22, 2020
Merged

Feat/nicer debugging #113

merged 4 commits into from
Aug 22, 2020

Conversation

oskarrough
Copy link
Owner

Before this PR the syntax for debugging in the browser looked like this, and actually, it wouldn't even work most of the time.

slaytheweb.game.enqueue({type: 'drawCards', amount: 2})
slaytheweb.component.dequeue() // this dequeues the game AND updates the component e.g. renders

now it looks like this:

stw.game.enqueue({type: 'drawCards', amount: 2})
stw.update() // dequeues game and rerenders UI component

Closes #111

@oskarrough
Copy link
Owner Author

hm still not great, but it's better.

@oskarrough oskarrough merged commit 31e93ef into master Aug 22, 2020
oskarrough added a commit that referenced this pull request Aug 27, 2022
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.

Nicer console
1 participant