game.ini to custom values and doc
This commit is contained in:
SpudGunMan
2025-11-02 21:14:21 -08:00
parent fb7bf1975b
commit 14ea1e3d97
4 changed files with 50 additions and 4 deletions
+14
View File
@@ -13,6 +13,7 @@
- [Quiz](#quiz-game-module)
- [Survey](#survey--module-game)
- [Word of the Day Game](#word-of-the-day-game--rules--features)
- [Game Server Configuration (`game.ini`)](#game-server-configuration-gameini)
- [PyGame Help](#pygame-help)
---
@@ -739,6 +740,19 @@ This module implements a survey system for the Meshtastic mesh-bot.
___
# Game Server Configuration (`game.ini`)
The game server (`script/game_serve.py`) supports configuration via a `game.ini` file placed in the same directory as the script. This allows you to customize network and node settings without modifying the Python code.
## How to Use
1. **Create a `game.ini` file** in the `script/` directory (next to `game_serve.py`).
If `game.ini` is not present, the server will use built-in default values.
---
# PyGame Help
'pygame - Community Edition' ('pygame-ce' for short) is a fork of the original 'pygame' library by former 'pygame' core contributors.
+1
View File
@@ -180,6 +180,7 @@ def ttt_main():
screen = pygame.display.set_mode((0, 0), pygame.FULLSCREEN)
pygame.display.set_caption("Tic-Tac-Toe 3D Display")
info = pygame.display.Info()
print(f"[MeshBot TTT Display] Pygame version: {pygame.version.ver}")
print(f"[MeshBot TTT Display] Resolution: {info.current_w}x{info.current_h} (fullscreen)")
print(f"[MeshBot TTT Display] Display driver: {pygame.display.get_driver()}")
running = True