{"id":49587549,"url":"https://github.com/dadavidtseng/daemonstein","last_synced_at":"2026-05-03T23:05:53.799Z","repository":{"id":287818274,"uuid":"946428253","full_name":"dadavidtseng/Daemonstein","owner":"dadavidtseng","description":"A DOOM-inspired 3D first-person shooter with sprite-based enemies, split-screen multiplayer, and data-driven design","archived":false,"fork":false,"pushed_at":"2026-02-16T03:32:55.000Z","size":4922,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-16T10:35:33.228Z","etag":null,"topics":["cpp","cpp20","data-dr","directx11","doom","dx11","fmod","game","game-development","split-screen"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dadavidtseng.png","metadata":{"files":{"readme":"Docs/README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-03-11T05:56:19.000Z","updated_at":"2026-02-16T03:32:58.000Z","dependencies_parsed_at":"2025-04-21T06:28:13.465Z","dependency_job_id":null,"html_url":"https://github.com/dadavidtseng/Daemonstein","commit_stats":null,"previous_names":["dadavidtseng/doomenstein","dadavidtseng/daemonstein"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dadavidtseng/Daemonstein","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadavidtseng%2FDaemonstein","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadavidtseng%2FDaemonstein/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadavidtseng%2FDaemonstein/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadavidtseng%2FDaemonstein/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dadavidtseng","download_url":"https://codeload.github.com/dadavidtseng/Daemonstein/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dadavidtseng%2FDaemonstein/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32587829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","cpp20","data-dr","directx11","doom","dx11","fmod","game","game-development","split-screen"],"created_at":"2026-05-03T23:05:43.995Z","updated_at":"2026-05-03T23:05:53.791Z","avatar_url":"https://github.com/dadavidtseng.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca id=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n![C++](https://img.shields.io/badge/C%2B%2B-20-00599C?style=for-the-badge\u0026logo=cplusplus\u0026logoColor=white)\n![DirectX](https://img.shields.io/badge/DirectX-11-107C10?style=for-the-badge\u0026logo=xbox\u0026logoColor=white)\n![FMOD](https://img.shields.io/badge/FMOD-000000?style=for-the-badge\u0026logo=fmod\u0026logoColor=white)\n![Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge\u0026logo=windows\u0026logoColor=white)\n[![Apache 2.0 License][license-shield]][license-url]\n\n\u003c!-- PROJECT TITLE --\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eDaemonstein\u003c/h1\u003e\n  \u003cp\u003eA DOOM-inspired 3D first-person shooter with sprite-based enemies, split-screen multiplayer, and data-driven design\u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- TODO: Replace with actual gameplay GIF or screenshot --\u003e\n\u003c!-- \u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"docs/images/demo.gif\" alt=\"Daemonstein Gameplay\" width=\"720\"\u003e\n\u003c/div\u003e --\u003e\n\n## Table of Contents\n\n- [Overview](#overview)\n- [Features](#features)\n- [How to Install](#how-to-install)\n- [How to Use](#how-to-use)\n- [Project Structure](#project-structure)\n- [License](#license)\n- [Contact](#contact)\n\n## Overview\n\nDaemonstein is a 3D first-person shooter inspired by classic DOOM. Players control a Marine (100 HP) armed with a Pistol and Plasma Rifle, fighting through tile-based maps populated by Demon enemies (160 HP) that use sight-based AI with a 120° field of view. The game supports local 2-player split-screen via a lobby system, with both keyboard/mouse and Xbox controller input.\n\nBuilt as a course project at SMU Guildhall, the game runs on a custom [Daemon Engine](https://github.com/dadavidtseng/Engine) providing DirectX 11 rendering with diffuse lighting, FMOD 3D audio, sprite-based 8-directional animations, and a developer console with V8 JavaScript integration.\n\n## Features\n\n- **Sprite-based 8-directional enemies** — Demons rendered as billboarded sprites with walk, attack, hurt, and death animations from 8 viewing angles\n- **3 weapon types** — Pistol (hitscan, 10–15 dmg), Plasma Rifle (projectile, rapid-fire), and Demon Melee (180° arc, AI-only)\n- **Local 2-player split-screen** — Lobby-based join system with horizontal viewport splitting and independent cameras\n- **Sight-based AI** — Enemies detect targets within a 64-unit radius and 120° cone, chase using turn-toward steering, and engage in melee range\n- **Data-driven design** — XML files define all actors, weapons, maps, tiles, and spawn configurations\n\n## How to Install\n\n### Prerequisites\n\n- Visual Studio 2022 (or 2019) with C++ desktop development workload\n- Windows 10/11 (x64)\n- DirectX 11 compatible GPU\n- [Daemon Engine](https://github.com/dadavidtseng/Engine) cloned as a sibling directory\n\n### Build\n\n```bash\n# Clone both repos side by side\ngit clone https://github.com/dadavidtseng/Engine.git\ngit clone https://github.com/dadavidtseng/Daemonstein.git\n\n# Directory layout should be:\n# ├── Engine/\n# └── Daemonstein/\n```\n\n1. Open `Doomenstein.sln` in Visual Studio\n2. Set configuration to `Debug | x64`\n3. Build the solution (the Engine project is referenced automatically)\n4. The executable is deployed to `Run/` via post-build event\n\n## How to Use\n\n### Controls (Keyboard \u0026 Mouse)\n\n| Action | Key |\n|--------|-----|\n| Move | W / A / S / D |\n| Look | Mouse |\n| Shoot | Left Mouse Button |\n| Sprint | Shift |\n| Switch to Pistol | 1 |\n| Switch to Plasma Rifle | 2 |\n| Free camera toggle | F |\n| Possess next actor | N |\n\n### Controls (Xbox Controller)\n\n| Action | Button |\n|--------|--------|\n| Move | Left Stick |\n| Look | Right Stick |\n| Shoot | Right Trigger |\n| Sprint | A |\n| Switch weapon | D-Pad Up / Down, X / Y |\n\n### Debug Controls\n\n| Action | Key |\n|--------|-----|\n| Developer console | ` |\n\n### Game Flow\n\n1. **Attract Mode** — Title screen (press Space or Start to join)\n2. **Lobby** — Players join/leave; press Space/Start again to begin or add a second player\n3. **In-Game** — FPS combat on tile-based maps (TestMap, MPMap)\n\n### Running\n\nLaunch `Run/Doomenstein_Debug_x64.exe` from the `Run/` directory (working directory must be `Run/` for asset loading).\n\n## Project Structure\n\n```\nDaemonstein/\n├── Code/Game/\n│   ├── Definition/                # Data-driven definitions\n│   │   ├── ActorDefinition        # Actor stats, visuals, sounds, inventory\n│   │   ├── MapDefinition          # Map image, spawn info, tile sheets\n│   │   ├── TileDefinition         # Tile type properties\n│   │   └── WeaponDefinition       # Weapon stats, HUD, projectiles\n│   ├── Framework/                 # Application framework\n│   │   ├── Main_Windows.cpp       # WinMain entry point\n│   │   ├── App                    # Application lifecycle\n│   │   ├── GameCommon             # Global pointers and constants\n│   │   ├── Controller             # Base controller (viewport, cameras)\n│   │   ├── PlayerController       # Keyboard/mouse \u0026 gamepad input\n│   │   ├── AIController           # Sight-based enemy AI\n│   │   ├── Animation              # Sprite animation playback\n│   │   └── AnimationGroup         # 8-directional animation sets\n│   ├── Gameplay/                  # Core game logic\n│   │   ├── Game                   # State machine, lobby, split-screen\n│   │   ├── Map                    # Tile world, raycasting, actor management\n│   │   ├── Actor                  # Entity with physics, combat, inventory\n│   │   ├── Tile                   # Individual tile in the grid\n│   │   ├── Weapon                 # Hitscan, projectile, melee systems\n│   │   ├── HUD                    # Weapon sprite, reticle, health display\n│   │   └── Sound                  # FMOD audio wrapper\n│   └── Subsystem/                 # Engine subsystems\n│       ├── Light/                 # Diffuse lighting\n│       └── Widget/                # UI widget framework\n├── Run/                           # Runtime directory\n│   ├── Data/Audio/                # SFX + music (WAV, MP2, MP3)\n│   ├── Data/Definitions/          # XML config (Actors, Weapons, Maps, Tiles)\n│   ├── Data/Fonts/                # Bitmap fonts (PNG)\n│   ├── Data/Images/               # Sprite sheets and textures\n│   ├── Data/Maps/                 # Map images (PNG, 32×32 grids)\n│   └── Data/Shaders/              # HLSL shaders (Default, Diffuse)\n├── Docs/                          # Documentation\n└── Doomenstein.sln                # Visual Studio solution\n```\n\n## License\n\nCopyright 2025 Yu-Wei Tseng\n\nLicensed under the [Apache License, Version 2.0](../LICENSE).\n\n## Contact\n\n**Yu-Wei Tseng**\n- Portfolio: [dadavidtseng.info](https://dadavidtseng.info)\n- GitHub: [@dadavidtseng](https://github.com/dadavidtseng)\n- LinkedIn: [dadavidtseng](https://www.linkedin.com/in/dadavidtseng/)\n- Email: dadavidtseng@gmail.com\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- REFERENCE-STYLE LINKS --\u003e\n[license-shield]: https://img.shields.io/github/license/dadavidtseng/Daemonstein.svg?style=for-the-badge\n[license-url]: https://github.com/dadavidtseng/Daemonstein/blob/main/LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadavidtseng%2Fdaemonstein","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdadavidtseng%2Fdaemonstein","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdadavidtseng%2Fdaemonstein/lists"}