Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
ad7cdca
git init
jimmy2822 Aug 9, 2025
3345596
Add CS2D game example application
jimmy2822 Aug 9, 2025
78f706d
Improve CS2D touchpad controls and add implementation plan
jimmy2822 Aug 9, 2025
c2a1946
Add sound effects system to CS2D game
jimmy2822 Aug 9, 2025
d4c927b
Complete CS2D multiplayer game implementation
jimmy2822 Aug 9, 2025
769b25a
Update CS2D documentation to English
jimmy2822 Aug 9, 2025
7ebc5db
Fix CS2D black screen issue by using builder.raw() for JavaScript
jimmy2822 Aug 10, 2025
52cd273
Add CS2D dependency lock and fix game loop compatibility
jimmy2822 Aug 10, 2025
853f3e4
Set ruby version to 3.3.6
jimmy2822 Aug 10, 2025
2324b96
Implement complete CS2D with all planned features
jimmy2822 Aug 10, 2025
6377c45
Fix server async errors in CS2D
jimmy2822 Aug 10, 2025
3fdef78
Update CLAUDE.md with black screen solution and simplify CS2D multiplโ€ฆ
jimmy2822 Aug 10, 2025
9639393
Enhance CS2D with AI bots, advanced features, and minimap
jimmy2822 Aug 10, 2025
b1d36f2
Add tool version of Ruby
jimmy2822 Aug 10, 2025
21f70ca
Document CS2D game example in CLAUDE.md
jimmy2822 Aug 10, 2025
aebfcc4
Fix CS2D movement and event forwarding
jimmy2822 Aug 10, 2025
ba12720
Fix CS2D black screen issue
jimmy2822 Aug 10, 2025
65cc5a0
Fix CS2D JavaScript initialization issues
jimmy2822 Aug 10, 2025
584ebdd
Fix CS2D initialization and game state synchronization
jimmy2822 Aug 10, 2025
6b814b9
Resolve CS2D JavaScript execution blocking issues
jimmy2822 Aug 10, 2025
259a9d4
Document comprehensive JavaScript execution debugging guide
jimmy2822 Aug 10, 2025
d5ad28e
Implement complete CS2D Counter-Strike 2D game with all features
jimmy2822 Aug 10, 2025
0d162dd
Add CS2D custom CSS styling for dark mode fix
jimmy2822 Aug 10, 2025
c83a3a3
Fix CS2D server startup errors and WebSocket JavaScript injection
jimmy2822 Aug 10, 2025
042605e
Update CLAUDE.md with server startup debugging documentation
jimmy2822 Aug 10, 2025
b60d2f6
Implement complete CS 1.6 clone with proper JavaScript injection
jimmy2822 Aug 10, 2025
dd83a5b
Update CLAUDE.md with CS 1.6 implementation details and lessons learned
jimmy2822 Aug 10, 2025
af53ec2
Apply RuboCop coding standards to CS2D application
jimmy2822 Aug 11, 2025
11280f4
Implement team selection, kill feed, and minimap features for CS2D
jimmy2822 Aug 11, 2025
c1aa1af
Fix team selection button click handling
jimmy2822 Aug 11, 2025
ab57b92
Fix syntax errors and improve event handling in CS2D
jimmy2822 Aug 11, 2025
5ec00e5
Simplify event handling and use forward_event helper
jimmy2822 Aug 11, 2025
07bb164
Fix CS2D aim system and add canvas game development documentation
jimmy2822 Aug 11, 2025
24ad001
Implement complete CS 1.6 weapons and equipment system
jimmy2822 Aug 11, 2025
72cf907
Implement CS 1.6 classic competitive rules
jimmy2822 Aug 11, 2025
3cf5194
Update application.rb to use CS 1.6 classic rules
jimmy2822 Aug 11, 2025
26dd3bb
Fix nil reference errors in CS16 classic rules
jimmy2822 Aug 11, 2025
f263a73
Fix movement system and collision detection
jimmy2822 Aug 11, 2025
da56518
Update CLAUDE.md with CS16 classic rules and movement fixes
jimmy2822 Aug 11, 2025
cd4e166
Fix CS2D player initialization and bot AI issues
jimmy2822 Aug 11, 2025
060d27d
Update CLAUDE.md with player initialization and game state patterns
jimmy2822 Aug 11, 2025
10d8a1a
Fix bullet damage system in CS16 classic rules
jimmy2822 Aug 11, 2025
9c667fe
Major CS16 refactoring: Extract monolithic file into modular architecโ€ฆ
jimmy2822 Aug 11, 2025
b5d6bac
Update CLAUDE.md with comprehensive refactoring guidance
jimmy2822 Aug 11, 2025
3668f66
Fix CS2D map collision system and update CLAUDE.md
jimmy2822 Aug 11, 2025
4d47fb0
Complete CS2D game system overhaul based on frame analysis
jimmy2822 Aug 11, 2025
ee6a52a
Apply RuboCop fixes to CS2D codebase
jimmy2822 Aug 11, 2025
616f795
Update CLAUDE.md with latest CS2D improvements and debugging guidance
jimmy2822 Aug 11, 2025
3b9d360
Fix Buy Menu issues in CS2D game with DOM resilience system
jimmy2822 Aug 11, 2025
d914a97
Update CLAUDE.md with DOM Resilience System documentation
jimmy2822 Aug 11, 2025
75a467f
Improve Buy Menu UI and add macOS file exclusions
jimmy2822 Aug 11, 2025
9aadf1a
Fix CS 1.6 Classic JavaScript initialization and verify all game rules
jimmy2822 Aug 11, 2025
8353eb4
Complete CS 1.6 Classic implementation to 98.1% coverage
jimmy2822 Aug 11, 2025
8cfe758
Improve CS2D gameplay experience with 4 critical fixes
jimmy2822 Aug 11, 2025
d04a608
Add authentic CS 1.6 buy zone system with competitive rules
jimmy2822 Aug 11, 2025
1b05419
Fix buy zone system to allow purchases during freeze time
jimmy2822 Aug 11, 2025
6c613a4
Fix buy menu not appearing - add missing HTML rendering
jimmy2822 Aug 11, 2025
8111f08
Update CLAUDE.md with buy menu fix documentation
jimmy2822 Aug 11, 2025
a793f25
Fix critical CS2D game bugs - bullet positioning and buy menu visibility
jimmy2822 Aug 11, 2025
7114ecd
Refactor CLAUDE.md for better organization and clarity
jimmy2822 Aug 11, 2025
ddd8749
Fix critical JavaScript initialization bug - game now loads properly
jimmy2822 Aug 11, 2025
1ae59ed
Update CLAUDE.md with critical JavaScript debugging insights
jimmy2822 Aug 11, 2025
fd1fd00
Clean up CS2D project - remove debug files and migrate Playwright to โ€ฆ
jimmy2822 Aug 11, 2025
7cba8f3
Refactor cs branch to contain only CS2D project files
jimmy2822 Aug 11, 2025
527790f
feat: Add comprehensive room lobby system for CS2D multiplayer
jimmy2822 Aug 11, 2025
5118561
fix: Enable room persistence in single-threaded mode for lobby system
jimmy2822 Aug 11, 2025
13635bd
feat: Implement async-redis integration for Falcon multi-threading suโ€ฆ
jimmy2822 Aug 11, 2025
1e2dbd4
chore: Clean up CS2D project - remove test files and legacy documentaโ€ฆ
jimmy2822 Aug 11, 2025
ffa30a8
docs: Update CLAUDE.md with async-redis integration and project cleanup
jimmy2822 Aug 12, 2025
98f677c
fix: Replace Redis SET with SETEX for async-redis compatibility
jimmy2822 Aug 12, 2025
d866fd8
feat: Implement comprehensive i18n support for game interface
jimmy2822 Aug 12, 2025
e024bec
docs: Refactor and modernize CLAUDE.md documentation
jimmy2822 Aug 12, 2025
d0736fc
feat: Complete bilingual game interface with comprehensive i18n
jimmy2822 Aug 12, 2025
4e7930a
fix: Replace remaining Redis SET with SETEX in room assignment
jimmy2822 Aug 12, 2025
2fcaa9c
fix: Fix unexpected return errors in async Redis blocks
jimmy2822 Aug 12, 2025
6d0a6b8
feat: Add room management controls to async Redis lobby
jimmy2822 Aug 12, 2025
ae23e2b
fix: Fix incorrect room count by cleaning up expired rooms
jimmy2822 Aug 12, 2025
7aec2a8
feat: Organize project structure and add room waiting functionality
jimmy2822 Aug 12, 2025
c2f53bf
Fix cant close
jimmy2822 Aug 12, 2025
0088a56
Test overcommit RuboCop integration
jimmy2822 Aug 12, 2025
135f807
Test RuboCop with bad formatting
jimmy2822 Aug 12, 2025
0f9e532
Clean up test files and add overcommit configuration
jimmy2822 Aug 12, 2025
b26b07c
feat: Complete Playwright testing and comprehensive bug fixes
jimmy2822 Aug 12, 2025
21df81b
chore: Update .gitignore for Playwright testing dependencies
jimmy2822 Aug 12, 2025
396c915
fix: Fix room creator identification and add comprehensive Playwrightโ€ฆ
jimmy2822 Aug 13, 2025
49c1c21
fix: Establish application.rb as proper server entrypoint
jimmy2822 Aug 13, 2025
b3ed36e
docs: Update CLAUDE.md to reflect application.rb as server entrypoint
jimmy2822 Aug 13, 2025
b3fd36a
docs: Add comprehensive architecture documentation and solution reports
jimmy2822 Aug 13, 2025
6e23122
feat: Add hybrid architecture implementation and experimental apps
jimmy2822 Aug 13, 2025
a9ef738
feat: Add static HTML pages and rack configuration for hybrid architeโ€ฆ
jimmy2822 Aug 13, 2025
5b3ec91
chore: Add development scripts for hybrid architecture deployment
jimmy2822 Aug 13, 2025
e883d71
test: Add comprehensive Playwright test suite for architecture validaโ€ฆ
jimmy2822 Aug 13, 2025
3657243
docs: Add screenshots documenting game flow and testing results
jimmy2822 Aug 13, 2025
6497010
feat: Major multiplayer improvements and bug fixes for CS2D game system
jimmy2822 Aug 14, 2025
94eb33c
feat: Improve UI and bot integration for CS2D multiplayer system
jimmy2822 Aug 14, 2025
b94bc4f
docs: Update CLAUDE.md with bot system and UI improvements
jimmy2822 Aug 14, 2025
4700d10
feat: Implement complete CS 1.6 game systems with authentic mechanics
jimmy2822 Aug 14, 2025
c74d079
feat: Add i18n support for static pages and enhance game UI
jimmy2822 Aug 14, 2025
7212491
feat: Complete weapon system implementation and critical bug fixes
jimmy2822 Aug 14, 2025
30e18d5
docs: Organize testing and documentation files
jimmy2822 Aug 14, 2025
3bc3c6f
cleanup: Remove duplicate files after reorganization
jimmy2822 Aug 14, 2025
29d2c57
feat: Implement comprehensive tile-based map system for CS2D
jimmy2822 Aug 15, 2025
2a3c6f2
feat: Complete Docker containerization of CS2D with production-ready โ€ฆ
jimmy2822 Aug 15, 2025
a328507
docs: Major CLAUDE.md refactoring for enterprise-ready CS2D platform
jimmy2822 Aug 15, 2025
8001d09
fix: Resolve Docker build failures and enable proper containerization
jimmy2822 Aug 15, 2025
a8e8282
chore: Add environment files to gitignore
jimmy2822 Aug 15, 2025
9ef351f
Remove unused file
jimmy2822 Aug 15, 2025
f29d9ef
feat: Add optimized Docker infrastructure with multi-stage builds
jimmy2822 Aug 15, 2025
fb44829
fix: Resolve Docker server startup issues and gem dependencies
jimmy2822 Aug 15, 2025
d2d2881
refactor: Major cleanup and preparation for open source release
jimmy2822 Aug 16, 2025
339b3e8
refactor: Complete project reorganization for clean architecture
jimmy2822 Aug 16, 2025
2ba20b3
feat: major v0.2 refactoring - frontend migration and render loop fixes
jimmy2822 Aug 16, 2025
18e8998
feat: Add multi-agent development system and skip markdown linting
jimmy2822 Aug 16, 2025
7a37fb4
major: migrate CS2D frontend from Vue 3 to React 18 with complete arcโ€ฆ
jimmy2822 Aug 16, 2025
36d61ed
feat: integrate TailwindCSS via multi-agent parallel development system
jimmy2822 Aug 16, 2025
76a7eb5
feat: setup comprehensive React testing infrastructure
jimmy2822 Aug 16, 2025
832a391
fix: resolve Vue-to-React component syntax issues
jimmy2822 Aug 16, 2025
dc1b085
test: update all tests to use real providers instead of mocks
jimmy2822 Aug 16, 2025
a8fcfa8
refactor: remove context test files in favor of real providers
jimmy2822 Aug 16, 2025
f34d1ae
docs: add testing documentation and real provider examples
jimmy2822 Aug 16, 2025
a3ddd73
fix: complete ESLint configuration for React/TypeScript project
jimmy2822 Aug 16, 2025
c996276
fix: resolve all ESLint errors in React/TypeScript source files
jimmy2822 Aug 16, 2025
f0f4a10
fix: resolve ESLint errors in test files and configuration
jimmy2822 Aug 16, 2025
38d1948
fix: separate Playwright e2e tests from Vitest unit tests
jimmy2822 Aug 17, 2025
6cb08b5
fix: resolve all TypeScript compilation errors for React migration
jimmy2822 Aug 17, 2025
455dc6f
feat: Implement complete Counter-Strike 1.6 authentic web experience
jimmy2822 Aug 17, 2025
1483044
feat: add pixel art UI components and enhance CS16 authentic game expโ€ฆ
jimmy2822 Aug 17, 2025
d63536c
fix: resolve all test configuration issues and ensure 100% test pass โ€ฆ
jimmy2822 Aug 17, 2025
4b07195
fix: update test configuration and fix port references
jimmy2822 Aug 17, 2025
4970792
feat: add enhanced UI components and automation scripts
jimmy2822 Aug 17, 2025
1a64196
chore: update cstrike submodule
jimmy2822 Aug 17, 2025
1661abe
refactor: reorganize project structure for better maintainability
jimmy2822 Aug 17, 2025
8264f83
fix: improve Playwright bot test reliability for game session
jimmy2822 Aug 17, 2025
56128f5
fix: resolve game start issues and enhance room functionality
jimmy2822 Aug 17, 2025
c017514
test(e2e): add Playwright E2E tests for room and game flows
jimmy2822 Aug 18, 2025
eef9249
test(spa e2e): use Playwright baseURL and relative routes; align SPA โ€ฆ
jimmy2822 Aug 18, 2025
14d2ff1
docs: add AGENTS.md directing agents to examples/cs2d/docs/CLAUDE.md
jimmy2822 Aug 18, 2025
b0bf5e3
docs: refactor CLAUDE.md to concise SPA-first guide; remove outdated โ€ฆ
jimmy2822 Aug 18, 2025
1d7e4b0
chore(frontend): fix ESLint/TS errors and stabilize config\n\n- Disabโ€ฆ
jimmy2822 Aug 18, 2025
06baf1f
test(e2e): reduce ESLint warnings in SPA tests\n\n- Remove unused expโ€ฆ
jimmy2822 Aug 18, 2025
2984ebd
chore(gemspec): add overcommit as development dependency
jimmy2822 Aug 18, 2025
2bb9253
feat(game): implement bomb plant/defuse, round phases, buy-time gatinโ€ฆ
jimmy2822 Aug 18, 2025
d945189
feat(cs2d): add collision detection, world-space camera, WebSocket inโ€ฆ
jimmy2822 Aug 19, 2025
e55d5e2
test(cs2d): add comprehensive Playwright test suite with self-improviโ€ฆ
jimmy2822 Aug 19, 2025
c7c3c8a
docs(cs2d): refactor CLAUDE.md with comprehensive testing guide and uโ€ฆ
jimmy2822 Aug 19, 2025
1c9ee17
refactor(cs2d): add cleanup scripts to migrate to TypeScript SPA-onlyโ€ฆ
jimmy2822 Aug 19, 2025
3b45cc6
docs(cs2d): refactor CLAUDE.md for TypeScript SPA-only architecture
jimmy2822 Aug 19, 2025
709d90e
feat(cs2d): implement comprehensive UI/UX optimizations and performanโ€ฆ
jimmy2822 Aug 19, 2025
2f51dca
fix(cs2d): resolve all ESLint errors and warnings
jimmy2822 Aug 20, 2025
21a471d
feat(cs2d): implement complete CS 1.6 authentic audio system
jimmy2822 Aug 22, 2025
a89a430
feat(cs2d): integrate multiplayer state management and WebSocket gameโ€ฆ
jimmy2822 Aug 22, 2025
0c677db
fix(cs2d): resolve React app initialization and runtime errors
jimmy2822 Aug 22, 2025
8d67b88
docs(cs2d): add comprehensive project documentation
jimmy2822 Aug 23, 2025
f5190c8
feat(cs2d): enhance lobby UI/UX and implement audio fallback system
jimmy2822 Aug 23, 2025
9cc44b8
docs(cs2d): update CLAUDE.md and README.md for v0.3.0
jimmy2822 Aug 23, 2025
b4afc4b
fix(cs2d): resolve CSS compilation errors and restore game functionality
jimmy2822 Aug 23, 2025
d751203
fix(cs2d): restore full game mechanics - movement, shooting, and physics
jimmy2822 Aug 24, 2025
87e47cd
fix(cs2d): align physics collision with visual map rendering
jimmy2822 Aug 24, 2025
48d3da5
revert(cs2d): temporarily switch back to original GameCore
jimmy2822 Aug 24, 2025
a6fa0de
feat(cs2d): successfully integrate all enhanced systems into GameCore
jimmy2822 Aug 24, 2025
a8525cd
fix(cs2d): fix Start Game button navigation issue
jimmy2822 Aug 24, 2025
2c12859
feat(cs2d): achieve production-ready status with comprehensive systemโ€ฆ
jimmy2822 Aug 24, 2025
14c2128
refactor(cs2d): massive architecture transformation for SPA optimization
jimmy2822 Aug 24, 2025
acbef8c
docs(cs2d): add refactoring documentation for architecture transformaโ€ฆ
jimmy2822 Aug 24, 2025
46a3c2e
fix(cs2d): improve player rendering and fix spawn overlap issues
jimmy2822 Aug 24, 2025
d29e90d
perf(cs2d): critical performance & security improvements - 144+ FPS aโ€ฆ
jimmy2822 Aug 24, 2025
c38cf63
feat(cs2d): complete game with modern UI/UX and production systems
jimmy2822 Aug 25, 2025
bcfb371
feat(pnpm): unified startup system for all servers
jimmy2822 Aug 25, 2025
e076c0d
test(cs2d): add manual gameplay test spec
jimmy2822 Aug 27, 2025
9278904
feat(cs2d): implement wall penetration damage system
jimmy2822 Sep 30, 2025
f194c0f
feat(cs2d): implement buy zone detection system
jimmy2822 Sep 30, 2025
3013684
feat(cs2d): add smoke grenade line-of-sight blocking
jimmy2822 Sep 30, 2025
2512b4a
feat(cs2d): add VisionSystem, SpectatorSystem, and SpawnSystem
jimmy2822 Sep 30, 2025
4e4e162
fix(cs2d): resolve undefined team variable in BuyMenuHUD
jimmy2822 Sep 30, 2025
768c713
feat(cs2d): integrate SpawnSystem, VisionSystem, and SpectatorSystem
jimmy2822 Sep 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,20 @@

