A Small Game Developed with Uno

A Small Game Developed with Uno

I always thought Uno could only be used to develop desktop and mobile apps, but it turns out it can also develop Web, and this is a web mini-game!

Last updated 10/24/2022 9:19 PM
沙漠尽头的狼
2 min read
Category
.NET
Tags
.NET C# Uno

Hello everyone, I'm Wolf at the End of the Desert.

Just hanging out in a WeChat group, a netizen shared an Uno online mini-game. The site owner thought it was pretty cool, so here's a quick share:

WeChat group knowledge

What is Uno?

An open-source UI platform for building pixel-perfect multi-platform applications using C# and WinUI, enabling single-codebase apps for Windows, iOS, Android, WebAssembly, macOS, and Linux.

Online Mini-Game

Online address: https://asadullahrifat89.github.io/hungry-worm-uno-platform/

Since it's developed using Web Assembly, despite the promise of "fast, efficient, and portable—by leveraging common hardware capabilities, WebAssembly code can run at near-native speed across different platforms," Uno also brings its runtime, so the site size is a bit large—about 28MB, taking around 10 seconds to load. It's recommended to use a scientific tool if you want to play.

Simple introduction to Web Assembly: A binary format for the web. WebAssembly (wasm) is a virtual instruction set architecture (virtual ISA). Its overall architecture includes the core ISA definition, binary encoding, definition and execution of program semantics, and an application programming interface (WebAssembly API) for different embedding environments (such as the web). Its initial goal is to allow programs written in languages like C/C++ to be compiled and run on the Web platform with better security and near-native application speed. — Excerpt from Baidu Baike

Site Size

Site size

Game Loading Page

Due to varying network environments, the site size is a bit large, so there's a loading page to avoid boring waits:

Game loading page

Game Homepage

Game homepage

Quick Play Session

Quick play

Uno Official Website

https://platform.uno/

Uno official website

Uno Repository

https://github.com/nventive/Uno

Uno repository

Judging from the latest code commits, this framework is very active and a strong competitor to MAUI. If you're interested, go check it out.

Keep Exploring

Related Reading

More Articles