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

Commit

Permalink
fix spelling "unnamed" in examples/component.js (#817)
Browse files Browse the repository at this point in the history
* fix spelling "unnamed" in examples/component.js

* fix spelling "asynchronously" in blog/2000.md
  • Loading branch information
remarkablemark authored Jan 30, 2024
1 parent fffc0eb commit 3dc2cc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion blog/2000.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ const player = add([
]);
```

But do note that assets are still loaded asynchrnously. If you want to deal with any asset related information like sprite size, wrap them in a `ready()` or use `scene()`.
But do note that assets are still loaded asynchronously. If you want to deal with any asset related information like sprite size, wrap them in a `ready()` or use `scene()`.

```js
ready(() => {
Expand Down
4 changes: 2 additions & 2 deletions examples/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ const bean = add([
funky(),
// Tags are empty components, it's equivalent to a { id: "friend" }
"friend",
// Plain objects here are components too and work the same way, except unamed
// Plain objects here are components too and work the same way, except unnamed
{
coolness: 100,
friends: [],
},
])

onKeyPress("space", () => {
// .coolness is from our unamed component above
// .coolness is from our unnamed component above
if (bean.coolness >= 100) {
// We can use .getFunky() provided by the funky() component now
bean.getFunky()
Expand Down

0 comments on commit 3dc2cc1

Please sign in to comment.