|
|
пре 2 месеци | |
|---|---|---|
| .. | ||
| .config | пре 2 месеци | |
| .vscode | пре 2 месеци | |
| Core | пре 2 месеци | |
| Platforms | пре 2 месеци | |
| MultiTouch.sln | пре 2 месеци | |
| README.md | пре 2 месеци | |
A MonoGame 3.8.* sample demonstrating multi-touch input and drawing functionality. This sample allows users to draw on the screen using touch input or mouse, with support for multiple simultaneous touch points.
This sample uses a modern, multi-project structure:
/Core — Shared game logic (Game1.cs, MultiTouch.Core.csproj)/Platforms/Windows — Windows DirectX entry point and project/Platforms/Desktop — DesktopGL entry point and project/Platforms/Android — Android entry point and project/Platforms/iOS — iOS entry point and project/Content — Game assets (textures)Each platform folder contains its own .csproj and entry point, referencing the shared /Core project.
MultiTouch.sln in Visual StudioPlatforms/Windows/MultiTouch.Windows.csproj)build-windows / run-windowsbuild-desktopgl / run-desktopglbuild-android / run-androidbuild-ios / run-iosOr use the launch configurations in .vscode/launch.json for debugging.
dotnet build Platforms/Windows/MultiTouch.Windows.csproj
dotnet run --project Platforms/Windows/MultiTouch.Windows.csproj
dotnet build Platforms/Desktop/MultiTouch.DesktopGL.csproj
dotnet run --project Platforms/Desktop/MultiTouch.DesktopGL.csproj
dotnet build Platforms/Android/MultiTouch.Android.csproj
# Deploy to connected device or emulator
dotnet build Platforms/Android/MultiTouch.Android.csproj -t:Run
dotnet build Platforms/iOS/MultiTouch.iOS.csproj
# Deploy to connected device or simulator
dotnet build Platforms/iOS/MultiTouch.iOS.csproj -t:Run
/Core
Game1.cs
MultiTouch.Core.csproj
/Platforms
/Windows
MultiTouch.Windows.csproj
Program.cs
/Desktop
MultiTouch.DesktopGL.csproj
Program.cs
/Android
MultiTouch.Android.csproj
MainActivity.cs
/iOS
MultiTouch.iOS.csproj
Program.cs
/Content
sqbrush.png
circle.png
The sample uses the following content files:
sqbrush.png — Brush texture for drawingcircle.png — Circle texture (unused in current implementation)These are included as .xnb files and loaded directly without requiring MonoGame Content Pipeline compilation.
#if/#endif blocks)