Skip to content

Commit

Permalink
(Obnoxious) Use project style in readme :-)
Browse files Browse the repository at this point in the history
  • Loading branch information
hubol committed Sep 26, 2024
1 parent ea45add commit cff7487
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ Game Objects are PixiJS `DisplayObject`s enriched with behavior. They are create
export function objPlayer() {
const p = new Graphics().drawRect(0, 0, 16, 16)
.step(() => {
if (Input.justWentDown('MoveRight'))
if (Input.justWentDown("MoveRight")) {
p.x += 1;
}
});

return p;
}
```
Expand Down

0 comments on commit cff7487

Please sign in to comment.