An open API service indexing awesome lists of open source software.

https://github.com/inerska/blazoraxolotlengine

Blazor game engine based on Blazor Canvas Extension
https://github.com/inerska/blazoraxolotlengine

blazor blazor-webassembly blazorwasm canvas canvas2d dotnet game-engine gameengine webgl webgl2

Last synced: 8 months ago
JSON representation

Blazor game engine based on Blazor Canvas Extension

Awesome Lists containing this project

README

          


Blazor Axolotl Engine's mascot

Blazor Axolotl Engine

Blazor Axolotl Engine aims to be a simple, lightweight, and fast 2D game engine for the web. It has an integrated Entity Component System (ECS) and a simple API to create games.
The game engine is based on the [Blazor Canvas Extension](https://github.com/BlazorExtensions/Canvas) and uses the [Blazor WebAssembly](https://dotnet.microsoft.com/apps/aspnet/web-apps/client) framework.

Example of some code with ECS (Entity Component System):

```csharp
var world = new World();
var entity = new TestSystem(); // You must create a class that inherits from ISystem, it can be a tank, a player, a bullet, etc.

world.AssignTo(entity);

if (entity.Has()) {
var transform = entity.Get();
transform.Position = new Vector2(0, 0);
}
```

The ECS part is made to be mindless, so you can focus on the game logic. The rendering part of the engine will be either wrapped or either made by the user.
The ECS part is optional, you can use the engine without it.

This README.md is minding to be updated with more information about the engine.

Feel free to leave a star and contribute to the project!