Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ctrl-alt-d/Blagario
Agar with no javascript lab: Blazor + html + css
https://github.com/ctrl-alt-d/Blagario
Last synced: 19 days ago
JSON representation
Agar with no javascript lab: Blazor + html + css
- Host: GitHub
- URL: https://github.com/ctrl-alt-d/Blagario
- Owner: ctrl-alt-d
- License: mit
- Created: 2019-06-22T17:23:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-04-17T15:54:39.000Z (over 4 years ago)
- Last Synced: 2024-08-01T15:03:59.536Z (4 months ago)
- Language: C#
- Size: 3.96 MB
- Stars: 28
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blagario project
This is just an experimental lab to test to make a multiplayer web game without javascript (or almost without). Components:
* blazor ( netcore 3.0.100 )
* html
* cssMaybe a more simple game (pong, snake, space invaders ) would be enough to make the lab ... but ... let's try.
This is not a real project, just a lab to enjoy and for experimental purposes (check performance, refresh, network bandwidth, learn new blazor features, ... ).
### How it works?
* All elements ( cell, viruses, world, pellets, W) are simple C# classes.
* Each element has a `Tic` method who makes game move on.
* They are a `HostedService` who calls the `Tic`s.
* `Universe` is injected as `AddSingleton`: one Universe for all people.
* `Player` is injected as `Scoped`: one Cell for Player (connection).
* Mouse is tracked by blazor ( `@onmousemove`'s `MouseEventArgs` )### Collaboration wanted:
[See todo list and make PR's](https://github.com/ctrl-alt-d/Blagario/issues/1)
Make PR to this report and contribute to [hacktoberfest](https://hacktoberfest.digitalocean.com/)
![screenshot](./screenshots/blagario_v1.gif)
*Two gamers, two cells*