diff --git a/.gitignore b/.gitignore index 682b3cb5e..833666d36 100644 --- a/.gitignore +++ b/.gitignore @@ -39,6 +39,9 @@ spine-csharp/obj spine-monogame/xamarinstudio-ios/src/bin spine-monogame/xamarinstudio-ios/src/obj +spine-monogame/xamarinstudio-ios/example/bin +spine-monogame/xamarinstudio-ios/example/obj + spine-monogame/windows8-store/src/bin spine-monogame/windows8-store/src/obj diff --git a/spine-monogame/xamarinstudio-ios/example/AppDelegate.cs b/spine-monogame/xamarinstudio-ios/example/AppDelegate.cs new file mode 100644 index 000000000..21c5dd4f6 --- /dev/null +++ b/spine-monogame/xamarinstudio-ios/example/AppDelegate.cs @@ -0,0 +1,40 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using Spine; + +using MonoTouch.Foundation; +using MonoTouch.UIKit; + +namespace spinemonogameexample +{ + // The UIApplicationDelegate for the application. This class is responsible for launching the + // User Interface of the application, as well as listening (and optionally responding) to + // application events from iOS. + [Register ("AppDelegate")] + public partial class AppDelegate : UIApplicationDelegate + { + // class-level declarations + UIWindow window; + + // + // This method is invoked when the application has loaded and is ready to run. In this + // method you should instantiate the window, load the UI into it and then make the window + // visible. + // + // You have 17 seconds to return from this method, or iOS will terminate your application. + // + public override bool FinishedLaunching (UIApplication app, NSDictionary options) + { + // create a new window instance based on the screen size + window = new UIWindow (UIScreen.MainScreen.Bounds); + + var animationDemo = new Example (); + animationDemo.Run (); + + return true; + } + } +} + diff --git a/spine-monogame/xamarinstudio-ios/example/Entitlements.plist b/spine-monogame/xamarinstudio-ios/example/Entitlements.plist new file mode 100644 index 000000000..9ae599370 --- /dev/null +++ b/spine-monogame/xamarinstudio-ios/example/Entitlements.plist @@ -0,0 +1,6 @@ + + + + + + diff --git a/spine-monogame/xamarinstudio-ios/example/Info.plist b/spine-monogame/xamarinstudio-ios/example/Info.plist new file mode 100644 index 000000000..e044e197e --- /dev/null +++ b/spine-monogame/xamarinstudio-ios/example/Info.plist @@ -0,0 +1,33 @@ + + + + + CFBundleDisplayName + spine-monogame-example + CFBundleIdentifier + com.your-company.spinemonogameexample + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + MinimumOSVersion + 7.0 + UIDeviceFamily + + 2 + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/spine-monogame/xamarinstudio-ios/example/Main.cs b/spine-monogame/xamarinstudio-ios/example/Main.cs new file mode 100644 index 000000000..4c9782a3a --- /dev/null +++ b/spine-monogame/xamarinstudio-ios/example/Main.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; + +using MonoTouch.Foundation; +using MonoTouch.UIKit; + +namespace spinemonogameexample +{ + public class Application + { + // 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, "AppDelegate"); + } + } +} diff --git a/spine-monogame/xamarinstudio-ios/example/spine-monogame-example.csproj b/spine-monogame/xamarinstudio-ios/example/spine-monogame-example.csproj new file mode 100644 index 000000000..36a06a50b --- /dev/null +++ b/spine-monogame/xamarinstudio-ios/example/spine-monogame-example.csproj @@ -0,0 +1,143 @@ + + + + Debug + iPhoneSimulator + {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9} + Exe + spinemonogameexample + Resources + spinemonogameexample + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG; + prompt + 4 + false + None + Entitlements.plist + true + + + full + true + bin\iPhoneSimulator\Release + prompt + 4 + None + false + Entitlements.plist + + + true + full + false + bin\iPhone\Debug + DEBUG; + prompt + 4 + false + Entitlements.plist + true + iPhone Developer + + + full + true + bin\iPhone\Release + prompt + 4 + Entitlements.plist + false + iPhone Developer + + + full + true + bin\iPhone\Ad-Hoc + prompt + 4 + false + Entitlements.plist + true + Automatic:AdHoc + iPhone Distribution + + + full + true + bin\iPhone\AppStore + prompt + 4 + iPhone Distribution + Entitlements.plist + false + Automatic:AppStore + + + + + + + + + + + + + + + + + + + + ExampleGame.cs + + + + + + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47} + MonoGame.Framework.iOS + + + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3} + spine-monogame-xamarinstudio-ios + + + + + data\goblins-ffd.atlas + + + data\goblins-ffd.json + + + data\goblins-ffd.png + + + data\raptor.atlas + + + data\raptor.json + + + data\raptor.png + + + data\spineboy.atlas + + + data\spineboy.json + + + data\spineboy.png + + + \ No newline at end of file diff --git a/spine-monogame/xamarinstudio-ios/example/spine-monogame-example.sln b/spine-monogame/xamarinstudio-ios/example/spine-monogame-example.sln new file mode 100644 index 000000000..6c69c3843 --- /dev/null +++ b/spine-monogame/xamarinstudio-ios/example/spine-monogame-example.sln @@ -0,0 +1,74 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "spine-monogame-example", "spine-monogame-example.csproj", "{1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Lidgren.Network.iOS", "..\..\..\..\MonoGame\ThirdParty\Lidgren.Network\Lidgren.Network.iOS.csproj", "{734EAA48-F1CA-481A-B391-0285BC0E8B40}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MonoGame.Framework.iOS", "..\..\..\..\MonoGame\MonoGame.Framework\MonoGame.Framework.iOS.csproj", "{DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "spine-monogame-xamarinstudio-ios", "..\src\spine-monogame-xamarinstudio-ios.csproj", "{08DC311B-1F38-4CBD-B7B6-B734984A8CB3}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|iPhoneSimulator = Debug|iPhoneSimulator + Release|iPhoneSimulator = Release|iPhoneSimulator + Debug|iPhone = Debug|iPhone + Release|iPhone = Release|iPhone + Ad-Hoc|iPhone = Ad-Hoc|iPhone + AppStore|iPhone = AppStore|iPhone + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.AppStore|iPhone.ActiveCfg = Release|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.AppStore|iPhone.Build.0 = Release|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Debug|iPhone.Build.0 = Debug|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Release|iPhone.ActiveCfg = Release|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Release|iPhone.Build.0 = Release|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {08DC311B-1F38-4CBD-B7B6-B734984A8CB3}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.AppStore|iPhone.ActiveCfg = AppStore|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.AppStore|iPhone.Build.0 = AppStore|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Debug|iPhone.ActiveCfg = Debug|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Debug|iPhone.Build.0 = Debug|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Release|iPhone.ActiveCfg = Release|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Release|iPhone.Build.0 = Release|iPhone + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {1B40F8C5-B8CA-4F5C-8B48-61D1E8981CA9}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Ad-Hoc|iPhone.ActiveCfg = Release|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Ad-Hoc|iPhone.Build.0 = Release|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.AppStore|iPhone.ActiveCfg = Release|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.AppStore|iPhone.Build.0 = Release|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Debug|iPhone.ActiveCfg = Debug|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Debug|iPhone.Build.0 = Debug|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Release|iPhone.ActiveCfg = Release|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Release|iPhone.Build.0 = Release|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU + {734EAA48-F1CA-481A-B391-0285BC0E8B40}.Release|iPhoneSimulator.Build.0 = Release|Any CPU + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Ad-Hoc|iPhone.ActiveCfg = Release|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Ad-Hoc|iPhone.Build.0 = Release|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.AppStore|iPhone.ActiveCfg = Release|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.AppStore|iPhone.Build.0 = Release|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Debug|iPhone.ActiveCfg = Debug|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Debug|iPhone.Build.0 = Debug|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Release|iPhone.ActiveCfg = Release|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Release|iPhone.Build.0 = Release|iPhone + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {DB8508BB-9849-4CC2-BC0F-8EB5DACB3C47}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + StartupItem = spine-monogame-example.csproj + EndGlobalSection +EndGlobal diff --git a/spine-monogame/xamarinstudio-ios/src/spine-monogame-xamarinstudio-ios.csproj b/spine-monogame/xamarinstudio-ios/src/spine-monogame-xamarinstudio-ios.csproj index a605c9153..352d10bbc 100644 --- a/spine-monogame/xamarinstudio-ios/src/spine-monogame-xamarinstudio-ios.csproj +++ b/spine-monogame/xamarinstudio-ios/src/spine-monogame-xamarinstudio-ios.csproj @@ -3,8 +3,6 @@ Debug AnyCPU - 8.0.30703 - 2.0 {08DC311B-1F38-4CBD-B7B6-B734984A8CB3} {6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} Library