All Projects → mizrael → BlazorCanvas

mizrael / BlazorCanvas

Licence: MIT license
Simple 2D gamedev examples using Blazor and .NET 5

Programming Languages

C#
18002 projects
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to BlazorCanvas

Graphics32
Graphics32 is a graphics library for Delphi and Lazarus. Optimized for 32-bit pixel formats, it provides fast operations with pixels and graphic primitives. In most cases Graphics32 considerably outperforms the standard TBitmap/TCanvas methods.
Stars: ✭ 238 (+140.4%)
Mutual labels:  2d
Blazor-CRUD
Simple CRUD application using C#/Blazor
Stars: ✭ 25 (-74.75%)
Mutual labels:  blazor
Blazor-Survey
A hybrid F#/C# blazor sample app to kick the tyres of blazor.
Stars: ✭ 16 (-83.84%)
Mutual labels:  blazor
Strife
a simple 2d game framework
Stars: ✭ 246 (+148.48%)
Mutual labels:  2d
rpirobot
A Raspberry Pi Robot Arm using .NET 5
Stars: ✭ 24 (-75.76%)
Mutual labels:  blazor
bUnit
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
Stars: ✭ 857 (+765.66%)
Mutual labels:  blazor
Pixieditor
PixiEditor is a lightweight pixel art editor made with .NET 5
Stars: ✭ 210 (+112.12%)
Mutual labels:  2d
blazor-dashboard
Blazor sample dashboard app with native components from Telerik
Stars: ✭ 20 (-79.8%)
Mutual labels:  blazor
memealyzer
Memealyzer is an app built to demonstrate some the latest and greatest Azure tech to dev, debug, and deploy microservice applications.
Stars: ✭ 97 (-2.02%)
Mutual labels:  blazor
AspNetCore6Experiments
ASP.NET Core Blazor BFF with Azure AD and Razor page
Stars: ✭ 43 (-56.57%)
Mutual labels:  blazor
Mathnet Spatial
Math.NET Spatial
Stars: ✭ 246 (+148.48%)
Mutual labels:  2d
Gg
Go Graphics - 2D rendering in Go with a simple API.
Stars: ✭ 3,162 (+3093.94%)
Mutual labels:  2d
SdvCodeWebsite
Simeon Valev - Personal Blog - Developed on ASP.NET Core MVC - Server-Side Blazor - See README.md file for more information
Stars: ✭ 38 (-61.62%)
Mutual labels:  blazor
Delaunator Cpp
A really fast C++ library for Delaunay triangulation of 2D points
Stars: ✭ 244 (+146.46%)
Mutual labels:  2d
glider
Generative music using conway's game of life
Stars: ✭ 38 (-61.62%)
Mutual labels:  2d
Rustarok
Multiplayer, fast-paced Moba style game
Stars: ✭ 223 (+125.25%)
Mutual labels:  2d
blazor-docs
Public Documentation for Telerik UI for Blazor components.
Stars: ✭ 42 (-57.58%)
Mutual labels:  blazor
Home
Home for Blazor Extensions
Stars: ✭ 51 (-48.48%)
Mutual labels:  blazor
footile
A 2D vector graphics library written in Rust
Stars: ✭ 32 (-67.68%)
Mutual labels:  2d
AsteroidsWasm
Collection of applications based on a single C# .NET Standard project running in: Blazor Client (WebAssembly), Blazor Server, Electron, WPF, WinForms, Xamarin
Stars: ✭ 136 (+37.37%)
Mutual labels:  blazor

BlazorCanvas

I started this project with the intention of learning/exploring what can be done with Blazor and 2d graphics. I am an old-time videogames lover and I always enjoyed coding small games and prototypes in my spare time.

The goal is to create small examples, built one on top of the other, showing how easy it is to render 2d elements using Blazor. Eventually I might end up writing a full game, it highly depends on how much time I'll have.

The repository is divided into numbered subfolders, each one with a single example.

Every example is also published on GitHub Pages via GitHub Actions using the approach outlined here . The master branch is used to host the published pages. The main branch is development.

Examples

  • Example1 shows how to initialize the 2d canvas
  • Example2 shows how to render a sprite and react to the window resize event
  • Example3 shows how to move a sprite on the screen
  • Example4 builds on top of the previous one, refactoring and cleaning up the code
  • Example5 shows how to handle mouse inputs
  • Example6 shows how to animate a sprite. Spritesheets were downloaded from here and combined using a custom tool
  • Example7 shows how to control animations using the keyboard
  • Example8 shows how to use a FSM to control animations and move the character on the screen
  • Example9 refactors the code and introduces the Scene Graph
  • Example10 adds the Assets Resolver
  • Example11 shows how to do collision detection

Tutorials

Every example will be explained in detail by an article on my personal blog:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].