{"id":22616263,"url":"https://github.com/developer-mike/sprout","last_synced_at":"2025-07-11T23:41:34.063Z","repository":{"id":260806371,"uuid":"776763482","full_name":"Developer-Mike/sprout","owner":"Developer-Mike","description":"The low-code platform for learning game development.","archived":false,"fork":false,"pushed_at":"2024-11-06T12:26:30.000Z","size":1093,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T10:46:36.480Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://sprout.by-mika.dev","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Developer-Mike.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}},"created_at":"2024-03-24T12:29:48.000Z","updated_at":"2024-11-06T12:26:34.000Z","dependencies_parsed_at":"2025-02-03T10:45:20.139Z","dependency_job_id":"2ff42578-96fd-4ecb-afb1-988a75d57498","html_url":"https://github.com/Developer-Mike/sprout","commit_stats":null,"previous_names":["developer-mike/sprout"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-Mike%2Fsprout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-Mike%2Fsprout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-Mike%2Fsprout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Developer-Mike%2Fsprout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Developer-Mike","download_url":"https://codeload.github.com/Developer-Mike/sprout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246122245,"owners_count":20726822,"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":[],"created_at":"2024-12-08T19:11:39.798Z","updated_at":"2025-03-29T00:43:50.544Z","avatar_url":"https://github.com/Developer-Mike.png","language":"TypeScript","readme":"\u003ch3 align=\"center\"\u003e\n    \u003cimg alt=\"Logo\" src=\"./public/sprout.svg\" width=\"100\"\u003e\n    \u003cbr/\u003e\n    \u003cfont color=\"#b4d8bb\" size=\"6em\"\u003eSprout\u003c/font\u003e\n\u003c/h3\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003cu\u003eThe\u003c/u\u003e low-code platform for learning game development.\n    \u003cbr/\u003e\u003cbr/\u003e\n    \u003ca href=\"#\"\u003e\u003cimg src=\"https://img.shields.io/endpoint?url=https://wakapi.dev/api/compat/shields/v1/Developer-Mike/interval:all_time/project:sprout\u0026label=Time%20Spent\u0026style=for-the-badge\u0026colorA=191f19\u0026colorB=b4d8bb\" alt=\"Time Spent\"\u003e\u003c/a\u003e\n    \u003ca href=\"./LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/static/v1.svg?label=License\u0026message=MPL-2.0\u0026style=for-the-badge\u0026colorA=191f19\u0026colorB=b4d8bb\" alt=\"MPL-2.0 license\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n\u003e [!important] \n\u003e For Sprout to work properly, you must use **Chrome**.\n\n## 🌱 SproutScript\nSprout uses the custom SproutScript language.\n\n- Variable Definition: `var x = 0`\n- Function Declaration: `fun foo = () { }`\n- While-Loop: `while (condition) { }`\n- For-Loop: `for (i in range(10)) { }`\n- On-Statement (Gets executed every frame if condition is met): `on (condition) { }`\n\nCheck out the [\"Pong\" project](https://sprout.by-mika.dev/builder?template=pong) for a sample project.\n\n## 🚀 Running the project\n1. Clone the repository\n```bash\ngit clone https://github.com/Developer-Mike/sprout.git\n```\n2. Install the dependencies\n```bash\nnpm i\n```\n3. Run the application\n```bash\nnpm run dev\n```\n\n## ✨ Roadmap\n- [x] Create the project\n- [x] Decide the style and design of the project\n- [x] Implement the basic UI using Next.js and SCSS\n- [x] Design the basic structure of the project data\n- [x] Make it work with fixed data and JavaScript\n- [x] Add support for sprites\n- [x] Implement game objects pane\n  - [x] Add game object settings\n  - [x] Don't allow adding objects with the same id\n  - [x] Allow reordering of the objects\n  - [x] Confirm deletion of objects\n- [x] Add keyboard shortcuts\n- [x] Make the code editor work with JavaScript\n- [x] Load and save the project data\n  - [x] Detect unsaved project and prevent closing the tab if the data is not saved\n  - [x] Automatically save the project data\n    - [x] Add save history\n    - [x] Make the history less detailed\n  - [x] Add loading progress bar\n- [x] Add projects overview (list of projects)\n- [x] Sprites Tab\n  - [x] Add the ability to reorder sprites\n  - [x] Add the ability to change the active sprite\n  - [x] Add the ability to delete sprites\n- [x] Add sprites library dialog\n  - [x] Add the ability to upload sprites\n  - [x] Add the ability to delete sprites\n  - [x] Add the ability to rename sprites\n  - [x] Add the ability to assign sprites to game objects\n  - [x] Add sprite information\n- [x] Only add LabeledNumberInput change to history after the user stops dragging\n- [x] Add undo/redo to the navbar\n- [x] Always save project before rerouting\n- [x] Create the programming language for Sprout\n  - [x] Remove the usage of large strings and eval in the SproutEngine\n  - [x] Create programming language concepts\n    - [x] Variables\n    - [x] Functions\n    - [x] Loops (for, while)\n    - [x] Conditions (if, else)\n    - [x] Comments\n  - [x] Create Lexer (Code -\u003e Tokens)\n  - [x] Create Parser (Tokens -\u003e AST)\n    - [x] Add support for mutable variables\n    - [x] Add support for if, while, for and on statements\n    - [x] Add support for await expressions\n    - [x] Add support for lists\n    - [x] Add support for index access (and square brackets access in general)\n    - [x] Fix return statements inside for loops not working\n    - [x] Fix return statements nested inside if statements not working\n      - [x] Change if expressions to statements? -\u003e Added both types!\n    - [!] Fix return statements inside e.g. if expressions checking next line for return value\n    - [x] Add support for \u0026\u0026 and || operators\n    - [!] (If time allows) Add support for lambdas\n    - [!] (If time allows) Add support for objects\n    - [x] (If time allows) Add support for +=, -=, *=, /= operators\n    - [x] (If time allows) Add support for unary operators (!bool, -var, +var, ++, --)\n  - [x] Create AST compiler function (AST -\u003e JavaScript)\n  - [x] Create error handling (Compilation \u0026 Runtime)\n  - [x] Show errors in the code editor\n  - [x] Fix the syntax highlighting and linting (Only basic syntax highlighting)\n  - [x] (If time allows) Add autocomplete for some objects (e.g. game_objects, sprites)\n  - [x] Fix execution of the code\n  - [x] Add implemented functions to the language\n    - [x] range\n    - [x] Expose math functions\n- [x] Add implemented functions to the engine\n  - [x] move, rotate (Handle delta_time)\n  - [x] rotate_to\n  - [x] collides_with, collides_with_box, collides_with_mouse\n  - [x] sleep\n  - [!] (If time allows) Add physics engine\n  - [!] (If time allows) Add support for camera\n    - [!] stage.camera\n      - [!] x, y (properties)\n      - [!] move (handle delta_time)\n  - [!] (If time allows) Add support for drawing (new entry in the runtime data)\n    - [!] draw_text\n    - [!] draw_line\n    - [!] draw_rectangle\n    - [!] draw_circle\n  - [x] (If time allows) Add support cloning and destroying game objects while the game is running\n    - [x] clone\n    - [x] destroy\n    - [x] is_clone (property)\n- [x] Add console view\n  - [x] Throw error if the user wants to start the game with syntax errors\n  - [x] Catch runtime errors and show them in the console\n  - [!] (If time allows) Add advanced explanations to error messages\n- [x] Miscellaneous\n  - [x] Add a clean way to handle debug information\n  - [x] Rework game object scaling (width and factor for height) -\u003e Fix different scaling for different sprites\n    - [x] Add width and height info to the sprites in the sprites library\n  - [x] Solve all TODOs\n  - [x] Remove all DEBUGs\n  - [x] Fix canvas can be right-clicked\n  - [x] Disable the ability to select game objects through the canvas if th game is running\n  - [x] When editing a float and deleting the last digit before the decimal point, the dot gets deleted unintentionally\n  - [x] When editing e.g. 800 and deleting the 8, the 0 gets deleted unintentionally\n  - [x] Limit max height of game object preview in code editor\n  - [x] Reset linked scaling when changing the sprite\n  - [!] (Out of scope) Allow simple calculations in the LabeledNumberInput\n- [x] Create some example games\n  - [!] Add the ability to add information text to the documentation sidebar\n- [x] Add warning if not using Chrome\n- [x] Bugfixes\n  - [x] Add absolute identifiers to project paths -\u003e Fix project with same filename not visible in the projects overview\n  - [x] Fix rotation of game objects causing other game objects to move\n  - [x] Fix deletion of all game objects causing null value of selected object key\n- [x] (If time allows) Add the ability to duplicate game objects\n- [!] (If time allows) Add the ability to add plugins (keep in mind: security risk)\n- [!] (Out of scope) Add the ability to export and import game objects individually\n- [!] (Out of scope) Add export of the games to standalone websites\n- [!] (Out of scope) Add the ability to add sounds and music\n- [!] (Out of scope) Create tool for simple image editing of sprites\n- [!] (Out of scope) Add tooltips\n  - [!] Unsaved changes\n  - [!] Game object properties\n  - [!] Add game object button\n  - [!] Vertical tab buttons\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-mike%2Fsprout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeveloper-mike%2Fsprout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeveloper-mike%2Fsprout/lists"}