Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v18.12.1
Copy link

@fladrif fladrif Mar 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we want to include this file either. This doesn't necessarily lock people into using nvm, but I personally don't and I don't think every maintainer should start adding their specific tooling configuration

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ npm i bgio-effects
Call effects from your moves or other game code:

```js
function move(G, ctx) {
ctx.effects.explode();
function move({ G, effects }) {
effects.explode();
}
```

Expand All @@ -34,10 +34,10 @@ const onExplode = () => {
};

// With the plain JS emitter
emitter.on('explode', onExplode);
emitter.on("explode", onExplode);

// With the React hook
useEffectListener('explode', onExplode, []);
useEffectListener("explode", onExplode, []);
```

## 📚 Documentation
Expand Down
Loading