{"id":28558217,"url":"https://github.com/team-endlight-official/lightbulb-framework","last_synced_at":"2025-06-10T08:08:14.960Z","repository":{"id":297818434,"uuid":"997972444","full_name":"Team-Endlight-Official/Lightbulb-Framework","owner":"Team-Endlight-Official","description":"A lightweight, powerful, cross-platform, open source and straightforward game creating framework built around MonoGame and C#.","archived":false,"fork":false,"pushed_at":"2025-06-07T16:48:02.000Z","size":76,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-07T17:34:41.926Z","etag":null,"topics":["csharp","framework","game-development","monogame"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Team-Endlight-Official.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-06-07T15:42:39.000Z","updated_at":"2025-06-07T16:48:05.000Z","dependencies_parsed_at":"2025-06-07T17:44:50.917Z","dependency_job_id":null,"html_url":"https://github.com/Team-Endlight-Official/Lightbulb-Framework","commit_stats":null,"previous_names":["team-endlight-official/lightbulb-framework"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team-Endlight-Official%2FLightbulb-Framework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team-Endlight-Official%2FLightbulb-Framework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team-Endlight-Official%2FLightbulb-Framework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team-Endlight-Official%2FLightbulb-Framework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Team-Endlight-Official","download_url":"https://codeload.github.com/Team-Endlight-Official/Lightbulb-Framework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Team-Endlight-Official%2FLightbulb-Framework/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259033837,"owners_count":22795770,"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":["csharp","framework","game-development","monogame"],"created_at":"2025-06-10T08:08:14.392Z","updated_at":"2025-06-10T08:08:14.951Z","avatar_url":"https://github.com/Team-Endlight-Official.png","language":"C#","readme":"# Lightbulb Framework\nA powerful extension to MonoGame for absolute beginners or complete professionals. The intuitive API structure relies on user control and accessibility - making it suitable for **nearly** all MonoGame project types.\n\n## Dependencies\nLightbulb hugely depends on these packages/sub-frameworks:\n* MonoGame 3.8.x\n* JoltPhysicsSharp 2.16.x\n\n## Learning Curve\nLightbulb has been designed that the simple low-effort rendering stuff take less than 45+ lines to write. The learning curve might be steeper and steeper for more advanced topics in hand.\n\n## Examples?\nThe Lightbulb source-code somes not only with the full API source, but also the source-codes of all Examples that are also fairly commented and documented. You can use these Example source-codes as a cheatsheet or as a learning material to guide you.\n\n## Goal?\nLightbulb aims to become a \"standard\" for new complete beginners that want to learn C# and MonoGame while having all the complex stuff such as graphics, cross-platforming, etc.. out of hand.\n\n## Example 1 Result\n![image](https://github.com/user-attachments/assets/c114ba15-95ba-42fb-a581-77928ffdcd96)\nA simple game window that shows a small window with a blue background color.\n\nThats how simple it is to create a basic application. Clean, readable and portable.\n```c#\n﻿using Lightbulb;\nusing Lightbulb.Graphics;\nusing Microsoft.Xna.Framework;\nusing System;\n\nnamespace Endlight.Example;\n\npublic class GameWindow\n{\n    int width = 800;\n    int height = 600;\n    string title = \"Example 1. Hello World\";\n\n    // Define a Application variable.\n    Application application;\n\n    public GameWindow()\n    {\n        // Create a new instance of the application and assign it's action methods.\n        application = new Application();\n        application.OnInit += Init;\n        application.OnLoad += Load;\n        application.OnUpdate += Update;\n        application.OnDraw += Draw;\n        application.OnClose += Unload;\n\n        // At last run the app.\n        application.Run();\n    }\n\n    void Init()\n    {\n        // Here you initialize your scripts and mechanics, not assets and resources.\n        // Initialize the static Renderer. IMPORTANT as setting fullscreen, size and other graphics resizing depends on the Renderer.\n        // It's also possible to set these by \"Renderer.SetSize(width, height);\".\n        Renderer.Init(application);\n        application.SetSize(width, height);\n        application.SetTitle(title);\n    }\n\n    void Load()\n    {\n        // Here you load your resources/assets.\n        Console.WriteLine(\"Hello my Window!\");\n    }\n\n    void Update()\n    {\n\n    }\n\n    void Draw()\n    {\n        // Clear the Renderer before drawing anything.\n        Renderer.Clear(Color.Blue);\n    }\n\n    void Unload()\n    {\n        // Unload all your remaining resources to prevent memory leaking.\n        Console.WriteLine(\"Goodbye my Window!\");\n    }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-endlight-official%2Flightbulb-framework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fteam-endlight-official%2Flightbulb-framework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fteam-endlight-official%2Flightbulb-framework/lists"}