Skip to content

taublast/Maui.Game.SpaceShooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.NET MAUI Space Shooter Game

devenv_KU0daJs2nS.mp4

Built with DrawnUI for .NET MAUI

Don't miss another game made with DrawnUI: Breakout !

The Challenge

To create a simple yet heavily animated arcade cross-platform game, using .NET MAUI XAML with Skia drawn UI, showing all the advantages that .NET MAUI and SkiaSharp provide. The game runs on Android, Windows, iOS, and Mac (Catalyst), all from a single code base. Desktop versions support both mouse and keyboard.

Implementation

Driven by one of the awesome ICT MOO tutorials, much content to play with, knowing we can do it all with .NET MAUI.

Free Lottie animations quickly fulfilled the need for animated content.

DrawnUI was used to draw virtual controls on a Skia canvas.

Recap

  • Repo updated with latest DrawnUI nuget providing fluid game timing
  • Android is hardware-accelerated with GL
  • iOS and Mac Catalyst are hardware-accelerated with Apple Metal
  • Windows is using hardware acceleration with Angle.

Desktop versions present non-resizable windows, capturing keyboard input.

Lottie animations have proven themselves to be very useful to quickly implement animations.

Attained result and FPS are fine.

With an optimized design, especially in regards to control caching, we could imagine more games and fancy animations built with #dotnetmaui.

Licencing

This code and the DrawnUI nuget are provided under the MIT license. ICT MOO space ships sprites come under the Apache 2.0 license.