diff --git a/games/Orbit.Studio/Orbit.Studio.sln b/games/Orbit.Studio/Orbit.Studio.sln
new file mode 100644
index 0000000..310a654
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio.sln
@@ -0,0 +1,22 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orbit.Studio", "Orbit.Studio\Orbit.Studio.csproj", "{C701420E-4BD0-4819-9AEE-49ED98608417}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Orbit.Engine", "..\..\engine\Orbit.Engine\Orbit.Engine.csproj", "{4B59FD52-3273-4FD9-BA26-173A9016FFBF}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {C701420E-4BD0-4819-9AEE-49ED98608417}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C701420E-4BD0-4819-9AEE-49ED98608417}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C701420E-4BD0-4819-9AEE-49ED98608417}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C701420E-4BD0-4819-9AEE-49ED98608417}.Release|Any CPU.Build.0 = Release|Any CPU
+ {4B59FD52-3273-4FD9-BA26-173A9016FFBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4B59FD52-3273-4FD9-BA26-173A9016FFBF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4B59FD52-3273-4FD9-BA26-173A9016FFBF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4B59FD52-3273-4FD9-BA26-173A9016FFBF}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/games/Orbit.Studio/Orbit.Studio/App.xaml b/games/Orbit.Studio/Orbit.Studio/App.xaml
new file mode 100644
index 0000000..ca36535
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/App.xaml.cs b/games/Orbit.Studio/Orbit.Studio/App.xaml.cs
new file mode 100644
index 0000000..01e41e1
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/App.xaml.cs
@@ -0,0 +1,11 @@
+namespace Orbit.Studio;
+
+public partial class App : Application
+{
+ public App()
+ {
+ InitializeComponent();
+
+ MainPage = new AppShell();
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/AppShell.xaml b/games/Orbit.Studio/Orbit.Studio/AppShell.xaml
new file mode 100644
index 0000000..74efa10
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/AppShell.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/AppShell.xaml.cs b/games/Orbit.Studio/Orbit.Studio/AppShell.xaml.cs
new file mode 100644
index 0000000..d212126
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/AppShell.xaml.cs
@@ -0,0 +1,9 @@
+namespace Orbit.Studio;
+
+public partial class AppShell : Shell
+{
+ public AppShell()
+ {
+ InitializeComponent();
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Controls/ColorPicker.xaml b/games/Orbit.Studio/Orbit.Studio/Controls/ColorPicker.xaml
new file mode 100644
index 0000000..e58dcf5
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Controls/ColorPicker.xaml
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Controls/ColorPicker.xaml.cs b/games/Orbit.Studio/Orbit.Studio/Controls/ColorPicker.xaml.cs
new file mode 100644
index 0000000..715f76e
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Controls/ColorPicker.xaml.cs
@@ -0,0 +1,42 @@
+namespace Orbit.Studio.Controls;
+
+public partial class ColorPicker : Grid
+{
+ public ColorPicker()
+ {
+ InitializeComponent();
+ }
+
+ private void OnColorSliderValueChanged(object? sender, ValueChangedEventArgs e)
+ {
+ SelectedColor = Color.FromRgba(
+ Red.Value / 255d,
+ Blue.Value / 255d,
+ Green.Value / 255d,
+ Alpha.Value / 255d);
+ }
+
+ public static readonly BindableProperty SelectedColorProperty =
+ BindableProperty.Create(
+ nameof(SelectedColor),
+ typeof(Color),
+ typeof(ColorPicker),
+ Colors.Black,
+ propertyChanged: OnSelectedColorPropertyChanged);
+
+ private static void OnSelectedColorPropertyChanged(BindableObject sender, object oldValue, object newValue)
+ {
+ ((ColorPicker)sender).UpdatePreviewColor();
+ }
+
+ private void UpdatePreviewColor()
+ {
+ ColorPreview.BackgroundColor = SelectedColor;
+ }
+
+ public Color SelectedColor
+ {
+ get => (Color)GetValue(SelectedColorProperty);
+ set => SetValue(SelectedColorProperty, value);
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/MauiProgram.cs b/games/Orbit.Studio/Orbit.Studio/MauiProgram.cs
new file mode 100644
index 0000000..3fecad2
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/MauiProgram.cs
@@ -0,0 +1,24 @@
+using Microsoft.Extensions.Logging;
+
+namespace Orbit.Studio;
+
+public static class MauiProgram
+{
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Orbit.Studio.csproj b/games/Orbit.Studio/Orbit.Studio/Orbit.Studio.csproj
new file mode 100644
index 0000000..6766378
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Orbit.Studio.csproj
@@ -0,0 +1,68 @@
+
+
+
+ net8.0-android;net8.0-ios;net8.0-maccatalyst
+ $(TargetFrameworks);net8.0-windows10.0.19041.0
+
+
+
+
+
+
+ Exe
+ Orbit.Studio
+ true
+ true
+ enable
+ enable
+
+
+ Orbit.Studio
+
+
+ com.companyname.orbit.studio
+
+
+ 1.0
+ 1
+
+ 11.0
+ 13.1
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Android/AndroidManifest.xml b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..e9937ad
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Android/MainActivity.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..d437fda
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/MainActivity.cs
@@ -0,0 +1,12 @@
+using Android.App;
+using Android.Content.PM;
+using Android.OS;
+
+namespace Orbit.Studio;
+
+[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true,
+ ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode |
+ ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
+public class MainActivity : MauiAppCompatActivity
+{
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Android/MainApplication.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..c1d3958
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/MainApplication.cs
@@ -0,0 +1,15 @@
+using Android.App;
+using Android.Runtime;
+
+namespace Orbit.Studio;
+
+[Application]
+public class MainApplication : MauiApplication
+{
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Android/Resources/values/colors.xml b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..c04d749
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/AppDelegate.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..cfa6ba4
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,9 @@
+using Foundation;
+
+namespace Orbit.Studio;
+
+[Register("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Entitlements.plist b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Entitlements.plist
new file mode 100644
index 0000000..de4adc9
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Entitlements.plist
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+ com.apple.security.network.client
+
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Info.plist b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..7268977
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Program.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..4235516
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,15 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace Orbit.Studio;
+
+public class Program
+{
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Tizen/Main.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..0181c24
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Tizen/Main.cs
@@ -0,0 +1,16 @@
+using System;
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+
+namespace Orbit.Studio;
+
+class Program : MauiApplication
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Tizen/tizen-manifest.xml b/games/Orbit.Studio/Orbit.Studio/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..e3ca4c5
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/App.xaml b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..e448a80
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/App.xaml.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..aca1d61
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,23 @@
+using Microsoft.UI.Xaml;
+
+// To learn more about WinUI, the WinUI project structure,
+// and more about our project templates, see: http://aka.ms/winui-project-info.
+
+namespace Orbit.Studio.WinUI;
+
+///
+/// Provides application-specific behavior to supplement the default Application class.
+///
+public partial class App : MauiWinUIApplication
+{
+ ///
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ ///
+ public App()
+ {
+ this.InitializeComponent();
+ }
+
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/Package.appxmanifest b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..a240b29
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/app.manifest b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..4f0b5a5
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/AppDelegate.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..cfa6ba4
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,9 @@
+using Foundation;
+
+namespace Orbit.Studio;
+
+[Register("AppDelegate")]
+public class AppDelegate : MauiUIApplicationDelegate
+{
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/Info.plist b/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..0004a4f
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/Program.cs b/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..4235516
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Platforms/iOS/Program.cs
@@ -0,0 +1,15 @@
+using ObjCRuntime;
+using UIKit;
+
+namespace Orbit.Studio;
+
+public class Program
+{
+ // This is the main entry point of the application.
+ static void Main(string[] args)
+ {
+ // if you want to use a different Application Delegate class from "AppDelegate"
+ // you can specify it here.
+ UIApplication.Main(args, null, typeof(AppDelegate));
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Properties/launchSettings.json b/games/Orbit.Studio/Orbit.Studio/Properties/launchSettings.json
new file mode 100644
index 0000000..edf8aad
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/AppIcon/appicon.svg b/games/Orbit.Studio/Orbit.Studio/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..9d63b65
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/AppIcon/appiconfg.svg b/games/Orbit.Studio/Orbit.Studio/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/Fonts/OpenSans-Regular.ttf b/games/Orbit.Studio/Orbit.Studio/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..9ab655d
Binary files /dev/null and b/games/Orbit.Studio/Orbit.Studio/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/Fonts/OpenSans-Semibold.ttf b/games/Orbit.Studio/Orbit.Studio/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..2b7468e
Binary files /dev/null and b/games/Orbit.Studio/Orbit.Studio/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/Images/dotnet_bot.png b/games/Orbit.Studio/Orbit.Studio/Resources/Images/dotnet_bot.png
new file mode 100644
index 0000000..f93ce02
Binary files /dev/null and b/games/Orbit.Studio/Orbit.Studio/Resources/Images/dotnet_bot.png differ
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/Raw/AboutAssets.txt b/games/Orbit.Studio/Orbit.Studio/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..15d6244
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with you package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/Splash/splash.svg b/games/Orbit.Studio/Orbit.Studio/Resources/Splash/splash.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/Styles/Colors.xaml b/games/Orbit.Studio/Orbit.Studio/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..30307a5
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Resources/Styles/Colors.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ #512BD4
+ #ac99ea
+ #242424
+ #DFD8F7
+ #9880e5
+ #2B0B98
+
+ White
+ Black
+ #D600AA
+ #190649
+ #1f1f1f
+
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Resources/Styles/Styles.xaml b/games/Orbit.Studio/Orbit.Studio/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..e0d36bb
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Resources/Styles/Styles.xaml
@@ -0,0 +1,426 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/games/Orbit.Studio/Orbit.Studio/Sprites/SpriteEditorPage.xaml b/games/Orbit.Studio/Orbit.Studio/Sprites/SpriteEditorPage.xaml
new file mode 100644
index 0000000..971f33d
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Sprites/SpriteEditorPage.xaml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/games/Orbit.Studio/Orbit.Studio/Sprites/SpriteEditorPage.xaml.cs b/games/Orbit.Studio/Orbit.Studio/Sprites/SpriteEditorPage.xaml.cs
new file mode 100644
index 0000000..fc9a7aa
--- /dev/null
+++ b/games/Orbit.Studio/Orbit.Studio/Sprites/SpriteEditorPage.xaml.cs
@@ -0,0 +1,145 @@
+using Microsoft.Maui.Graphics.Skia;
+
+using SkiaSharp;
+
+namespace Orbit.Studio.Sprites;
+
+public partial class SpriteEditorPage : ContentPage, IDrawable
+{
+ public SpriteEditorPage()
+ {
+ InitializeComponent();
+ BindingContext = this;
+ }
+
+ private int width = 16;
+ private int height = 16;
+ private IList pixels = [];
+ private float mouseX;
+ private float mouseY;
+
+ private void GraphicsView_OnEndInteraction(object? sender, TouchEventArgs e)
+ {
+ pixels.Add(new Pixel { Color = ColorPicker.SelectedColor, Location = new PointF(mouseX, mouseY) });
+ }
+
+ public void Draw(ICanvas canvas, RectF dirtyRect)
+ {
+ Render(canvas, dirtyRect, (float)Zoom.Value, ShowGridLines.IsChecked, ShowChessboard.IsChecked);
+ }
+
+ private void Render(ICanvas canvas, RectF bounds, float zoomFactor, bool showGridLines, bool showChessboard)
+ {
+ var renderedWidth = width * zoomFactor;
+ var renderedHeight = height * zoomFactor;
+
+ if (showChessboard)
+ {
+ for (int x = 0; x < width; x++)
+ {
+ for (int y = 0; y < height; y++)
+ {
+ var number = y % 2 == 0 ? 1 : 0;
+ canvas.FillColor = x % 2 == number ? Colors.White : Color.FromRgb(192 / 255d, 192 / 255d, 192 / 255d);
+ canvas.FillRectangle(x * zoomFactor, y * zoomFactor, 1 * zoomFactor, 1 * zoomFactor);
+ }
+ }
+ }
+
+ if (showGridLines)
+ {
+ var lineColor = Color.FromRgb(192 / 255d, 192 / 255d, 192 / 255d);
+
+ for (int x = 1; x < width; x++)
+ {
+ canvas.StrokeColor = lineColor;
+ canvas.DrawLine(x * zoomFactor, 0, x * zoomFactor, height * zoomFactor);
+ }
+
+ for (int y = 1; y < height; y++)
+ {
+ canvas.StrokeColor = lineColor;
+ canvas.DrawLine(0, y * zoomFactor, width * zoomFactor, y * zoomFactor);
+ }
+ }
+
+ foreach (var tile in pixels)
+ {
+ canvas.FillColor = tile.Color;
+ canvas.FillRectangle(tile.Location.X * zoomFactor, tile.Location.Y * zoomFactor, zoomFactor, zoomFactor);
+ }
+
+ canvas.FillColor = ColorPicker.SelectedColor;
+ canvas.FillRectangle(mouseX * zoomFactor, mouseY * zoomFactor, zoomFactor, zoomFactor);
+ }
+
+ private void Zoom_OnValueChanged(object? sender, ValueChangedEventArgs e)
+ {
+ Canvas.Invalidate();
+ }
+
+ private void Canvas_OnMoveHoverInteraction(object? sender, TouchEventArgs e)
+ {
+ var touch = e.Touches.First();
+
+ var zoomFactor = (float)Zoom.Value;
+
+ mouseX = MathF.Floor(touch.X / zoomFactor);
+ mouseY = MathF.Floor(touch.Y / zoomFactor);
+
+ Canvas.Invalidate();
+ }
+
+ private void Export()
+ {
+ using var canvas = new SkiaCanvas();
+ using var bitmap = new SKBitmap(new SKImageInfo(width, height));
+ canvas.Canvas = new SKCanvas(bitmap);
+
+ Render(canvas, new RectF(0, 0, width, height), 1f, false, false);
+
+ var path = Path.Combine(FileSystem.AppDataDirectory, @"sprite.png");
+ using var stream = File.Create(path);
+ bitmap.Encode(stream, SKEncodedImageFormat.Png, 100);
+ }
+
+ private void Button_OnClicked(object? sender, EventArgs e)
+ {
+ Export();
+ }
+
+ private void ShowGridLines_OnCheckedChanged(object? sender, CheckedChangedEventArgs e)
+ {
+ Canvas.Invalidate();
+ }
+
+ private void ShowChessboard_OnCheckedChanged(object? sender, CheckedChangedEventArgs e)
+ {
+ Canvas.Invalidate();
+ }
+
+ private void OnUndoClicked(object? sender, EventArgs e)
+ {
+ pixels.RemoveAt(pixels.Count - 1);
+ Canvas.Invalidate();
+ }
+
+ private void WidthEntry_OnTextChanged(object? sender, TextChangedEventArgs e)
+ {
+ int.TryParse(e.NewTextValue, out width);
+ Canvas.Invalidate();
+ }
+
+ private void HeightEntry_OnTextChanged(object? sender, TextChangedEventArgs e)
+ {
+ int.TryParse(e.NewTextValue, out height);
+ Canvas.Invalidate();
+ }
+}
+
+public class Pixel
+{
+ public Color Color { get; init; }
+
+ public PointF Location { get; init; }
+}
\ No newline at end of file