Initial commit: Browser Survival Game
85
.gitignore
vendored
Normal file
@ -0,0 +1,85 @@
|
||||
# Node modules
|
||||
node_modules/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
*.pid
|
||||
*.seed
|
||||
*.pid.lock
|
||||
|
||||
# Coverage directory used by tools like istanbul
|
||||
coverage/
|
||||
|
||||
# nyc test coverage
|
||||
.nyc_output
|
||||
|
||||
# Grunt intermediate storage
|
||||
.grunt
|
||||
|
||||
# Bower dependency directory
|
||||
bower_components
|
||||
|
||||
# node-waf configuration
|
||||
.lock-wscript
|
||||
|
||||
# Compiled binary addons
|
||||
build/Release
|
||||
|
||||
# Dependency directories
|
||||
node_modules/
|
||||
jspm_packages/
|
||||
|
||||
# TypeScript v1 declaration files
|
||||
typings/
|
||||
|
||||
# Optional npm cache directory
|
||||
.npm
|
||||
|
||||
# Optional eslint cache
|
||||
.eslintcache
|
||||
|
||||
# Optional REPL history
|
||||
.node_repl_history
|
||||
|
||||
# Output of 'npm pack'
|
||||
*.tgz
|
||||
|
||||
# Yarn Integrity file
|
||||
.yarn-integrity
|
||||
|
||||
# dotenv environment variables file
|
||||
.env
|
||||
|
||||
# IDE files
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
|
||||
# OS generated files
|
||||
.DS_Store
|
||||
.DS_Store?
|
||||
._*
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
ehthumbs.db
|
||||
Thumbs.db
|
||||
|
||||
# Logs
|
||||
logs
|
||||
*.log
|
||||
|
||||
# Temporary files
|
||||
tmp/
|
||||
temp/
|
||||
|
||||
# Build outputs
|
||||
dist/
|
||||
build/
|
||||
|
||||
# Cache
|
||||
.cache/
|
||||
77
README.md
Normal file
@ -0,0 +1,77 @@
|
||||
# Browser Survival Game
|
||||
|
||||
Ein 2D-Survival-Spiel im Browser mit prozeduraler Weltgenerierung.
|
||||
|
||||
## Features
|
||||
|
||||
- **Prozedurale Weltgenerierung**: Unendliche Welt mit Perlin Noise-basierten Biomen
|
||||
- **Chunk-System**: Optimierte Performance durch dynamisches Laden/Entladen von Weltabschnitten
|
||||
- **Ressourcen-Management**: Sammle Stöcker, Holz und Steine
|
||||
- **Crafting-System**: Erstelle Werkzeuge (Axt, Spitzhacke) und Gebäude (Lagerfeuer)
|
||||
- **2D-Grafiken**: Vollständiges Sprite-System mit animierten Objekten
|
||||
- **Kamera-System**: Sanftes Spieler-Tracking und Koordinatentransformation
|
||||
|
||||
## Steuerung
|
||||
|
||||
- **WASD / Pfeiltasten**: Spieler bewegen
|
||||
- **Tab**: Inventar anzeigen/verstecken
|
||||
- **Q**: Axt craften (benötigt 2 Stöcker)
|
||||
- **R**: Spitzhacke craften (benötigt 1 Stock + 2 Holz)
|
||||
- **E**: Lagerfeuer craften (benötigt 5 Holz)
|
||||
|
||||
## Spielmechaniken
|
||||
|
||||
### Ressourcen sammeln
|
||||
- **Stöcker**: Können ohne Werkzeug gesammelt werden
|
||||
- **Bäume**: Benötigen eine Axt zum Fällen
|
||||
- **Steine**: Benötigen eine Spitzhacke zum Abbauen
|
||||
|
||||
### Gesundheitssystem
|
||||
- Gesundheit regeneriert sich in der Nähe von Lagerfeuern
|
||||
- Gesundheitsanzeige immer sichtbar
|
||||
|
||||
## Technische Details
|
||||
|
||||
### Weltgenerierung
|
||||
- **Perlin Noise**: Für natürliche Biom-Verteilung
|
||||
- **Chunk-Größe**: 400x400 Pixel
|
||||
- **Render-Distanz**: 2 Chunks um den Spieler
|
||||
- **Tile-Größe**: 32x32 Pixel
|
||||
|
||||
### Assets
|
||||
- Vollständiges Tileset mit 64+ Sumpf-Varianten
|
||||
- Verschiedene Baum-, Stein- und Stick-Sprites
|
||||
- Animierte Fackeln für Lagerfeuer
|
||||
- Schatten-System für Tiefeneffekt
|
||||
|
||||
## Installation
|
||||
|
||||
1. Repository klonen
|
||||
2. `index.html` in einem modernen Browser öffnen
|
||||
3. Spielen!
|
||||
|
||||
## Entwicklung
|
||||
|
||||
Das Spiel ist in reinem JavaScript geschrieben und benötigt keine Build-Tools oder Dependencies.
|
||||
|
||||
### Dateistruktur
|
||||
```
|
||||
├── index.html # Haupt-HTML-Datei
|
||||
├── game.js # Gesamte Spiellogik
|
||||
└── assets/ # Grafik-Assets
|
||||
├── 1 Tiles/ # Boden-Tiles
|
||||
├── 2 Objects/ # Spielobjekte
|
||||
└── 3 Animated Objects/ # Animierte Objekte
|
||||
```
|
||||
|
||||
## Geplante Features
|
||||
|
||||
- Weitere Biome und Ressourcen
|
||||
- Feinde und Kampfsystem
|
||||
- Erweiterte Gebäude
|
||||
- Multiplayer-Unterstützung
|
||||
- Sound-Effekte und Musik
|
||||
|
||||
## Lizenz
|
||||
|
||||
MIT License - Siehe LICENSE-Datei für Details.
|
||||
BIN
assets/1 Tiles/SwampTile_01.png
Normal file
|
After Width: | Height: | Size: 491 B |
BIN
assets/1 Tiles/SwampTile_02.png
Normal file
|
After Width: | Height: | Size: 535 B |
BIN
assets/1 Tiles/SwampTile_03.png
Normal file
|
After Width: | Height: | Size: 524 B |
BIN
assets/1 Tiles/SwampTile_04.png
Normal file
|
After Width: | Height: | Size: 502 B |
BIN
assets/1 Tiles/SwampTile_05.png
Normal file
|
After Width: | Height: | Size: 513 B |
BIN
assets/1 Tiles/SwampTile_06.png
Normal file
|
After Width: | Height: | Size: 564 B |
BIN
assets/1 Tiles/SwampTile_07.png
Normal file
|
After Width: | Height: | Size: 555 B |
BIN
assets/1 Tiles/SwampTile_08.png
Normal file
|
After Width: | Height: | Size: 616 B |
BIN
assets/1 Tiles/SwampTile_09.png
Normal file
|
After Width: | Height: | Size: 552 B |
BIN
assets/1 Tiles/SwampTile_10.png
Normal file
|
After Width: | Height: | Size: 538 B |
BIN
assets/1 Tiles/SwampTile_12.png
Normal file
|
After Width: | Height: | Size: 607 B |
BIN
assets/1 Tiles/SwampTile_13.png
Normal file
|
After Width: | Height: | Size: 524 B |
BIN
assets/1 Tiles/SwampTile_14.png
Normal file
|
After Width: | Height: | Size: 527 B |
BIN
assets/1 Tiles/SwampTile_15.png
Normal file
|
After Width: | Height: | Size: 594 B |
BIN
assets/1 Tiles/SwampTile_16.png
Normal file
|
After Width: | Height: | Size: 498 B |
BIN
assets/1 Tiles/SwampTile_17.png
Normal file
|
After Width: | Height: | Size: 562 B |
BIN
assets/1 Tiles/SwampTile_18.png
Normal file
|
After Width: | Height: | Size: 467 B |
BIN
assets/1 Tiles/SwampTile_19.png
Normal file
|
After Width: | Height: | Size: 598 B |
BIN
assets/1 Tiles/SwampTile_20.png
Normal file
|
After Width: | Height: | Size: 461 B |
BIN
assets/1 Tiles/SwampTile_21.png
Normal file
|
After Width: | Height: | Size: 528 B |
BIN
assets/1 Tiles/SwampTile_22.png
Normal file
|
After Width: | Height: | Size: 574 B |
BIN
assets/1 Tiles/SwampTile_23.png
Normal file
|
After Width: | Height: | Size: 508 B |
BIN
assets/1 Tiles/SwampTile_24.png
Normal file
|
After Width: | Height: | Size: 567 B |
BIN
assets/1 Tiles/SwampTile_25.png
Normal file
|
After Width: | Height: | Size: 516 B |
BIN
assets/1 Tiles/SwampTile_26.png
Normal file
|
After Width: | Height: | Size: 534 B |
BIN
assets/1 Tiles/SwampTile_27.png
Normal file
|
After Width: | Height: | Size: 464 B |
BIN
assets/1 Tiles/SwampTile_28.png
Normal file
|
After Width: | Height: | Size: 573 B |
BIN
assets/1 Tiles/SwampTile_29.png
Normal file
|
After Width: | Height: | Size: 548 B |
BIN
assets/1 Tiles/SwampTile_30.png
Normal file
|
After Width: | Height: | Size: 587 B |
BIN
assets/1 Tiles/SwampTile_31.png
Normal file
|
After Width: | Height: | Size: 537 B |
BIN
assets/1 Tiles/SwampTile_32.png
Normal file
|
After Width: | Height: | Size: 583 B |
BIN
assets/1 Tiles/SwampTile_33.png
Normal file
|
After Width: | Height: | Size: 487 B |
BIN
assets/1 Tiles/SwampTile_34.png
Normal file
|
After Width: | Height: | Size: 536 B |
BIN
assets/1 Tiles/SwampTile_35.png
Normal file
|
After Width: | Height: | Size: 518 B |
BIN
assets/1 Tiles/SwampTile_36.png
Normal file
|
After Width: | Height: | Size: 502 B |
BIN
assets/1 Tiles/SwampTile_37.png
Normal file
|
After Width: | Height: | Size: 522 B |
BIN
assets/1 Tiles/SwampTile_39.png
Normal file
|
After Width: | Height: | Size: 531 B |
BIN
assets/1 Tiles/SwampTile_40.png
Normal file
|
After Width: | Height: | Size: 591 B |
BIN
assets/1 Tiles/SwampTile_41.png
Normal file
|
After Width: | Height: | Size: 568 B |
BIN
assets/1 Tiles/SwampTile_42.png
Normal file
|
After Width: | Height: | Size: 560 B |
BIN
assets/1 Tiles/SwampTile_43.png
Normal file
|
After Width: | Height: | Size: 579 B |
BIN
assets/1 Tiles/SwampTile_44.png
Normal file
|
After Width: | Height: | Size: 578 B |
BIN
assets/1 Tiles/SwampTile_45.png
Normal file
|
After Width: | Height: | Size: 509 B |
BIN
assets/1 Tiles/SwampTile_46.png
Normal file
|
After Width: | Height: | Size: 545 B |
BIN
assets/1 Tiles/SwampTile_47.png
Normal file
|
After Width: | Height: | Size: 563 B |
BIN
assets/1 Tiles/SwampTile_48.png
Normal file
|
After Width: | Height: | Size: 582 B |
BIN
assets/1 Tiles/SwampTile_49.png
Normal file
|
After Width: | Height: | Size: 567 B |
BIN
assets/1 Tiles/SwampTile_50.png
Normal file
|
After Width: | Height: | Size: 570 B |
BIN
assets/1 Tiles/SwampTile_51.png
Normal file
|
After Width: | Height: | Size: 548 B |
BIN
assets/1 Tiles/SwampTile_52.png
Normal file
|
After Width: | Height: | Size: 581 B |
BIN
assets/1 Tiles/SwampTile_53.png
Normal file
|
After Width: | Height: | Size: 598 B |
BIN
assets/1 Tiles/SwampTile_54.png
Normal file
|
After Width: | Height: | Size: 561 B |
BIN
assets/1 Tiles/SwampTile_55.png
Normal file
|
After Width: | Height: | Size: 540 B |
BIN
assets/1 Tiles/SwampTile_56.png
Normal file
|
After Width: | Height: | Size: 556 B |
BIN
assets/1 Tiles/SwampTile_57.png
Normal file
|
After Width: | Height: | Size: 507 B |
BIN
assets/1 Tiles/SwampTile_58.png
Normal file
|
After Width: | Height: | Size: 550 B |
BIN
assets/1 Tiles/SwampTile_59.png
Normal file
|
After Width: | Height: | Size: 541 B |
BIN
assets/1 Tiles/SwampTile_60.png
Normal file
|
After Width: | Height: | Size: 535 B |
BIN
assets/1 Tiles/SwampTile_61.png
Normal file
|
After Width: | Height: | Size: 549 B |
BIN
assets/1 Tiles/SwampTile_62.png
Normal file
|
After Width: | Height: | Size: 578 B |
BIN
assets/1 Tiles/SwampTile_63.png
Normal file
|
After Width: | Height: | Size: 552 B |
BIN
assets/1 Tiles/SwampTile_64.png
Normal file
|
After Width: | Height: | Size: 567 B |
BIN
assets/1 Tiles/gras.png
Normal file
|
After Width: | Height: | Size: 140 B |
BIN
assets/1 Tiles/weg.png
Normal file
|
After Width: | Height: | Size: 456 B |
BIN
assets/2 Objects/1 Shadow/1.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
assets/2 Objects/1 Shadow/2.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
assets/2 Objects/1 Shadow/3.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
assets/2 Objects/1 Shadow/4.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
assets/2 Objects/1 Shadow/5.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
assets/2 Objects/1 Shadow/6.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
assets/2 Objects/2 Tree/1.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
assets/2 Objects/2 Tree/10.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/2 Objects/2 Tree/11.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/2 Objects/2 Tree/12.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/2 Objects/2 Tree/2.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/2 Objects/2 Tree/3.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
assets/2 Objects/2 Tree/4.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
assets/2 Objects/2 Tree/5.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/2 Objects/2 Tree/6.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/2 Objects/2 Tree/7.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/2 Objects/2 Tree/8.png
Normal file
|
After Width: | Height: | Size: 1005 B |
BIN
assets/2 Objects/2 Tree/9.png
Normal file
|
After Width: | Height: | Size: 1008 B |
BIN
assets/2 Objects/3 Grass/1.png
Normal file
|
After Width: | Height: | Size: 973 B |
BIN
assets/2 Objects/3 Grass/10.png
Normal file
|
After Width: | Height: | Size: 970 B |
BIN
assets/2 Objects/3 Grass/11.png
Normal file
|
After Width: | Height: | Size: 967 B |
BIN
assets/2 Objects/3 Grass/12.png
Normal file
|
After Width: | Height: | Size: 968 B |
BIN
assets/2 Objects/3 Grass/2.png
Normal file
|
After Width: | Height: | Size: 965 B |
BIN
assets/2 Objects/3 Grass/3.png
Normal file
|
After Width: | Height: | Size: 965 B |
BIN
assets/2 Objects/3 Grass/4.png
Normal file
|
After Width: | Height: | Size: 962 B |
BIN
assets/2 Objects/3 Grass/5.png
Normal file
|
After Width: | Height: | Size: 964 B |
BIN
assets/2 Objects/3 Grass/6.png
Normal file
|
After Width: | Height: | Size: 969 B |
BIN
assets/2 Objects/3 Grass/7.png
Normal file
|
After Width: | Height: | Size: 966 B |
BIN
assets/2 Objects/3 Grass/8.png
Normal file
|
After Width: | Height: | Size: 966 B |
BIN
assets/2 Objects/3 Grass/9.png
Normal file
|
After Width: | Height: | Size: 965 B |
BIN
assets/2 Objects/4 Stone/1.png
Normal file
|
After Width: | Height: | Size: 997 B |
BIN
assets/2 Objects/4 Stone/10.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
assets/2 Objects/4 Stone/2.png
Normal file
|
After Width: | Height: | Size: 994 B |
BIN
assets/2 Objects/4 Stone/3.png
Normal file
|
After Width: | Height: | Size: 997 B |