/.github/workflows/test-external.yaml
/examples/*/*.sqlite3*

# macOS system files
.DS_Store
**/.DS_Store

# Debug and temporary files
debug-*.js
test-*.js
debug-*.png
test-*.png
*.backup

# References/temp debugging assets
references/

# Playwright test artifacts
.playwright-mcp/
33 changes: 33 additions & 0 deletions .overcommit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Use this file to configure the Overcommit hooks you wish to use. This will
# extend the default configuration defined in:
# https://github.com/sds/overcommit/blob/master/config/default.yml
#
# At the topmost level of this YAML file is a key representing type of hook
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
# customize each hook, such as whether to only run it on certain files (via
# `include`), whether to only display output if it fails (via `quiet`), etc.
#
# For a complete list of hooks, see:
# https://github.com/sds/overcommit/tree/master/lib/overcommit/hook
#
# For a complete list of options that you can use to customize hooks, see:
# https://github.com/sds/overcommit#configuration
#
# Uncomment the following lines to make the configuration take effect.

#PreCommit:
# RuboCop:
# enabled: true
# on_warn: fail # Treat all warnings as failures
#
# TrailingWhitespace:
# enabled: true
# exclude:
# - '**/db/structure.sql' # Ignore trailing whitespace in generated files
#
#PostCheckout:
# ALL: # Special hook name that customizes all hooks of this type
# quiet: true # Change all post-checkout hooks to only display output on failure
#
# IndexTags:
# enabled: true # Generate a tags file with `ctags` each time HEAD changes
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3.6
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.3.6
13 changes: 13 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# AGENTS.md โ€” Start Here (AI Coding Agents)

