Update 'SpriteKit' sample (#317)
* added new project and rempoved old one * update assets * Update LaunchScreen.storyboard * updated screenshots
Двоичные данные
SpriteKit/Screenshots/Shot1.png
До Ширина: | Высота: | Размер: 337 KiB |
Двоичные данные
SpriteKit/Screenshots/Shot2.png
До Ширина: | Высота: | Размер: 815 KiB |
После Ширина: | Высота: | Размер: 102 KiB |
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||||
# Visual Studio 2010
|
# Visual Studio 2010
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpriteKit", "SpriteKit\SpriteKit.csproj", "{799D6664-EEBB-4F5D-85E4-58BA92291712}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SpriteKit", "SpriteKit\SpriteKit.csproj", "{C58E33CF-0E52-44AC-86FD-877639469028}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
@ -13,18 +13,18 @@ Global
|
||||||
AppStore|iPhone = AppStore|iPhone
|
AppStore|iPhone = AppStore|iPhone
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Ad-Hoc|iPhone.ActiveCfg = Ad-Hoc|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Ad-Hoc|iPhone.Build.0 = Ad-Hoc|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.AppStore|iPhone.ActiveCfg = AppStore|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.AppStore|iPhone.Build.0 = AppStore|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Debug|iPhone.ActiveCfg = Debug|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Debug|iPhone.ActiveCfg = Debug|iPhone
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Debug|iPhone.Build.0 = Debug|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Debug|iPhone.Build.0 = Debug|iPhone
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Release|iPhone.ActiveCfg = Release|iPhone
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Release|iPhone.Build.0 = Release|iPhone
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Release|iPhone.ActiveCfg = Release|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Ad-Hoc|iPhone.ActiveCfg = Release|iPhone
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Release|iPhone.Build.0 = Release|iPhone
|
{C58E33CF-0E52-44AC-86FD-877639469028}.Ad-Hoc|iPhone.Build.0 = Release|iPhone
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
|
{C58E33CF-0E52-44AC-86FD-877639469028}.AppStore|iPhone.ActiveCfg = Release|iPhone
|
||||||
{799D6664-EEBB-4F5D-85E4-58BA92291712}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
|
{C58E33CF-0E52-44AC-86FD-877639469028}.AppStore|iPhone.Build.0 = Release|iPhone
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(MonoDevelopProperties) = preSolution
|
GlobalSection(MonoDevelopProperties) = preSolution
|
||||||
StartupItem = SpriteKit\SpriteKit.csproj
|
StartupItem = SpriteKit\SpriteKit.csproj
|
||||||
|
|
|
@ -1,37 +1,21 @@
|
||||||
using System;
|
using Foundation;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using Foundation;
|
|
||||||
using UIKit;
|
using UIKit;
|
||||||
|
|
||||||
namespace SpriteKit
|
namespace SpriteKit
|
||||||
{
|
{
|
||||||
// The UIApplicationDelegate for the application. This class is responsible for launching the
|
// 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
|
// User Interface of the application, as well as listening (and optionally responding) to application events from iOS.
|
||||||
// application events from iOS.
|
[Register("AppDelegate")]
|
||||||
[Register ("AppDelegate")]
|
public class AppDelegate : UIApplicationDelegate
|
||||||
public partial class AppDelegate : UIApplicationDelegate
|
{
|
||||||
{
|
public override UIWindow Window { get; set; }
|
||||||
// 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);
|
|
||||||
|
|
||||||
window.RootViewController = new ViewController ();
|
public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
|
||||||
// make the window visible
|
{
|
||||||
window.MakeKeyAndVisible ();
|
// Override point for customization after application launch.
|
||||||
|
// If not required for your application you can safely delete this method
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,244 @@
|
||||||
|
{
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"size": "20x20",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "20x20",
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-spotlight-29@2x.png",
|
||||||
|
"size": "29x29",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-spotlight-29@3x.png",
|
||||||
|
"size": "29x29",
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-spotlight-40@2x.png",
|
||||||
|
"size": "40x40",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-spotlight-40@3x.png",
|
||||||
|
"size": "40x40",
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-app-60@2x.png",
|
||||||
|
"size": "60x60",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "Icon-app-60@3x.png",
|
||||||
|
"size": "60x60",
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "20x20",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "20x20",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-spotlight-29.png",
|
||||||
|
"size": "29x29",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-spotlight-29@2x.png",
|
||||||
|
"size": "29x29",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "40x40",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-spotlight-40@2x.png",
|
||||||
|
"size": "40x40",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "Icon-app-83.5@2x.png",
|
||||||
|
"size": "83.5x83.5",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-app-76.png",
|
||||||
|
"size": "76x76",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "icon-app-76@2x.png",
|
||||||
|
"size": "76x76",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename": "app-store-logo.png",
|
||||||
|
"size": "1024x1024",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "ios-marketing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "60x60",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "car"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "60x60",
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "car"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "notificationCenter",
|
||||||
|
"size": "24x24",
|
||||||
|
"subtype": "38mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "notificationCenter",
|
||||||
|
"size": "27.5x27.5",
|
||||||
|
"subtype": "42mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "companionSettings",
|
||||||
|
"size": "29x29",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "companionSettings",
|
||||||
|
"size": "29x29",
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "appLauncher",
|
||||||
|
"size": "40x40",
|
||||||
|
"subtype": "38mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "appLauncher",
|
||||||
|
"size": "44x44",
|
||||||
|
"subtype": "40mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "appLauncher",
|
||||||
|
"size": "50x50",
|
||||||
|
"subtype": "44mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "quickLook",
|
||||||
|
"size": "86x86",
|
||||||
|
"subtype": "38mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "quickLook",
|
||||||
|
"size": "98x98",
|
||||||
|
"subtype": "42mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"role": "quickLook",
|
||||||
|
"size": "108x108",
|
||||||
|
"subtype": "44mm",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "watch"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "1024x1024",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "watch-marketing"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "16x16",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "16x16",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "32x32",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "32x32",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "128x128",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "128x128",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "256x256",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "256x256",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "512x512",
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "mac"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"size": "512x512",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "mac"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "xcode"
|
||||||
|
}
|
||||||
|
}
|
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/Icon-app-60@3x.png
Normal file
После Ширина: | Высота: | Размер: 5.0 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/Icon-app-83.5@2x.png
Normal file
После Ширина: | Высота: | Размер: 8.6 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/app-store-logo.png
Normal file
После Ширина: | Высота: | Размер: 22 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/icon-app-60@2x.png
Normal file
После Ширина: | Высота: | Размер: 3.3 KiB |
После Ширина: | Высота: | Размер: 2.0 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/icon-app-76@2x.png
Normal file
После Ширина: | Высота: | Размер: 4.3 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/icon-spotlight-29.png
Normal file
После Ширина: | Высота: | Размер: 900 B |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/icon-spotlight-29@2x.png
Normal file
После Ширина: | Высота: | Размер: 1.8 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/icon-spotlight-29@3x.png
Normal file
После Ширина: | Высота: | Размер: 2.5 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/icon-spotlight-40@2x.png
Normal file
После Ширина: | Высота: | Размер: 2.2 KiB |
Двоичные данные
SpriteKit/SpriteKit/Assets.xcassets/AppIcon.appiconset/icon-spotlight-40@3x.png
Normal file
После Ширина: | Высота: | Размер: 3.3 KiB |
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"info" : {
|
||||||
|
"version" : 1,
|
||||||
|
"author" : "xcode"
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,55 @@
|
||||||
|
{
|
||||||
|
"images": [
|
||||||
|
{
|
||||||
|
"idiom": "universal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "universal",
|
||||||
|
"filename": "Spaceship.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "universal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "universal"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"subtype": "retina4",
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "3x",
|
||||||
|
"idiom": "iphone"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "1x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"scale": "2x",
|
||||||
|
"idiom": "ipad"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info": {
|
||||||
|
"version": 1,
|
||||||
|
"author": "xcode"
|
||||||
|
}
|
||||||
|
}
|
До Ширина: | Высота: | Размер: 132 KiB После Ширина: | Высота: | Размер: 132 KiB |
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
|
|
|
@ -0,0 +1,53 @@
|
||||||
|
using CoreGraphics;
|
||||||
|
using Foundation;
|
||||||
|
using System;
|
||||||
|
using UIKit;
|
||||||
|
|
||||||
|
namespace SpriteKit
|
||||||
|
{
|
||||||
|
public class GameScene : SKScene
|
||||||
|
{
|
||||||
|
protected GameScene(IntPtr handle) : base(handle) { }
|
||||||
|
|
||||||
|
public GameScene(CGSize size) : base(size) { }
|
||||||
|
|
||||||
|
public override void DidMoveToView(SKView view)
|
||||||
|
{
|
||||||
|
// Setup your scene here
|
||||||
|
BackgroundColor = new UIKit.UIColor (.15f, .15f, .3f, 1);
|
||||||
|
var myLabel = new SKLabelNode("Chalkduster")
|
||||||
|
{
|
||||||
|
FontSize = 30,
|
||||||
|
Text = "Hello, World!",
|
||||||
|
Position = new CGPoint(Frame.GetMidX(),Frame.GetMidY())
|
||||||
|
};
|
||||||
|
|
||||||
|
AddChild(myLabel);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void TouchesBegan(NSSet touches, UIEvent evt)
|
||||||
|
{
|
||||||
|
// Called when a touch begins
|
||||||
|
foreach (UITouch touch in touches)
|
||||||
|
{
|
||||||
|
var location = touch.LocationInNode(this);
|
||||||
|
var sprite = new SKSpriteNode("Spaceship")
|
||||||
|
{
|
||||||
|
Position = location,
|
||||||
|
XScale = 0.5f,
|
||||||
|
YScale = 0.5f
|
||||||
|
};
|
||||||
|
|
||||||
|
var action = SKAction.RotateByAngle(NMath.PI, 1.0);
|
||||||
|
sprite.RunAction(SKAction.RepeatActionForever(action));
|
||||||
|
|
||||||
|
AddChild(sprite);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void Update(double currentTime)
|
||||||
|
{
|
||||||
|
// Called before each frame is rendered
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,45 @@
|
||||||
|
using SpriteKit;
|
||||||
|
using System;
|
||||||
|
using UIKit;
|
||||||
|
|
||||||
|
namespace SpriteKit
|
||||||
|
{
|
||||||
|
public partial class GameViewController : UIViewController
|
||||||
|
{
|
||||||
|
protected GameViewController(IntPtr handle) : base(handle) { }
|
||||||
|
|
||||||
|
public override void ViewDidLoad()
|
||||||
|
{
|
||||||
|
base.ViewDidLoad();
|
||||||
|
|
||||||
|
// Configure the view.
|
||||||
|
var skView = View as SKView;
|
||||||
|
skView.ShowsFPS = true;
|
||||||
|
skView.ShowsNodeCount = true;
|
||||||
|
/* Sprite Kit applies additional optimizations to improve rendering performance */
|
||||||
|
skView.IgnoresSiblingOrder = true;
|
||||||
|
|
||||||
|
// Create and configure the scene.
|
||||||
|
var scene = new GameScene(View.Bounds.Size);
|
||||||
|
scene.ScaleMode = SKSceneScaleMode.AspectFill;
|
||||||
|
|
||||||
|
// Present the scene.
|
||||||
|
skView.PresentScene(scene);
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool ShouldAutorotate()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations()
|
||||||
|
{
|
||||||
|
return UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone ? UIInterfaceOrientationMask.AllButUpsideDown : UIInterfaceOrientationMask.All;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override bool PrefersStatusBarHidden()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
using Foundation;
|
||||||
|
using System.CodeDom.Compiler;
|
||||||
|
|
||||||
|
namespace SpriteKit
|
||||||
|
{
|
||||||
|
[Register("GameViewController")]
|
||||||
|
partial class GameViewController
|
||||||
|
{
|
||||||
|
void ReleaseDesignerOutlets()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,17 +1,17 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||||
<plist version="1.0">
|
<plist version="1.0">
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleName</key>
|
||||||
<string>SpriteKit</string>
|
<string>SpriteKit</string>
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>com.xamarin.SpriteKit</string>
|
<string>com.xamarin.sprite-kit</string>
|
||||||
<key>CFBundleShortVersionString</key>
|
<key>CFBundleShortVersionString</key>
|
||||||
<string>1.0</string>
|
<string>1.0</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>1.0</string>
|
<string>1.0</string>
|
||||||
<key>LSRequiresIPhoneOS</key>
|
<key>LSRequiresIPhoneOS</key>
|
||||||
<true />
|
<true/>
|
||||||
<key>MinimumOSVersion</key>
|
<key>MinimumOSVersion</key>
|
||||||
<string>9.0</string>
|
<string>9.0</string>
|
||||||
<key>UIDeviceFamily</key>
|
<key>UIDeviceFamily</key>
|
||||||
|
@ -19,6 +19,10 @@
|
||||||
<integer>1</integer>
|
<integer>1</integer>
|
||||||
<integer>2</integer>
|
<integer>2</integer>
|
||||||
</array>
|
</array>
|
||||||
|
<key>UILaunchStoryboardName</key>
|
||||||
|
<string>LaunchScreen</string>
|
||||||
|
<key>UIMainStoryboardFile</key>
|
||||||
|
<string>Main</string>
|
||||||
<key>UIRequiredDeviceCapabilities</key>
|
<key>UIRequiredDeviceCapabilities</key>
|
||||||
<array>
|
<array>
|
||||||
<string>armv7</string>
|
<string>armv7</string>
|
||||||
|
@ -29,14 +33,7 @@
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
<string>UIInterfaceOrientationLandscapeLeft</string>
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
<string>UIInterfaceOrientationLandscapeRight</string>
|
||||||
</array>
|
</array>
|
||||||
<key>UISupportedInterfaceOrientations~ipad</key>
|
|
||||||
<array>
|
|
||||||
<string>UIInterfaceOrientationPortrait</string>
|
|
||||||
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeLeft</string>
|
|
||||||
<string>UIInterfaceOrientationLandscapeRight</string>
|
|
||||||
</array>
|
|
||||||
<key>XSAppIconAssets</key>
|
<key>XSAppIconAssets</key>
|
||||||
<string>Resources/Images.xcassets/AppIcons.appiconset</string>
|
<string>Assets.xcassets/AppIcon.appiconset</string>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|
|
@ -0,0 +1,41 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||||
|
<device id="retina4_7" orientation="portrait">
|
||||||
|
<adaptation id="fullscreen"/>
|
||||||
|
</device>
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
|
||||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--View Controller-->
|
||||||
|
<scene sceneID="EHf-IW-A2E">
|
||||||
|
<objects>
|
||||||
|
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||||
|
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<subviews>
|
||||||
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Xamarin" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Oel-to-uMs">
|
||||||
|
<rect key="frame" x="117" y="319" width="142" height="48"/>
|
||||||
|
<fontDescription key="fontDescription" type="system" pointSize="40"/>
|
||||||
|
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
<nil key="highlightedColor"/>
|
||||||
|
</label>
|
||||||
|
</subviews>
|
||||||
|
<color key="backgroundColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||||
|
<constraints>
|
||||||
|
<constraint firstItem="Oel-to-uMs" firstAttribute="centerY" secondItem="rqF-id-amH" secondAttribute="centerY" id="NKT-vT-Qi7"/>
|
||||||
|
<constraint firstItem="Oel-to-uMs" firstAttribute="centerX" secondItem="rqF-id-amH" secondAttribute="centerX" id="daG-SH-h5t"/>
|
||||||
|
</constraints>
|
||||||
|
<viewLayoutGuide key="safeArea" id="rqF-id-amH"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
<point key="canvasLocation" x="53" y="375"/>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
|
@ -1,19 +1,15 @@
|
||||||
using System;
|
using UIKit;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using Foundation;
|
|
||||||
using UIKit;
|
|
||||||
|
|
||||||
namespace SpriteKit
|
namespace SpriteKit
|
||||||
{
|
{
|
||||||
public class Application
|
public class Application
|
||||||
{
|
{
|
||||||
// This is the main entry point of the application.
|
// This is the main entry point of the application.
|
||||||
static void Main (string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
// if you want to use a different Application Delegate class from "AppDelegate"
|
// if you want to use a different Application Delegate class from "AppDelegate"
|
||||||
// you can specify it here.
|
// you can specify it here.
|
||||||
UIApplication.Main (args, null, "AppDelegate");
|
UIApplication.Main(args, null, "AppDelegate");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BV1-FR-VrT">
|
||||||
|
<device id="retina4_7" orientation="portrait">
|
||||||
|
<adaptation id="fullscreen"/>
|
||||||
|
</device>
|
||||||
|
<dependencies>
|
||||||
|
<deployment identifier="iOS"/>
|
||||||
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
|
||||||
|
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
||||||
|
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
||||||
|
</dependencies>
|
||||||
|
<scenes>
|
||||||
|
<!--Game View Controller-->
|
||||||
|
<scene sceneID="tXr-a1-R10">
|
||||||
|
<objects>
|
||||||
|
<viewController id="BV1-FR-VrT" customClass="GameViewController" sceneMemberID="viewController">
|
||||||
|
<view key="view" contentMode="scaleToFill" id="3se-qz-xqx" customClass="SKView">
|
||||||
|
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
||||||
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
|
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
|
<viewLayoutGuide key="safeArea" id="nwZ-4s-Yy2"/>
|
||||||
|
</view>
|
||||||
|
</viewController>
|
||||||
|
<placeholder placeholderIdentifier="IBFirstResponder" id="SZV-WD-TEh" sceneMemberID="firstResponder"/>
|
||||||
|
</objects>
|
||||||
|
</scene>
|
||||||
|
</scenes>
|
||||||
|
</document>
|
|
@ -1,41 +0,0 @@
|
||||||
using System;
|
|
||||||
using SpriteKit;
|
|
||||||
using CoreGraphics;
|
|
||||||
using UIKit;
|
|
||||||
|
|
||||||
namespace SpriteKit
|
|
||||||
{
|
|
||||||
public sealed class MyScene : SKScene
|
|
||||||
{
|
|
||||||
public MyScene (CGSize size) : base(size)
|
|
||||||
{
|
|
||||||
BackgroundColor = new UIKit.UIColor (.15f, .15f, .3f, 1);
|
|
||||||
|
|
||||||
AddChild( new SKLabelNode ("Chalkduster") {
|
|
||||||
Text = "Hello World",
|
|
||||||
FontSize = 30,
|
|
||||||
Position = new CGPoint(Frame.GetMidX(),Frame.GetMidY()),
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
public override void TouchesBegan (Foundation.NSSet touches, UIEvent evt)
|
|
||||||
{
|
|
||||||
foreach (UITouch touch in touches) {
|
|
||||||
var location = touch.LocationInNode (this);
|
|
||||||
var sprite = new SKSpriteNode ("Spaceship") {
|
|
||||||
Position = location,
|
|
||||||
};
|
|
||||||
|
|
||||||
var action = SKAction.RotateByAngle ((float)Math.PI, 1);
|
|
||||||
sprite.RunAction (SKAction.RepeatActionForever (action));
|
|
||||||
|
|
||||||
AddChild (sprite);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
public override void Update (double currentTime)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
{"images":[],"info":{"version":1,"author":"xcode"}}
|
|
|
@ -1,17 +0,0 @@
|
||||||
{
|
|
||||||
"images": [
|
|
||||||
{
|
|
||||||
"orientation": "portrait",
|
|
||||||
"idiom": "iphone",
|
|
||||||
"extent": "full-screen",
|
|
||||||
"filename": "Default-568h@2x.png",
|
|
||||||
"size": "320x568",
|
|
||||||
"subtype": "retina4",
|
|
||||||
"scale": "2x"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"info": {
|
|
||||||
"version": 1,
|
|
||||||
"author": "xcode"
|
|
||||||
}
|
|
||||||
}
|
|
До Ширина: | Высота: | Размер: 2.2 KiB |
|
@ -1,121 +1,131 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
|
||||||
<ProductVersion>10.0.0</ProductVersion>
|
<ProductVersion>8.0.30703</ProductVersion>
|
||||||
<SchemaVersion>2.0</SchemaVersion>
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
<ProjectGuid>{799D6664-EEBB-4F5D-85E4-58BA92291712}</ProjectGuid>
|
<ProjectGuid>{C58E33CF-0E52-44AC-86FD-877639469028}</ProjectGuid>
|
||||||
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<RootNamespace>SpriteKit</RootNamespace>
|
<RootNamespace>SpriteKit</RootNamespace>
|
||||||
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
|
<AssemblyName>SpriteKit</AssemblyName>
|
||||||
<AssemblyName>SpriteKit</AssemblyName>
|
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
|
||||||
<TargetFrameworkIdentifier>Xamarin.iOS</TargetFrameworkIdentifier>
|
</PropertyGroup>
|
||||||
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
||||||
</PropertyGroup>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
|
<DebugType>full</DebugType>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<Optimize>false</Optimize>
|
||||||
<DebugType>full</DebugType>
|
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
|
||||||
<Optimize>false</Optimize>
|
<DefineConstants>DEBUG;ENABLE_TEST_CLOUD;</DefineConstants>
|
||||||
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<DefineConstants>DEBUG;__MOBILE__;__IOS__;</DefineConstants>
|
<WarningLevel>4</WarningLevel>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
<WarningLevel>4</WarningLevel>
|
<DeviceSpecificBuild>true</DeviceSpecificBuild>
|
||||||
<ConsolePause>false</ConsolePause>
|
<MtouchDebug>true</MtouchDebug>
|
||||||
<MtouchLink>None</MtouchLink>
|
<MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
|
||||||
<MtouchDebug>true</MtouchDebug>
|
<MtouchFastDev>true</MtouchFastDev>
|
||||||
<MtouchArch>x86_64</MtouchArch>
|
<MtouchFloat32>true</MtouchFloat32>
|
||||||
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||||
</PropertyGroup>
|
<IOSDebuggerPort>43047</IOSDebuggerPort>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
<MtouchLink>None</MtouchLink>
|
||||||
<DebugType>full</DebugType>
|
<MtouchArch>x86_64</MtouchArch>
|
||||||
<Optimize>true</Optimize>
|
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
||||||
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
|
<MtouchVerbosity></MtouchVerbosity>
|
||||||
<DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
|
</PropertyGroup>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
||||||
<WarningLevel>4</WarningLevel>
|
<DebugType>pdbonly</DebugType>
|
||||||
<MtouchLink>None</MtouchLink>
|
<Optimize>true</Optimize>
|
||||||
<ConsolePause>false</ConsolePause>
|
<OutputPath>bin\iPhone\Release</OutputPath>
|
||||||
<MtouchArch>x86_64</MtouchArch>
|
<DefineConstants></DefineConstants>
|
||||||
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
</PropertyGroup>
|
<WarningLevel>4</WarningLevel>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<MtouchUseLlvm>true</MtouchUseLlvm>
|
||||||
<DebugType>full</DebugType>
|
<MtouchFloat32>true</MtouchFloat32>
|
||||||
<Optimize>false</Optimize>
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||||
<OutputPath>bin\iPhone\Debug</OutputPath>
|
<MtouchLink>SdkOnly</MtouchLink>
|
||||||
<DefineConstants>DEBUG;__MOBILE__;__IOS__;</DefineConstants>
|
<MtouchArch>ARM64</MtouchArch>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
||||||
<WarningLevel>4</WarningLevel>
|
<MtouchVerbosity></MtouchVerbosity>
|
||||||
<ConsolePause>false</ConsolePause>
|
</PropertyGroup>
|
||||||
<MtouchDebug>true</MtouchDebug>
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
|
||||||
<CodesignKey>iPhone Developer</CodesignKey>
|
<DebugType>pdbonly</DebugType>
|
||||||
<MtouchArch>ARM64</MtouchArch>
|
<Optimize>true</Optimize>
|
||||||
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
|
||||||
</PropertyGroup>
|
<DefineConstants></DefineConstants>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<DebugType>full</DebugType>
|
<WarningLevel>4</WarningLevel>
|
||||||
<Optimize>true</Optimize>
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
<OutputPath>bin\iPhone\Release</OutputPath>
|
<MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
|
||||||
<DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
|
<MtouchUseLlvm>true</MtouchUseLlvm>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<MtouchFloat32>true</MtouchFloat32>
|
||||||
<WarningLevel>4</WarningLevel>
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||||
<ConsolePause>false</ConsolePause>
|
<MtouchLink>None</MtouchLink>
|
||||||
<CodesignKey>iPhone Developer</CodesignKey>
|
<MtouchArch>x86_64</MtouchArch>
|
||||||
<MtouchArch>ARM64</MtouchArch>
|
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
||||||
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
<MtouchVerbosity></MtouchVerbosity>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Ad-Hoc|iPhone' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
|
||||||
<DebugType>full</DebugType>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<Optimize>true</Optimize>
|
<DebugType>full</DebugType>
|
||||||
<OutputPath>bin\iPhone\Ad-Hoc</OutputPath>
|
<Optimize>false</Optimize>
|
||||||
<DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
|
<OutputPath>bin\iPhone\Debug</OutputPath>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<DefineConstants>DEBUG;ENABLE_TEST_CLOUD;</DefineConstants>
|
||||||
<WarningLevel>4</WarningLevel>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<ConsolePause>false</ConsolePause>
|
<WarningLevel>4</WarningLevel>
|
||||||
<BuildIpa>true</BuildIpa>
|
<CodesignKey>iPhone Developer</CodesignKey>
|
||||||
<CodesignProvision>Automatic:AdHoc</CodesignProvision>
|
<DeviceSpecificBuild>true</DeviceSpecificBuild>
|
||||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
<MtouchDebug>true</MtouchDebug>
|
||||||
<MtouchArch>ARM64</MtouchArch>
|
<MtouchNoSymbolStrip>true</MtouchNoSymbolStrip>
|
||||||
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
<MtouchFastDev>true</MtouchFastDev>
|
||||||
</PropertyGroup>
|
<MtouchFloat32>true</MtouchFloat32>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'AppStore|iPhone' ">
|
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
|
||||||
<DebugType>full</DebugType>
|
<IOSDebuggerPort>58448</IOSDebuggerPort>
|
||||||
<Optimize>true</Optimize>
|
<MtouchLink>SdkOnly</MtouchLink>
|
||||||
<OutputPath>bin\iPhone\AppStore</OutputPath>
|
<MtouchArch>ARM64</MtouchArch>
|
||||||
<DefineConstants>__MOBILE__;__IOS__;</DefineConstants>
|
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<MtouchVerbosity></MtouchVerbosity>
|
||||||
<WarningLevel>4</WarningLevel>
|
</PropertyGroup>
|
||||||
<ConsolePause>false</ConsolePause>
|
<ItemGroup>
|
||||||
<CodesignProvision>Automatic:AppStore</CodesignProvision>
|
<Reference Include="System" />
|
||||||
<CodesignKey>iPhone Distribution</CodesignKey>
|
<Reference Include="System.Xml" />
|
||||||
<MtouchArch>ARM64</MtouchArch>
|
<Reference Include="System.Core" />
|
||||||
<MtouchHttpClientHandler>NSUrlSessionHandler</MtouchHttpClientHandler>
|
<Reference Include="Xamarin.iOS" />
|
||||||
</PropertyGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Contents.json" />
|
||||||
<Reference Include="System.Xml" />
|
<ImageAsset Include="Assets.xcassets\Spaceship.imageset\Contents.json" />
|
||||||
<Reference Include="System.Core" />
|
<ImageAsset Include="Assets.xcassets\Spaceship.imageset\Spaceship.png" />
|
||||||
<Reference Include="Xamarin.iOS" />
|
<ImageAsset Include="Assets.xcassets\Contents.json" />
|
||||||
</ItemGroup>
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\app-store-logo.png" />
|
||||||
<ItemGroup>
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-app-83.5%402x.png" />
|
||||||
<None Include="Info.plist" />
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-app-76%402x.png" />
|
||||||
<None Include="Entitlements.plist" />
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-app-76.png" />
|
||||||
</ItemGroup>
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-spotlight-29.png" />
|
||||||
<ItemGroup>
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-spotlight-29%402x.png" />
|
||||||
<Compile Include="Main.cs" />
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-app-60%402x.png" />
|
||||||
<Compile Include="AppDelegate.cs" />
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\Icon-app-60%403x.png" />
|
||||||
<Compile Include="MyScene.cs" />
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-spotlight-29%403x.png" />
|
||||||
<Compile Include="ViewController.cs" />
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-spotlight-40%402x.png" />
|
||||||
</ItemGroup>
|
<ImageAsset Include="Assets.xcassets\AppIcon.appiconset\icon-spotlight-40%403x.png" />
|
||||||
<ItemGroup>
|
</ItemGroup>
|
||||||
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json" />
|
<ItemGroup>
|
||||||
<ImageAsset Include="Resources\Images.xcassets\LaunchImage.launchimage\Contents.json" />
|
<InterfaceDefinition Include="LaunchScreen.storyboard" />
|
||||||
<ImageAsset Include="Resources\Images.xcassets\LaunchImage.launchimage\Default-568h%402x.png" />
|
<InterfaceDefinition Include="Main.storyboard" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<BundleResource Include="Resources\Spaceship.png" />
|
<None Include="Info.plist" />
|
||||||
</ItemGroup>
|
<None Include="Entitlements.plist" />
|
||||||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Main.cs" />
|
||||||
|
<Compile Include="AppDelegate.cs" />
|
||||||
|
<Compile Include="GameViewController.cs" />
|
||||||
|
<Compile Include="GameViewController.designer.cs">
|
||||||
|
<DependentUpon>GameViewController.cs</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="GameScene.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
|
||||||
</Project>
|
</Project>
|
|
@ -1,36 +0,0 @@
|
||||||
using System;
|
|
||||||
using UIKit;
|
|
||||||
using SpriteKit;
|
|
||||||
|
|
||||||
namespace SpriteKit
|
|
||||||
{
|
|
||||||
public class ViewController : UIViewController
|
|
||||||
{
|
|
||||||
public ViewController ()
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
SKView skView;
|
|
||||||
public override void LoadView ()
|
|
||||||
{
|
|
||||||
base.LoadView ();
|
|
||||||
View = skView = new SKView {
|
|
||||||
ShowsFPS = true,
|
|
||||||
ShowsNodeCount = true,
|
|
||||||
Frame = View.Frame,
|
|
||||||
};
|
|
||||||
|
|
||||||
var scene = new MyScene (View.Bounds.Size) {
|
|
||||||
ScaleMode = SKSceneScaleMode.AspectFill
|
|
||||||
};
|
|
||||||
|
|
||||||
skView.PresentScene (scene);
|
|
||||||
}
|
|
||||||
|
|
||||||
public override UIInterfaceOrientationMask GetSupportedInterfaceOrientations ()
|
|
||||||
{
|
|
||||||
return UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone ? UIInterfaceOrientationMask.AllButUpsideDown : UIInterfaceOrientationMask.All;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|