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
2 changes: 1 addition & 1 deletion src/screens/game/game_killer.nim
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ proc addKiller(space: Space, killer: Killer): Body =
collisionType = GameCollisionTypes.Killer,
friction = killerFriction,
)[0]
body.bodyType = BODY_TYPE_KINEMATIC
body.bodyType = BODY_TYPE_STATIC
body.angularVelocity=3.0
body.angle=rand(2.0*PI)
body
Expand Down
2 changes: 1 addition & 1 deletion src/screens/game/game_view.nim
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ proc drawGame*(statePtr: ptr GameState) =
# killer
for killer in state.killers:
let killerScreenPos = killer.position - camera
killerImageTable.drawRotated(killerScreenPos, killer.angle)
killerImageTable.drawRotated(killerScreenPos, killer.angle + killer.angularVelocity * state.time.toSeconds)

drawFinish(state)

Expand Down
7 changes: 6 additions & 1 deletion src/wheelsprung.nim
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ proc init() {.raises: [].} =
pushScreen(newLevelSelectScreen())

proc update() {.raises: [].} =
discard updateNavigator()
bench(
proc(): void =
discard updateNavigator(),
"updateNavigator",
50
)
playdate.system.drawFPS(0, 0)

proc runCatching(fun: () -> (void), messagePrefix: string=""): void =
Expand Down