{"id":28227098,"url":"https://github.com/treechcer/small-survival-game","last_synced_at":"2025-08-23T02:39:54.906Z","repository":{"id":292918596,"uuid":"982371223","full_name":"Treechcer/small-survival-game","owner":"Treechcer","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-05T19:07:59.000Z","size":209,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-01T01:39:09.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Treechcer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2025-05-12T19:28:33.000Z","updated_at":"2025-06-08T21:20:47.000Z","dependencies_parsed_at":"2025-05-28T20:22:35.152Z","dependency_job_id":"0de0a19d-00b0-40a4-b53d-825df61d3787","html_url":"https://github.com/Treechcer/small-survival-game","commit_stats":null,"previous_names":["treechcer/small-survival-game"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Treechcer/small-survival-game","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treechcer%2Fsmall-survival-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treechcer%2Fsmall-survival-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treechcer%2Fsmall-survival-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treechcer%2Fsmall-survival-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Treechcer","download_url":"https://codeload.github.com/Treechcer/small-survival-game/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Treechcer%2Fsmall-survival-game/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271733244,"owners_count":24811489,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-05-18T12:10:18.461Z","updated_at":"2025-08-23T02:39:54.873Z","avatar_url":"https://github.com/Treechcer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Small Survival Game / Grid Survival Game (HTML + JS)\n\nThis game is small survival grid based game, that runs in browser that is made with purely CSS, HTML and JS. The player moves in grid based layout (11x11, with nine maps, you can go other maps by going to the red squares) where he can chop bushes, mine stone, farm cactuses, mine iron ore, build farms, explore the maps. There are three biomes, the first and \"main\" is `plains` biome, it has bushes, grass, water and stone. Second biome is `desert` biome where is sand, cactuses, small ammout of water and stone. Third home is `hills`, it has iron ore,b bushes, stone ground and plenty of stone to mine.\n\n# Functions\n\n- grid based movement, where player uses the \"console\" at the bottom or `w`, `a`, `s`, `d` (or arrow keys) - for now you can't mine and do other actions with keyboard \n- interaction with environment\n  - chop bushes\n  - mine stone, iron ore \n  - break cactuses\n  - build farms to farm wheat, build furnaces to cook\n- randomly generated world\n  - 9 maps, in 3x3 where you can travel between them\n  - all maps are randomly generated with random terrain and random biomes (there're always 3 biomes of each)\n  - resources have chance to respawn on random map every 12.5s (1-5 resources)\n- dynamic day / night cycle\n  - background changes with time of the day\n  - every 12.5 seconds is 30 minutes in-game (which makes the whole day last 10 minutes)\n- dynamic weather system\n  - every few hours there's chance to change the weather, you always start with `sunny` weather\n  - there's also `rainy` weather, which makes farms grow faster\n  - each weather lasts for random amount of time (6-42 in-game hours)\n\n# Game World\n\n- The whole map consists of 9 smaller maps connected with exits to the other maps\n- player spawn on random tile in random map\n- all maps have exits to other maps (dynamically generated so they have different amount of exits) - exit =\u003e red square \n\n# How to Play\n\nYou spawn in a random biome, in a random map on a random square.\n\nUse the movement keys to explore (bottom middle square) or `w`,  `a`, `s`, `d` or arrow keys on your keyboard, as you move, you’ll notice emojis appearing in the console (console = bottom middle square with arrow keys etc.). These represent available actions for you now, they're based on which square you stand on and what it represents (and sometimes with items you have). Click them to interact with the world (the effect depends on the action).\n\nStart by breaking some bushes (the darker green squares in the `plains` biome) and collecting stone (dark gray squares in most biomes). Once you collect enough materials, you can build a `farm`. Farms can be placed on grass or other default ground tiles. Right now, farms don’t do anything useful, because you can craft bread only (they isn't hunger for now).\n\nFor some special things you want to craft you need `furnace`, furnace can be place on any default tiles and you can use them if you stand on the square of the furnace (you `always need coal` to craft in them)\n\nWith enough materials, you can also craft tools in crafting UI (bottom left):\n- **Fishing rod** : lets you fish in water squares.\n- **Axe**: allows you to break cactuses in `desert` biome.\n- **Pickaxe**: lets you mine iron ores in `hill` biome.\n\nOther than that, there’s not much more, most likely everything you can do now.\n\n# Future plans\n\n- adding hunger / health\n- ending to the game\n- more tools\n- ending, score or similar\n- maybe make island bigger and have the it as real island, that the outer parts would be ocean and beach\n\n# Running the game\n\nGetting Started\nTo run the project locally:\n\n1. Clone the repository\n\n```bash\ngit clone https://github.com/Treechcer/small-survival-game\ncd small-survival-game\n```\n\n2. Open the game\n   You can open the index.html file directly in your browser:\n\n```bash\nstart index.html     # On Windows\n# or\nopen index.html      # On macOS\n# or\nxdg-open index.html  # On Linux\n```\n\nOr, you can use local server (tbh I have no idea how, you have to figure that out for yourself) - or use visual studio code extension for it, `live server`, `live preview` (could work) or `Preview on Web Server`\n\nLast alternative, you can use [Github pages](https://treechcer.github.io/small-survival-game/)\n\n🛠️ Requirements\n\n- Modern browser (Chrome, Firefox, Edge, etc.)\n- No external libraries required","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreechcer%2Fsmall-survival-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftreechcer%2Fsmall-survival-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftreechcer%2Fsmall-survival-game/lists"}