{"id":28122483,"url":"https://github.com/sulig/mapgenerator_so-long","last_synced_at":"2025-05-14T08:13:59.900Z","repository":{"id":285412764,"uuid":"958021865","full_name":"Sulig/MapGenerator_So-Long","owner":"Sulig","description":"And thanks for all the maps! -----------\u003e Map Generator for so-long project, with several tools for custom your map or just for generate random map","archived":false,"fork":false,"pushed_at":"2025-04-14T18:24:30.000Z","size":42,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-14T19:34:41.586Z","etag":null,"topics":["42","42barcelona","42school","map-generator","map-generator-so-long","so-long","so-long-maps"],"latest_commit_sha":null,"homepage":"","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/Sulig.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":"2025-03-31T14:12:25.000Z","updated_at":"2025-04-14T18:24:34.000Z","dependencies_parsed_at":"2025-03-31T16:40:42.839Z","dependency_job_id":"ee8fd03b-4190-40ff-8889-add335512632","html_url":"https://github.com/Sulig/MapGenerator_So-Long","commit_stats":null,"previous_names":["sulig/mapgenerator_so-long"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sulig%2FMapGenerator_So-Long","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sulig%2FMapGenerator_So-Long/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sulig%2FMapGenerator_So-Long/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Sulig%2FMapGenerator_So-Long/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Sulig","download_url":"https://codeload.github.com/Sulig/MapGenerator_So-Long/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254101547,"owners_count":22014909,"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":["42","42barcelona","42school","map-generator","map-generator-so-long","so-long","so-long-maps"],"created_at":"2025-05-14T08:13:44.246Z","updated_at":"2025-05-14T08:13:59.875Z","avatar_url":"https://github.com/Sulig.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MapGenerator_So-Long\n\n~ Started on: 31/03/2025 ~ *** ~ Ended on: In progress\n\n[![Stars](https://img.shields.io/github/stars/Sulig/MapGenerator_So-Long?color=ffff00\u0026label=Stars\u0026logo=Stars\u0026style=?style=flat)](https://github.com/Sulig/MapGenerator_So-Long)\n[![Size](https://img.shields.io/github/repo-size/Sulig/MapGenerator_So-Long?color=blue\u0026label=Size\u0026logo=Size\u0026style=?style=flat)](https://github.com/Sulig/MapGenerator_So-Long)\n[![Activity](https://img.shields.io/github/last-commit/Sulig/MapGenerator_So-Long?color=orange\u0026label=Last%20Commit\u0026style=flat)](https://github.com/Sulig/MapGenerator_So-Long)\n***\n\n## What is this?\nIs a **Map Generator** for [`so-long`](https://github.com/Sulig/So_Long) project. \u003cbr /\u003e\nIt will generate for you a closed random map:\n  - With random width \u0026 height\n  - Random number of items\n  - Random position of player\n  - Random positon of exit\n\n## How to use it -\u003e\nYou have several options:\n  - `Clone` this repository with:\n    ```\n    git@github.com:Sulig/MapGenerator_So-Long.git\n    ```\n    Go inside it, and ejecute\n    ```\n    make all\n    ```\n\n  - (Not ready) Dowload the executable \u003cbr /\u003e\n    I will upload in a especific branch -\u003e `executable` \u003cbr /\u003e\n    And you will need only to execute it \u003cbr /\u003e\n       _with_ or _without_ the number of maps desired\n\n  - (Considering) Visit my (not created yet) web for generate a map!\n***\n\n### Well, I cloned the repo, What I can do?\n#### Change the Max valors of `Map Width` and `Map Height`\nYou can control the `MAP_MAX_WIDTH` \u0026\u0026 `MAP_MAX_HEIGHT` of the maps, just edite `map_const.h` included in `/inc` \u003cbr /\u003e\n\u003e [!NOTE]\\\n\u003e By default, the `MAP_MAX_WIDTH` \u0026\u0026 `MAP_MAX_HEIGHT` are defined with the `MAX_INT` definition.\n\u003e `MAX_INT` definition = 2147483647\n\u003e The values **can't** be more small than:\n\u003e 3 in WIDTH \u0026 5 in HEIGHT\n\u003e or\n\u003e 5 in WIDTH \u0026 3 in HEIGHT\n\n#### Change the HEIGHT and WIDTH of map\nYou can directy set the desired `MAP_HEIGHT` and `MAP_WIDTH` of the maps! \u003cbr /\u003e\nOnly set that valors on `map_const.h` included in `/inc` \u003cbr /\u003e\n\u003e [!NOTE]\\\n\u003e By default, the `MAP_WIDTH` \u0026\u0026 `MAP_HEIGHT` are defined with `0`\n\u003e If the values of `MAP_WIDTH` \u0026\u0026 `MAP_HEIGHT` are more small than:\n\u003e 3 in WIDTH \u0026 5 in HEIGHT\n\u003e or\n\u003e 5 in WIDTH \u0026 3 in HEIGHT\n\u003e The `MAP_WIDTH` \u0026\u0026 `MAP_HEIGHT` will be random.\n\n#### Set the Cuantity of Items\nJust set the `NUM_OF_ITEMS` with diferent number, on `map_const.h` included in `/inc` \u003cbr /\u003e\n\u003e [!NOTE]\\\n\u003e By default, the `NUM_OF_ITEMS` are defined with `0`\n\u003e * If = 0 -\u003e Number of items will be random. (Can't be 0)\n\u003e * \u003e 0    -\u003e Number of items will be that number.\n\n#### More interesting things\nIn my `Makefile` you will encounter two variables you can edit.\n  - The `MAPNUM` -\u003e Number of maps to create (each one in diferent file)\n  - The `MAPDIR` -\u003e Directory where you will encounter the file maps\n\n\u003e [!NOTE]\\\n\u003e If you leave `MAPNUM` at 0, the Generator will generate at least one map\n\u003e If you leave `MAPDIR` in some bad value, the maps will be saved in current directory\n\u003e ** In same directory where `map_gen` is allocated\n***\n\n##### MORE THINGS IN GOING!\n\n***\n~ Made by sadoming ~\n***\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulig%2Fmapgenerator_so-long","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulig%2Fmapgenerator_so-long","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulig%2Fmapgenerator_so-long/lists"}