Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
fwsGonzo committed Sep 13, 2024
1 parent e0cf087 commit 171447b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ static void add_coin(const Node& player) {
+ std::to_string(coins) + ((coins == 1) ? " coin" : " coins"));
}

extern "C" Variant _on_body_entered(Node player) {
if (player.get_name() != "Player") {
extern "C" Variant _on_body_entered(Node2D node) {
if (node.get_name() != "Player")
return {};
}

get_node().queue_free(); // Remove the current coin!
add_coin(player);
add_coin(node);
return {};
}
```
Expand Down

0 comments on commit 171447b

Please sign in to comment.