Welcome! Before making any changes or running tests, read the project guide below. It contains required conventions, architecture notes, and workflows used in this repo.

Primary guide (must read):
- examples/cs2d/docs/CLAUDE.md

Notes for agents:
- Treat the above file as the source of truth for development flow.
- If instructions in other docs conflict, defer to CLAUDE.md.
- After reading, apply the guidance to testing (SPA-first E2E), server ports, and coding style.

If the path changes, search for "CLAUDE.md" in the repo and follow its latest location.
2 changes: 2 additions & 0 deletions examples/cs2d/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
BUNDLE_WITH: "test"
102 changes: 102 additions & 0 deletions examples/cs2d/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
# Git
.git
.gitignore
.github

# Docker
Dockerfile*
docker-compose*.yml
.dockerignore

# Development
*.swp
*.swo
*~
.DS_Store
.idea
.vscode
*.sublime-*

# Ruby
*.gem
*.rbc
.bundle
.config
coverage
InstalledFiles
lib/bundler/man
pkg
rdoc
spec/reports
test/tmp
test/version_tmp
tmp
.ruby-version
.ruby-gemset
.rvmrc

# Logs
*.log
log/
logs/
api_server.log

# Documentation
*.md
docs/
LICENSE
README*

# Testing
test_*.js
test_*.rb
spec/
test/
node_modules/
playwright-report/
test-results/

