Skip to content

Commit 0d62d14

Browse files
committed
added funny config file
1 parent 111ef14 commit 0d62d14

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

nim.cfg

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Snek compilation configuration file
2+
# ===================================
3+
4+
5+
# Feel free to tinker with these switches:
6+
# ----------------------------------------
7+
8+
# --d:gridSize:100 # default: 48 (min: 16)
9+
10+
# Playing area size: (default: 1024)
11+
# --d:playFieldWidth:500
12+
13+
# Status bar height: (default: 100)
14+
# --d:statusBarHeight:100
15+
16+
# Target FPS: (default: 60)
17+
# --d:targetFPS:420
18+
19+
20+
# Other config stuff:
21+
# -------------------
22+
--app:gui

src/properties.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ const
1616
# =============================================================================
1717

1818
const
19-
playFieldWidth*: int32 = 1024 ## Playing area width
19+
playFieldWidth* {.intdefine.}: int32 = 1024 ## Playing area width
2020
playFieldHeight*: int32 = playFieldWidth ## Playing area height (same as width)
2121

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

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

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

2929

3030
# =============================================================================

0 commit comments

Comments
 (0)