Compare commits
6
Commits
7cae807bfa
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a578978c95 | ||
|
|
2b12c99813 | ||
|
|
7bf6435638 | ||
|
|
651f6626b8 | ||
|
|
ce92780f2f | ||
|
|
0db69bf72b |
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 79 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 41 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 121 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 191 KiB |
@@ -2,16 +2,11 @@
|
||||
|
||||
A multiplayer Discord gaming platform built with F# and the Giraffe web framework, featuring interactive games with player progression and an in-game economy.
|
||||
|
||||
## Screenshots & Game Assets
|
||||
## Degenz World
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
## Architecture
|
||||
|
||||
@@ -76,7 +71,7 @@ Tutorial/onboarding system:
|
||||
|
||||
### Player Progression
|
||||
|
||||
#### Stats System (`GameTypes.fs:41-55`)
|
||||
#### Stats System
|
||||
Four core attributes with time-based decay:
|
||||
- **Strength**: Combat effectiveness
|
||||
- **Focus**: Precision and accuracy
|
||||
@@ -90,7 +85,7 @@ Each stat features:
|
||||
|
||||
## Discord Integration
|
||||
|
||||
### Multi-Bot Architecture (`Bot.fs:53-59`)
|
||||
### Multi-Bot Architecture
|
||||
The system uses multiple specialized Discord bot clients:
|
||||
- **hackerBattleBot**: HackerBattle game interactions
|
||||
- **storeBot**: Store transactions and interactions
|
||||
@@ -107,10 +102,10 @@ The system uses multiple specialized Discord bot clients:
|
||||
|
||||
## Database Design
|
||||
|
||||
### PostgreSQL Integration (`DbService.fs`)
|
||||
### PostgreSQL Integration
|
||||
Type-safe database operations using Npgsql.FSharp:
|
||||
|
||||
- **User table**: Discord IDs, display names, GBT balances, wallet addresses
|
||||
- **User table**: Discord IDs, display names, GBT balances
|
||||
- **Item system**: Database-driven item definitions with custom composite types
|
||||
- **Event tracking**: Player actions, cooldowns, game history with proper typing
|
||||
- **Custom types**: `StatMod` composite type for database item modifiers
|
||||
@@ -124,15 +119,6 @@ Type-safe database operations using Npgsql.FSharp:
|
||||
- **API Key Authentication**: `X-API-Key` header validation
|
||||
- **Error Handling**: Comprehensive error responses and logging
|
||||
|
||||
## Player Economy
|
||||
|
||||
The game features a balanced virtual economy:
|
||||
- **GBT Currency**: Primary medium of exchange earned through gameplay
|
||||
- **Fixed Pricing**: Items have set buy/sell prices (no dynamic market)
|
||||
- **Cooldown Systems**: Rate limiting prevents exploitation
|
||||
- **Risk/Reward Balance**: Thief game risk vs potential reward
|
||||
- **Player Progression**: Long-term engagement through stat decay requiring active play
|
||||
|
||||
## Development Setup
|
||||
|
||||
### Prerequisites
|
||||
|
||||
Reference in new issue
Block a user