# Cache
.cache
.sass-cache
*.cache

# Environment
.env
.env.*
!.env.example

# Temporary files
temp/
tmp/
*.tmp
*.bak
*.backup

# OS Files
Thumbs.db
ehthumbs.db
Desktop.ini
$RECYCLE.BIN/

# Archives
*.tar
*.tar.gz
*.zip
*.7z
*.rar

# Database dumps
*.sql
*.sqlite
*.db

# IDE
.project
.classpath
.c9/
*.launch
.settings/
*.tmproj
nbproject/
.nb-gradle/
63 changes: 63 additions & 0 deletions examples/cs2d/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# CS2D Environment Configuration
# Copy this file to .env and customize for your environment

# Redis Configuration
REDIS_URL=redis://redis:6379/0
REDIS_MAX_CONNECTIONS=10
REDIS_TIMEOUT=5

# Application Ports
LIVELY_PORT=9292
STATIC_PORT=9293
API_PORT=9294

# Server Configuration
SERVER_HOSTNAME=localhost
SERVER_PROTOCOL=http
WS_PROTOCOL=ws

# Environment
RACK_ENV=production
LIVELY_ENV=production
NODE_ENV=production

# Logging
LOG_LEVEL=info
LOG_FORMAT=json

# Game Configuration
MAX_ROOMS=100
MAX_PLAYERS_PER_ROOM=10
ROOM_TTL=3600
PLAYER_TTL=300

