{"id":13465959,"url":"https://github.com/jackpotdk/BlazorGame","last_synced_at":"2025-03-25T21:30:58.447Z","repository":{"id":42813051,"uuid":"269099908","full_name":"jackpotdk/BlazorGame","owner":"jackpotdk","description":"BlazorGame is a small proof-of-concept project to investigate the feasability of Blazor-based C# game development.","archived":false,"fork":false,"pushed_at":"2023-01-06T04:30:57.000Z","size":938,"stargazers_count":21,"open_issues_count":12,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-01T15:04:14.688Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/jackpotdk.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":"2020-06-03T13:46:56.000Z","updated_at":"2024-01-21T19:09:05.000Z","dependencies_parsed_at":"2023-02-05T07:46:21.602Z","dependency_job_id":null,"html_url":"https://github.com/jackpotdk/BlazorGame","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/jackpotdk%2FBlazorGame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackpotdk%2FBlazorGame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackpotdk%2FBlazorGame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackpotdk%2FBlazorGame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackpotdk","download_url":"https://codeload.github.com/jackpotdk/BlazorGame/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222091706,"owners_count":16929686,"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-07-31T15:00:37.339Z","updated_at":"2024-10-29T18:30:29.661Z","avatar_url":"https://github.com/jackpotdk.png","language":"C#","funding_links":[],"categories":["Sample Projects"],"sub_categories":["Games"],"readme":"# BlazorGame\r\nBlazorGame is a small proof-of-concept project to investigate the feasability of Blazor-based C# game development.\r\n\r\nA quick build is hosted [here](https://blazorgametestbuild.azurewebsites.net/). Once the black square appears, click inside the square to spawn a new sprite. \r\n\r\nThis project relies heavily on the work done in [Blazor Canvas](https://github.com/BlazorExtensions/Canvas). However, as this has not been updated for a while, I have included (an updated version of) it as part of this project.\r\n\r\nOnce/if BlazorCanvas gets an update, this project will be updated to support the NuGet.\r\n\r\n# What it does\r\n\r\nNot much, but some basics and essentials that are nice to have running for anyone looking to do games:\r\n\r\n- Opens a re-sizable Canvas.\r\n- Demonstrates calling into JS from WASM, and calling back to C# from WASM.\r\n- Hooks up requestAnimationFrame\r\n- Hooks up eventlistener for mouse clicks\r\n- Renders an object (using WebGL) when you click inside the Canvas.\r\n\r\n# Notes\r\n\r\n- Builds against the release version of Blazor WebAssembly (3.2.0) and .NET Core SDK (3.1.300 or later).\r\n- \"Sprites\" are rendered by updating the vertices of all sprites each frame. I realize this is not ideal, but it works for this test.\r\n- texImage2D support in BlazorCanvas is broken, so the textures is loaded through a JS interop call to loadTexture.\r\n- The GarbageCollector is very busy. Either I may be doing something wrong, or there is room for improvement.\r\n\r\n# Contributions and feedback\r\n\r\nPlease feel free to use / learn from this code, open issues, fix bugs or provide feedback.\r\n\r\n# Contributors\r\n\r\nIf you want to get in touch, reach me at thomasn@vanillapp.com\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackpotdk%2FBlazorGame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackpotdk%2FBlazorGame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackpotdk%2FBlazorGame/lists"}