Skip to content

Commit

Permalink
CHANGE hide trophy on result
Browse files Browse the repository at this point in the history
  • Loading branch information
ninovanhooff committed Apr 16, 2024
1 parent ca7a34c commit 7f19eca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/screens/game/game_finish.nim
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ proc drawFinish*(state: GameState) =
let camVertex = state.camera.toVertex

# trophy itself
let finishScreenPos: Vertex = level.finishPosition - camVertex
let finishTableIndex: int32 = if state.isFinishActivated: 1'i32 else: 0'i32
trophyImageTable.getBitmap(finishTableIndex).draw(finishScreenPos[0], finishScreenPos[1], kBitmapUnflipped)
if state.gameResult.isNone:
let finishScreenPos: Vertex = level.finishPosition - camVertex
let finishTableIndex: int32 = if state.isFinishActivated: 1'i32 else: 0'i32
trophyImageTable.getBitmap(finishTableIndex).draw(finishScreenPos[0], finishScreenPos[1], kBitmapUnflipped)

# Last coin collect blinker (HUD)
if state.finishTrophyBlinkerAt.isSome:
Expand Down

0 comments on commit 7f19eca

Please sign in to comment.