# Performance
WORKER_PROCESSES=4
WORKER_CONNECTIONS=1024

# Security
SECRET_KEY_BASE=change_me_in_production_to_a_long_random_string
ALLOWED_ORIGINS=http://localhost:9292,http://localhost:9293

# Feature Flags
ENABLE_BOT_AI=true
ENABLE_TILE_MAPS=true
ENABLE_VOICE_CHAT=false

# Monitoring (optional)
SENTRY_DSN=
NEW_RELIC_LICENSE_KEY=
DATADOG_API_KEY=

# SSL (for production)
SSL_CERT_PATH=/etc/nginx/ssl/cert.pem
SSL_KEY_PATH=/etc/nginx/ssl/key.pem

# Database (future use)
DATABASE_URL=postgresql://user:password@postgres:5432/cs2d_production

# S3 (for asset storage - future use)
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
S3_BUCKET=
S3_REGION=us-east-1
88 changes: 88 additions & 0 deletions examples/cs2d/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/strict",
"prettier"
],
"plugins": ["@typescript-eslint", "prettier"],
"rules": {
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unsafe-argument": "error",
"@typescript-eslint/no-unsafe-assignment": "error",
"@typescript-eslint/no-unsafe-call": "error",
"@typescript-eslint/no-unsafe-member-access": "error",
"@typescript-eslint/no-unsafe-return": "error",
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true,
"allowHigherOrderFunctions": true,
"allowDirectConstAssertionInArrowFunctions": true,
"allowConciseArrowFunctionExpressionsStartingWithVoid": true
}
],
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/no-non-null-assertion": "error",
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
"allowString": false,
"allowNumber": false,
"allowNullableObject": false
}
],
"@typescript-eslint/no-unnecessary-condition": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error",
"@typescript-eslint/prefer-nullish-coalescing": "error",
"@typescript-eslint/prefer-optional-chain": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/prefer-string-starts-ends-with": "error",
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-debugger": "error",
"prettier/prettier": "error"
},
"env": {
"browser": true,
"es2022": true,
"node": true
},
"ignorePatterns": [
"dist",
"build",
"coverage",
"node_modules",
"*.config.js",
"*.config.ts",
"vite.config.ts",
"playwright.config.js",
"tests/**/*.js",
"frontend/**/*",
"public/**/*"
]
}
Loading