Skip to content

Commit

Permalink
Update readme example (#368)
Browse files Browse the repository at this point in the history
* Sync readme example with minimal.rs

* Update RELEASES

---------

Co-authored-by: TimJentzsch <commits@timjen.net>
  • Loading branch information
rparrett and TimJentzsch authored Jul 24, 2023
1 parent 76c3b0d commit 22285c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@ fn main() {
// We need to provide it with an enum which stores the possible actions a player could take
.add_plugins(InputManagerPlugin::<Action>::default())
// The InputMap and ActionState components will be added to any entity with the Player component
.add_systems(Startup,spawn_player)
.add_systems(Startup, spawn_player)
// Read the ActionState in your systems using queries!
.add_systems(Update, jump)
.run();
}
// This is the list of "things in the game I want to be able to do based on input"
#[derive(Actionlike, PartialEq, Eq, Clone, Copy, Hash, Debug)]
#[derive(Actionlike, PartialEq, Eq, Clone, Copy, Hash, Debug, Reflect)]
enum Action {
Run,
Jump,
Expand Down
6 changes: 6 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release Notes

## Unreleased

### Docs

- Fixed invalid example code in README

## Version 0.10

### Usability
Expand Down

0 comments on commit 22285c0

Please sign in to comment.