Skip to content

Instantly share code, notes, and snippets.

View dellis1972's full-sized avatar

Dean Ellis dellis1972

View GitHub Profile
@dellis1972
dellis1972 / AssetPackContentManager.cs
Created October 4, 2021 08:02
MonoGame DownloadContentManager
using System;
using System.IO;
using System.Collections.Generic;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Xamarin.Google.Android.Play.Core.AssetPacks;
using Xamarin.Google.Android.Play.Core.AssetPacks.Model;
namespace MonoGameAndroidAds
{
@dellis1972
dellis1972 / OVERVIEW.TXT
Created June 7, 2021 13:32 — forked from hfutxqd/OVERVIEW.TXT
adb protocol
Implementation notes regarding ADB.
I. General Overview:
The Android Debug Bridge (ADB) is used to:
- keep track of all Android devices and emulators instances
connected to or running on a given host developer machine
- implement various control commands (e.g. "adb shell", "adb pull", etc.)
@dellis1972
dellis1972 / example.csproj
Created April 23, 2021 12:49
Manifest Overlay Example
<ItemGroup>
<AndroidManifestOverlay Include="profileableoverlay.xml" Condition=" '$(ProfileMe)' == 'True' " />
</ItemGroup>
@dellis1972
dellis1972 / extensions.json
Created March 3, 2021 10:47
VSCodeDebuggerSetup
{
"recommendations": [
"ms-vscode.csharp",
"ms-vscode.mono-debug",
"visualstudioexptteam.vscodeintellicode",
]
}
<EmbedAssembliesIntoApk>False</EmbedAssembliesIntoApk>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
# This script creates two kinds of isometric cameras.
#The one, TrueIsocam called camera, is the mathematical correct isometric camera with the 54.736 rotation to get the 30 degrees angles at the sides of the rhombus.
#The other, GameIsocam called camera, is a camera with which you can render isometric tiles for a 2d game. Here we need a 60 degrees angle instedad of the 54.736 one to get a proper stairs effect and a ratio of 2:1
# Then there is the special case with a 4:3 ratio, which is button 3. You can also make 2D games with that one. The view is more topdown though as with a 2:1 ratio of the traditional game iso view.
# The fourth button creates a simple groundplane where you can place your stuff at.
#You can of course set up everything by hand. This script is a convenient solution so that you don't have to setup it again and again.
# The script is under Apache license
# Jump System/Planets
--- ------ ---------------
1 20.80 Antliae Sector VZ-P b5-5
A 6 (175) TWW
2 18.71 Antliae Sector GR-W d1-90
1 (305) HMC
2 (427) ELW
3 (575) HMC
3 31.32 HIP 55469 *
A 3 (939) HMC
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Build.Framework;
using Microsoft.Build.Utilities;
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="_Fixedup" BeforeTargets="IncrementalClean">
<CreateItem Include="$(OutDir)*.pdb;$(OutDir)*.dll">
<Output TaskParameter="Include" ItemName="_FilesNotToDelete" />
</CreateItem>
<CreateItem Include="$([System.IO.Path]::GetFullPath('%(_FilesNotToDelete.Identity)'))"
Condition="Exists('%(_FilesNotToDelete.Identity)')">
<Output TaskParameter="Include" ItemName="_CleanCurrentFileWrites" />
</CreateItem>
</Target>
@dellis1972
dellis1972 / Game1.cs
Created January 4, 2018 20:43 — forked from Jjagg/Game1.cs
MonoGame backend sample for ImGui.NET (https://github.com/mellinoe/ImGui.NET)
using System;
using System.Runtime.InteropServices;
using ImGuiNET;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Input;
using Vector2 = ImGuiNET.Vector2;
using Vector3 = ImGuiNET.Vector3;
using Vector4 = ImGuiNET.Vector4;