{"id":15994350,"url":"https://github.com/oskarrough/slagmark","last_synced_at":"2025-04-05T00:16:05.531Z","repository":{"id":207352897,"uuid":"718873600","full_name":"oskarrough/slagmark","owner":"oskarrough","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-17T21:27:18.000Z","size":5125,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-10T08:31:39.425Z","etag":null,"topics":["game","oohgames","web-game"],"latest_commit_sha":null,"homepage":"https://slagmark.0sk.ar","language":"JavaScript","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/oskarrough.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":"2023-11-15T00:53:41.000Z","updated_at":"2024-01-07T18:38:48.000Z","dependencies_parsed_at":"2023-12-08T13:28:11.878Z","dependency_job_id":"7ddd08d3-763b-4e43-936f-c768450396ec","html_url":"https://github.com/oskarrough/slagmark","commit_stats":null,"previous_names":["oskarrough/rumble","oskarrough/slagmark"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fslagmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fslagmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fslagmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oskarrough%2Fslagmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oskarrough","download_url":"https://codeload.github.com/oskarrough/slagmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247266566,"owners_count":20910837,"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":["game","oohgames","web-game"],"created_at":"2024-10-08T07:08:38.691Z","updated_at":"2025-04-05T00:16:05.512Z","avatar_url":"https://github.com/oskarrough.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slagmark\n\nA little game with two players for the web.\n\nFor now a proof of concept, inspired by Dota, HOTS, Warcraft Rumble, Totally Accurate Battle Simulator, et alia. The idea is to have two (or more?) players deploy minions to a battlefield and let them fight. The strategy element is which type of minion to deploy when, and where. \n\nLatest version is at https://slagmark.0sk.ar. There will be bugs.\n\nBasic concepts:\n\n- two `Player`s\n- player receives 1 `Gold` per second (max 10)\n- player receives 4 random `Minion`s at start\n- player receives 1 (random) minion every 3 seconds (max 4)\n- player can deploy minions\n- deployed minions move towards the opposite end of the Board\n- deployed minions will attempt to fight any enemy minion on the same `Y` value\n\n## Architecture \u0026 dependencies\n\nThis is a realtime, multiplayer game made for the web. Where possible, and if not too cumbersome, we use the platform.\n\nInside `src` you'll find the frontend. It's using [vroum](https://gitlab.com/jfalxa/vroum) + actions for game logic. Everything is organised into a tree of scheduable tasks and nodes. I can recommend it. For rendering we do web components + [uhtml](https://webreflection.github.io/uhtml/).\n\nAs far as possible, things that could be reused for the next game are put in `src/stdlib`.\n\nFor the multiplayer we use websockets. Inside `server` we have a couple of Cloudflare workers made with [partykit](https://www.partykit.io/).\n\n## Development\n\n```\nbun install\nbun run dev\n```\n\n## Deployment\n\n- `bun run deploy:backend` (required any time server/* files are changed)\n- the `main` branch deploys to https://slagmark.0sk.ar via Cloudflare pages (Oskar's account)\n\n## Inspiration\n\n- [Legion TD 2](https://beta.legiontd2.com/)\n- [Totally Accurate Battle Simulator](https://landfall.se/totally-accurate-battle-simulator)\n- [Super Auto Pets](https://teamwoodgames.com/)\n- [Backpack Battles](https://playwithfurcifer.itch.io/backpack-battles)\n\n## Also from ooh games\n\n- [Slay the Web](https://github.com/oskarrough/slaytheweb/)\n- [Web Healer](https://github.com/oskarrough/webhealer/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foskarrough%2Fslagmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foskarrough%2Fslagmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foskarrough%2Fslagmark/lists"}