Skip to content

Commit

Permalink
added funny config file
Browse files Browse the repository at this point in the history
  • Loading branch information
nirokay committed May 14, 2024
1 parent 111ef14 commit 0d62d14
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
22 changes: 22 additions & 0 deletions nim.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Snek compilation configuration file
# ===================================


# Feel free to tinker with these switches:
# ----------------------------------------

# --d:gridSize:100 # default: 48 (min: 16)

# Playing area size: (default: 1024)
# --d:playFieldWidth:500

# Status bar height: (default: 100)
# --d:statusBarHeight:100

# Target FPS: (default: 60)
# --d:targetFPS:420


# Other config stuff:
# -------------------
--app:gui
6 changes: 3 additions & 3 deletions src/properties.nim
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ const
# =============================================================================

const
playFieldWidth*: int32 = 1024 ## Playing area width
playFieldWidth* {.intdefine.}: int32 = 1024 ## Playing area width
playFieldHeight*: int32 = playFieldWidth ## Playing area height (same as width)

statusBarHeight*: int32 = 100 ## Height of the status bar at the top
statusBarHeight* {.intdefine.}: int32 = 100 ## Height of the status bar at the top

screenWidth*: int32 = playFieldWidth ## Screen width
screenHeight*: int32 = playFieldHeight + statusBarHeight ## Screen height

targetFPS*: int32 = 60 ## Target fps (should not fuck with the update speed)
targetFPS* {.intdefine.}: int32 = 60 ## Target fps (should not fuck with the update speed)


# =============================================================================
Expand Down

0 comments on commit 0d62d14

Please sign in to comment.