Skip to content

Commit

Permalink
feat(gameobjects): center player
Browse files Browse the repository at this point in the history
  • Loading branch information
remarkablemark committed Jan 15, 2024
1 parent 867d9dd commit 972af87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gameobjects/player.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { bean } from '../sprites'

export function addPlayer() {
return add([pos(120, 80), bean])
return add([pos(center()), bean])
}

0 comments on commit 972af87

Please sign in to comment.