{"id":18865981,"url":"https://github.com/adia-dev/wasm-ball-z","last_synced_at":"2026-02-12T15:30:16.441Z","repository":{"id":259791411,"uuid":"879315687","full_name":"adia-dev/wasm-ball-z","owner":"adia-dev","description":null,"archived":false,"fork":false,"pushed_at":"2025-02-08T14:44:05.000Z","size":4281,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T06:47:09.087Z","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":"2024-10-27T15:33:35.000Z","updated_at":"2025-02-08T14:44:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"5a0636a1-bb0d-4aeb-a359-481a5dd83991","html_url":"https://github.com/adia-dev/wasm-ball-z","commit_stats":null,"previous_names":["adia-dev/wasm-ball-z"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fwasm-ball-z","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fwasm-ball-z/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fwasm-ball-z/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adia-dev%2Fwasm-ball-z/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adia-dev","download_url":"https://codeload.github.com/adia-dev/wasm-ball-z/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239810030,"owners_count":19700726,"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":"2024-11-08T05:05:13.913Z","updated_at":"2026-02-12T15:30:16.392Z","avatar_url":"https://github.com/adia-dev.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wasm Ball Z\n\n## Overview\n\nWasm Ball Z is a 2D fighting game developed in C++ using SDL2. The project includes character management, sprite animation, basic AI using Q-learning, resource management, and game state handling.\n\n## Dependencies\n\n- C++17 (or higher)\n- SDL2\n- SDL2_ttf\n- SDL2_image\n- TinyXML2\n\nIf building for the web with Emscripten, install the Emscripten SDK.\n\n## Building\n\n### Using CMake (Recommended)\n\n1. Clone the repository.\n2. Create and enter a build directory:\n   ```bash\n   mkdir build\n   cd build\n   ```\n3. Generate the build system:\n   ```bash\n   cmake ..\n   ```\n4. Build the project:\n   ```bash\n   make\n   ```\n\n### Manual Compilation (Linux Example)\n\nCompile the source files with a command similar to the following. Adjust include paths and library locations as needed:\n\n```bash\ng++ -std=c++17 \\\n  -I/path/to/SDL2/include \\\n  -I/path/to/SDL2_ttf/include \\\n  -I/path/to/SDL2_image/include \\\n  -I/path/to/tinyxml2 \\\n  -o WasmBallZ \\\n  src/main.cpp src/application/application.cpp src/entities/character/character.cpp src/entities/character/ai_character.cpp \\\n  src/managers/game_manager/game_manager.cpp src/managers/input_manager/input_manager.cpp \\\n  src/map/map.cpp src/sprite/sprite.cpp src/sprite/animator/animator.cpp \\\n  src/window/window.cpp src/entities/agent/QLearningAgent.cpp \\\n  -L/path/to/SDL2/lib -lSDL2 -lSDL2_ttf -lSDL2_image -ltinyxml2\n```\n\nReplace `/path/to/...` with the correct paths on your system.\n\n## Running\n\nAfter building, execute the application from the command line:\n\n```bash\n./WasmBallZ\n```\n\n## Project Structure\n\n- **src/**  \n  Contains the source code.\n  - **application/**: Application initialization and main loop.\n  - **entities/**: Character classes, AI logic, and other game entities.\n  - **managers/**: Resource management, input handling, and game management.\n  - **map/**: Map loading and rendering.\n  - **sprite/**: Sprite rendering and animation handling.\n  - **state/**: Game state definitions and management.\n  - **window/**: Window creation and renderer setup.\n  - **utils/**: Utility functions and resource path definitions.\n- **resources/**  \n  Contains textures, fonts, and animation XML files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadia-dev%2Fwasm-ball-z","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadia-dev%2Fwasm-ball-z","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadia-dev%2Fwasm-ball-z/lists"}