{"repo":"mizrael/Blazorex","free":true,"listed":false,"github":"https://github.com/mizrael/Blazorex","clone":"git clone https://github.com/mizrael/Blazorex.git","description":"Blazorex is an HTML Canvas wrapper library for Blazor.","language":"C#","stars":85,"topics":["blazor","blazor-webassembly","canvas","canvas2d","game-development","gamedev","hacktoberfest"],"license":"MIT","category":"game-templates","readme_excerpt":"Blazorex Description Blazorex is an HTML Canvas wrapper library for Blazor. It has some interesting functionalities like: - multiple canvases - background rendering - image rendering - procedural image generation (yes, the fire on the background is fully procedural! Thanks filipedeschamps for the awesome repository showing how to render the Doom fire! ) Installation Blazorex can be installed as Nuget package: https://www.nuget.org/packages/Blazorex/ Usage Simple scenario Just add the Canvas Component to your Razor page and register to the OnCanvasReady to receive the CanvasBase instance. Then use OnFrameReady to define your update/render logic: You might also need to update your index.html to include the library's CSS: Multiple Canvases In case you want to have multiple canvases on the same page, you can use the CanvasManager component instead: You simply have to get a reference to the CanvasManager and then call the CreateCanvas passing an instance of CanvasCreationOptions with the desired parameters. For a complete list of options for Canvas initialization, see here. For the complete documentation, check the official website The ./samples folder contains some examples of how to setup the canvas and draw some cool stuff :) A sample game can be found here: Blazeroids","default_branch":null,"files":null,"tree":[],"storefront":"/r/mizrael","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mizrael/Blazorex/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}