{"id":15023213,"url":"https://github.com/elliotb256/bevy_combat","last_synced_at":"2025-10-26T17:30:51.800Z","repository":{"id":40575814,"uuid":"435664486","full_name":"ElliotB256/bevy_combat","owner":"ElliotB256","description":"A sci-fi battle simulation implemented in the bevy engine.","archived":false,"fork":false,"pushed_at":"2024-03-16T10:38:12.000Z","size":6429,"stargazers_count":71,"open_issues_count":0,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-31T21:34:53.517Z","etag":null,"topics":["bevy","ecs","scifi","space"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ElliotB256.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-12-06T22:16:12.000Z","updated_at":"2024-11-20T15:33:05.000Z","dependencies_parsed_at":"2024-03-10T10:27:44.432Z","dependency_job_id":"6ee8512b-183c-4b18-ac6b-50ce31515185","html_url":"https://github.com/ElliotB256/bevy_combat","commit_stats":{"total_commits":66,"total_committers":1,"mean_commits":66.0,"dds":0.0,"last_synced_commit":"04deb48fc94e0eb1c5d194208b42d9e403becf9c"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElliotB256%2Fbevy_combat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElliotB256%2Fbevy_combat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElliotB256%2Fbevy_combat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ElliotB256%2Fbevy_combat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ElliotB256","download_url":"https://codeload.github.com/ElliotB256/bevy_combat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238375086,"owners_count":19461541,"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":["bevy","ecs","scifi","space"],"created_at":"2024-09-24T19:58:50.533Z","updated_at":"2025-10-26T17:30:46.217Z","avatar_url":"https://github.com/ElliotB256.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bevy Combat\n\n[![crate_version](https://img.shields.io/crates/v/bevy_combat.svg?style=flat)](https://crates.io/crates/bevy_combat)\n[![crate_version](https://img.shields.io/badge/docs-latest-blue.svg?style=flat)](https://docs.rs/bevy_combat)\n\nIt's a bevy port of my [ECS Combat](https://github.com/ElliotB256/ECSCombat/) Unity demo.\n\nCheck out the [web demo](https://elliotb256.github.io/bevy_combat/) in your browser.\nYou can use the - and = keys to speed up and slow down time (make sure you have focussed the browser window).\n\n![demo scene](media/demo.gif)\n\n![another scene](media/thumbnail.gif)\n\n## Added so far\n\n* Movement\n* Combat and targetting AI\n* Simple weapons (instant hit), damage, health and mortality\n* Death animations and explosions\n* Shields\n\n## Coming soon\n\n* More weapons\n* Combat calculations, e.g. weapon effectiveness.\n* Ship shaders\n* Fix bugs\n\n## Getting Started\n\nTo build and deploy for web:\n```\ncargo make serve\n```\n\nTo run for pc:\n```\ncargo run\n```\n\n## Building for web (fast)\n\nMake sure you have added the wasm target to your toolchain:\n```\nrustup target add wasm32-unknown-unknown\n```\n\nIf you do not have `wasm-server-runner`, install it via\n```\ncargo install wasm-server-runner\n```\n\nAfterwards, you can build and run in your browser:\n```\ncargo run --target wasm32-unknown-unknown\n```\n\nFor more info on web deployment, see [the bevy book](https://bevy-cheatbook.github.io/platforms/wasm.html).\n\n### Building for itch.io\n\nFollowing [these instructions](https://bevy-cheatbook.github.io/platforms/wasm/webpage.html)...\n\nitch.io build requires\n```\ncargo install wasm-bindgen-cli\n```\n\nBuild the wasm target, then run `wasm-bindgen`. After, optimize the generated `.wasm`:\n```\ncargo build --release --target wasm32-unknown-unknown\nwasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name \"game\" ./target/wasm32-unknown-unknown/release/bevy_combat.wasm\n```\n\nIf you want to optimize further:\n```\nwasm-bindgen --no-typescript --target web --out-dir ./out/ --out-name \"preopt_game\" ./target/wasm32-unknown-unknown/release/bevy_combat.wasm\nwasm-opt -O -ol 100 -s 100 -o game.wasm preopt_game.wasm\n```\nCopy the assets folder to `/out`. Copy `web/index.html` to `/out/index.html`\n\nZip the `out` folder, upload to itch.io, and celebrate!\n\n## Credits\n\nCredit for individual art assets can be found [here](assets/credits.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliotb256%2Fbevy_combat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felliotb256%2Fbevy_combat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felliotb256%2Fbevy_combat/lists"}