{"id":26051963,"url":"https://github.com/adia-dev/ai-fighting-game","last_synced_at":"2025-03-08T05:13:51.471Z","repository":{"id":277594662,"uuid":"929605563","full_name":"adia-dev/ai-fighting-game","owner":"adia-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-14T19:22:44.000Z","size":9116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-28T09:05:01.017Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/adia-dev.png","metadata":{"files":{"readme":"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}},"created_at":"2025-02-08T23:42:46.000Z","updated_at":"2025-02-14T19:22:47.000Z","dependencies_parsed_at":"2025-02-14T20:35:23.182Z","dependency_job_id":null,"html_url":"https://github.com/adia-dev/ai-fighting-game","commit_stats":null,"previous_names":["adia-dev/ai-fighting-game"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fai-fighting-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fai-fighting-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fai-fighting-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fai-fighting-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adia-dev","download_url":"https://codeload.github.com/adia-dev/ai-fighting-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242501142,"owners_count":20139321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-03-08T05:13:50.778Z","updated_at":"2025-03-08T05:13:51.453Z","avatar_url":"https://github.com/adia-dev.png","language":"C++","readme":"# Fighting Game Project\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/bd26ae13-45ae-463e-a161-8e0a934eba90\" alt=\"Game Screenshot\"\u003e\n\u003c/p\u003e\n\nA 2D fighting game with neural network-powered AI opponents, built with SDL2 and ImGui.\n\n## Features\n\n- Real-time 2D combat system with combos, blocking, and special moves\n- Neural network AI opponents that learn and adapt\n- Debug visualization tools for AI decision making\n- Customizable character animations and hitboxes\n- Training mode for AI agents\n- Cross-platform support (Windows, macOS, Linux, Web)\n\n\u003cp align=\"center\"\u003e\n  \u003cvideo src=\"https://github.com/user-attachments/assets/d1e813ca-8c45-499a-a680-d0eafebd7052\" alt=\"AI Debug Visualization\"\u003e\n\u003c/p\u003e\n\n\n## Prerequisites\n\n### Desktop Build\n- CMake 3.15+\n- C++17 compatible compiler\n- SDL2 development libraries\n- SDL2_image development libraries\n- SDL2_ttf development libraries\n\n### Web Build\n- Emscripten SDK\n- Python 3.x (for local development server)\n\n## Building\n\n### Desktop Build\n\n```bash\n# Clone the repository\ngit clone https://github.com/adia-dev/ai-fighting-game.git\ncd ai-fighting-game\n\n# build directory\nmake\n# or\nmake -j$(nproc)\n\n# Run the game\n./build/Debug/bin/fighting-game\n```\n\n### Web Build\n\n```bash\n# Make sure you have sourced the Emscripten environment\nsource /path/to/emsdk/emsdk_env.sh\n\n# Build using Emscripten makefile\nmake -f Makefile.emscripten\n\n# Start local development server\nmake -f Makefile.emscripten serve\n```\n\nThen open `http://localhost:8000` in your web browser.\n\n## Controls\n\n- **Left/Right Arrow**: Move\n- **Space**: Jump\n- **A**: Attack\n- **B**: Block\n- **D**: Dash\n- **Tab**: Toggle Debug UI\n- **Escape**: Close Debug UI\n\n## Development\n\n### Adding New Features\n\n1. Character Animations:\n   - Add animation frames to `assets/animations/`\n   - Define hitboxes in animation JSON files\n   - Register animations in `PiksyAnimationLoader`\n\n2. AI Behaviors:\n   - Extend the state space in `State.hpp`\n   - Add new action types in `ActionType`\n   - Modify reward calculations in `RLAgent`\n\n## Configuration\n\nThe game can be configured through:\n- Command line arguments\n- Config files in `assets/config/`\n- In-game debug UI\n\nKey configuration options include:\n- Physics parameters\n- AI learning rates\n- Combat mechanics\n- Graphics settings\n\n\n## Acknowledgments\n\n- SDL2 development team\n- Dear ImGui library\n- [Piksy](https://github.com/adia-dev/piksy) for animation tooling\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadia-dev%2Fai-fighting-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadia-dev%2Fai-fighting-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadia-dev%2Fai-fighting-game/lists"}