{"id":13529924,"url":"https://github.com/GameMakerDiscord/random-level-gen-gms2","last_synced_at":"2025-04-01T17:31:31.380Z","repository":{"id":55142430,"uuid":"119850820","full_name":"GameMakerDiscord/random-level-gen-gms2","owner":"GameMakerDiscord","description":"A random level generation example (similar to Nuclear Throne) using GameMaker Studio 2","archived":false,"fork":false,"pushed_at":"2018-03-03T05:24:01.000Z","size":50,"stargazers_count":48,"open_issues_count":1,"forks_count":11,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-08-02T07:10:59.511Z","etag":null,"topics":["example","gamemaker","gms2"],"latest_commit_sha":null,"homepage":null,"language":"Game Maker Language","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/GameMakerDiscord.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}},"created_at":"2018-02-01T15:00:52.000Z","updated_at":"2024-07-16T06:18:27.000Z","dependencies_parsed_at":"2022-08-14T13:20:24.092Z","dependency_job_id":null,"html_url":"https://github.com/GameMakerDiscord/random-level-gen-gms2","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameMakerDiscord%2Frandom-level-gen-gms2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameMakerDiscord%2Frandom-level-gen-gms2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameMakerDiscord%2Frandom-level-gen-gms2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GameMakerDiscord%2Frandom-level-gen-gms2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GameMakerDiscord","download_url":"https://codeload.github.com/GameMakerDiscord/random-level-gen-gms2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222748214,"owners_count":17031897,"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":["example","gamemaker","gms2"],"created_at":"2024-08-01T07:00:40.815Z","updated_at":"2024-11-02T16:31:24.286Z","avatar_url":"https://github.com/GameMakerDiscord.png","language":"Game Maker Language","funding_links":[],"categories":["Levels"],"sub_categories":["Recommendations"],"readme":"# Random Level Generation\nA random level generation example (similar to Nuclear Throne) using GameMaker Studio 2.\n\nMaintained by: uheartbeast\n\nThis example project uses a DS Grid to generate a random level. This level generation process looks somewhat like this:\n- Create a grid\n- Fill the grid with VOID cells (some number that represents an area that can't be walked on)\n- Create a controller at the center of the grid\n- Move the controller in a direction (0, 90, 180, 270) and create a FLOOR cell (some number that represents an area that CAN be walked on) in each location\n- If the controller hits a wall reverse the direction\n- Every step the controller has a random chance of choosing a new direction\n- Run the controller for a fixed amount of steps (400 or so)\n- Once the level has been generated, loop through and remove any isolated VOID cells (This just makes the level look cleaner and a bit less \"random\")\n\nAfter generating the level, we fill the game room with tiles using the bitmasking method taught in this article: https://gamedevelopment.tutsplus.com/tutorials/how-to-use-tile-bitmasking-to-auto-tile-your-level-layouts--cms-25673\n\nFinally, we use binary math to detect for collisions in the level's DS Grid.\n\n![random level gen gif](https://user-images.githubusercontent.com/35774957/35686554-c1e73e1c-0729-11e8-84e7-f71b29f87354.gif)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGameMakerDiscord%2Frandom-level-gen-gms2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGameMakerDiscord%2Frandom-level-gen-gms2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGameMakerDiscord%2Frandom-level-gen-gms2/lists"}