diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon108x108@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon108x108@2x.png
new file mode 100644
index 0000000..3024a28
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon108x108@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon24x24@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon24x24@2x.png
new file mode 100644
index 0000000..3dc0cc1
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon24x24@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon27.5x27.5@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon27.5x27.5@2x.png
new file mode 100644
index 0000000..cda4c9e
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon27.5x27.5@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png
new file mode 100644
index 0000000..d12d565
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@3x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@3x.png
new file mode 100644
index 0000000..3a5c864
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon29x29@3x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png
new file mode 100644
index 0000000..22671ac
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon40x40@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon44x44@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon44x44@2x.png
new file mode 100644
index 0000000..2bf2d78
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon44x44@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon50x50@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon50x50@2x.png
new file mode 100644
index 0000000..70ca6ba
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon50x50@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon86x86@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon86x86@2x.png
new file mode 100644
index 0000000..8e8d159
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon86x86@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon98x98@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon98x98@2x.png
new file mode 100644
index 0000000..04b939a
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/AppIcon98x98@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Contents.json b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Contents.json
new file mode 100644
index 0000000..a3f0733
--- /dev/null
+++ b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Contents.json
@@ -0,0 +1,146 @@
+{
+ "images" : [
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-Notification@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "20x20",
+ "idiom" : "iphone",
+ "filename" : "Icon-Notification@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-Small@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "iphone",
+ "filename" : "Icon-Small@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-Small-40@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "iphone",
+ "filename" : "Icon-Small-40@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-60@2x.png",
+ "scale" : "2x"
+ },
+ {
+ "size" : "60x60",
+ "idiom" : "iphone",
+ "filename" : "Icon-60@3x.png",
+ "scale" : "3x"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "ios-marketing",
+ "filename" : "icon.png",
+ "scale" : "1x"
+ },
+ {
+ "size" : "24x24",
+ "idiom" : "watch",
+ "filename" : "AppIcon24x24@2x.png",
+ "scale" : "2x",
+ "role" : "notificationCenter",
+ "subtype" : "38mm"
+ },
+ {
+ "size" : "27.5x27.5",
+ "idiom" : "watch",
+ "filename" : "AppIcon27.5x27.5@2x.png",
+ "scale" : "2x",
+ "role" : "notificationCenter",
+ "subtype" : "42mm"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "watch",
+ "filename" : "AppIcon29x29@2x.png",
+ "role" : "companionSettings",
+ "scale" : "2x"
+ },
+ {
+ "size" : "29x29",
+ "idiom" : "watch",
+ "filename" : "AppIcon29x29@3x.png",
+ "role" : "companionSettings",
+ "scale" : "3x"
+ },
+ {
+ "size" : "40x40",
+ "idiom" : "watch",
+ "filename" : "AppIcon40x40@2x.png",
+ "scale" : "2x",
+ "role" : "appLauncher",
+ "subtype" : "38mm"
+ },
+ {
+ "size" : "44x44",
+ "idiom" : "watch",
+ "filename" : "AppIcon44x44@2x.png",
+ "scale" : "2x",
+ "role" : "appLauncher",
+ "subtype" : "40mm"
+ },
+ {
+ "size" : "50x50",
+ "idiom" : "watch",
+ "filename" : "AppIcon50x50@2x.png",
+ "scale" : "2x",
+ "role" : "appLauncher",
+ "subtype" : "44mm"
+ },
+ {
+ "size" : "86x86",
+ "idiom" : "watch",
+ "filename" : "AppIcon86x86@2x.png",
+ "scale" : "2x",
+ "role" : "quickLook",
+ "subtype" : "38mm"
+ },
+ {
+ "size" : "98x98",
+ "idiom" : "watch",
+ "filename" : "AppIcon98x98@2x.png",
+ "scale" : "2x",
+ "role" : "quickLook",
+ "subtype" : "42mm"
+ },
+ {
+ "size" : "108x108",
+ "idiom" : "watch",
+ "filename" : "AppIcon108x108@2x.png",
+ "scale" : "2x",
+ "role" : "quickLook",
+ "subtype" : "44mm"
+ },
+ {
+ "size" : "1024x1024",
+ "idiom" : "watch-marketing",
+ "filename" : "watchicon.png",
+ "scale" : "1x"
+ }
+ ],
+ "info" : {
+ "version" : 1,
+ "author" : "xcode"
+ }
+}
\ No newline at end of file
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
new file mode 100644
index 0000000..a07adf3
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png
new file mode 100644
index 0000000..8375c78
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png
new file mode 100644
index 0000000..26d262f
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Notification@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png
new file mode 100644
index 0000000..3258b9f
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Notification@3x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png
new file mode 100644
index 0000000..22671ac
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png
new file mode 100644
index 0000000..a07adf3
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@3x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png
new file mode 100644
index 0000000..d12d565
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png
new file mode 100644
index 0000000..3a5c864
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/icon.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/icon.png
new file mode 100644
index 0000000..e25a76e
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/icon.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/watchicon.png b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/watchicon.png
new file mode 100644
index 0000000..e25a76e
Binary files /dev/null and b/MiniSpaceJourney WatchKit Extension/Assets.xcassets/AppIcon.appiconset/watchicon.png differ
diff --git a/MiniSpaceJourney WatchKit Extension/Controller/GameScreenController.swift b/MiniSpaceJourney WatchKit Extension/Controller/GameScreenController.swift
index 38b8481..6d517cb 100644
--- a/MiniSpaceJourney WatchKit Extension/Controller/GameScreenController.swift
+++ b/MiniSpaceJourney WatchKit Extension/Controller/GameScreenController.swift
@@ -47,8 +47,7 @@ class GameScreenController: WKInterfaceController, WKCrownDelegate {
let step = NSNumber.init(value: rotationalDelta * crownSensivity).floatValue
let cgStep = CGFloat(step)
- // log whats happened
- // print("Crown: \(cgStep)")
+ WKInterfaceDevice.current().play(.click)
gameScene.moveSpaceshipBy(amountX: cgStep, amountY: 0)
}
diff --git a/MiniSpaceJourney WatchKit Extension/Controller/MainMenuController.swift b/MiniSpaceJourney WatchKit Extension/Controller/MainMenuController.swift
index f262093..e216d44 100644
--- a/MiniSpaceJourney WatchKit Extension/Controller/MainMenuController.swift
+++ b/MiniSpaceJourney WatchKit Extension/Controller/MainMenuController.swift
@@ -10,11 +10,19 @@ import WatchKit
class MainMenuController: WKInterfaceController {
+
+ var highestScorekey: String = "MiniSpaceJourneyHighestScore";
+
+ @IBOutlet weak var highestScoreLabel: WKInterfaceLabel!
override func awake(withContext context: Any?) {
super.awake(withContext: context)
// Configure interface objects here.
+ let defaults = UserDefaults.standard;
+ let highestScore = defaults.integer(forKey: self.highestScorekey);
+
+ highestScoreLabel.setText("Highest score: \(highestScore)");
}
override func willActivate() {
diff --git a/MiniSpaceJourney WatchKit Extension/GameScene.swift b/MiniSpaceJourney WatchKit Extension/GameScene.swift
index da26989..1799cc4 100644
--- a/MiniSpaceJourney WatchKit Extension/GameScene.swift
+++ b/MiniSpaceJourney WatchKit Extension/GameScene.swift
@@ -10,6 +10,8 @@ import SpriteKit
class GameScene: SKScene, SKPhysicsContactDelegate {
+ var highestScorekey: String = "MiniSpaceJourneyHighestScore";
+
private var spinnyNode : SKShapeNode?
var gameplayTimer:Timer?
@@ -19,7 +21,6 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
// just CGFloat null, no magic numbers
var cgNull:CGFloat = 0.0;
- var amountOfAliens:Int = 1;
var alienSpeed:TimeInterval = 6;
var spawnAliensSpeed:TimeInterval = 1.0;
var spawnTorpedoSpeed:TimeInterval = 0.8;
@@ -90,17 +91,13 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
alienSpeed -= 0.2
}
- if (spawnAliensSpeed >= 0.4) {
+ if (spawnAliensSpeed >= 0.1) {
spawnAliensSpeed -= 0.1
}
- if (spawnTorpedoSpeed >= 0.05) {
+ if (spawnTorpedoSpeed >= 0.01) {
spawnTorpedoSpeed -= 0.1
}
-
- if (amountOfAliens != 0 && amountOfAliens < 5 && score != 0 && score % 20 == 0) {
- amountOfAliens += 1
- }
}
func stopTimers() {
@@ -110,48 +107,42 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
}
func resetGameplay() {
- amountOfAliens = 1;
alienSpeed = 6;
spawnAliensSpeed = 1.0;
spawnTorpedoSpeed = 0.8;
}
@objc func addAlien() {
- for _ in 1...amountOfAliens {
- let possibleAlien = possibleAliens.randomElement()!;
- let alien = SKSpriteNode(imageNamed: possibleAlien);
- let randomX = Int.random(in: -Int(self.frame.size.width / 2 - alien.size.width) ..< Int(self.frame.size.width / 2 - alien.size.width));
+ let possibleAlien = possibleAliens.randomElement()!;
+ let alien = SKSpriteNode(imageNamed: possibleAlien);
+ let randomX = Int.random(in: -Int(self.frame.size.width / 2 - alien.size.width) ..< Int(self.frame.size.width / 2 - alien.size.width));
- alien.position = CGPoint(x: CGFloat(randomX), y: self.frame.size.height / 2 - alien.size.height);
+ alien.position = CGPoint(x: CGFloat(randomX), y: self.frame.size.height / 2 - alien.size.height);
- alien.physicsBody = SKPhysicsBody(rectangleOf: alien.size);
- alien.physicsBody?.isDynamic = true;
+ alien.physicsBody = SKPhysicsBody(rectangleOf: alien.size);
+ alien.physicsBody?.isDynamic = true;
- alien.physicsBody?.categoryBitMask = alienCategory;
- alien.physicsBody?.contactTestBitMask = photonTorpedoCategory | spaceshipCategory;
- alien.physicsBody?.collisionBitMask = 0;
-
- self.addChild(alien);
-
- let animationDuration:TimeInterval = alienSpeed;
- var actionArray = [SKAction]();
-
- var movingToPosition:CGPoint = CGPoint(x: alien.position.x, y: -self.frame.height)
- if (Int.random(in: 0...10) % 3 == 0 && score >= 50 ) {
- movingToPosition = CGPoint(x: spaceship.position.x, y: -self.frame.height)
- }
-
- actionArray.append(SKAction.move(to: movingToPosition, duration: animationDuration));
- actionArray.append(SKAction.removeFromParent());
-
- alien.run(SKAction.sequence(actionArray));
+ alien.physicsBody?.categoryBitMask = alienCategory;
+ alien.physicsBody?.contactTestBitMask = photonTorpedoCategory | spaceshipCategory;
+ alien.physicsBody?.collisionBitMask = 0;
+
+ self.addChild(alien);
+
+ let animationDuration:TimeInterval = alienSpeed;
+ var actionArray = [SKAction]();
+
+ var movingToPosition:CGPoint = CGPoint(x: alien.position.x, y: -self.frame.height)
+ if (Int.random(in: 0...10) % 3 == 0 && score >= 50 ) {
+ movingToPosition = CGPoint(x: spaceship.position.x, y: -self.frame.height)
}
+
+ actionArray.append(SKAction.move(to: movingToPosition, duration: animationDuration));
+ actionArray.append(SKAction.removeFromParent());
+
+ alien.run(SKAction.sequence(actionArray));
}
@objc func fireTorpedo() {
- // @todo: Find a way how to preload sounds not to have fps drop
- // self.run(SKAction.playSoundFileNamed("shoot.wav", waitForCompletion: false))
-
let torpedoNode = SKSpriteNode(imageNamed: "torpedo");
torpedoNode.position = spaceship.position;
torpedoNode.position.y += 5;
@@ -178,7 +169,6 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
}
func moveSpaceshipBy(amountX:CGFloat, amountY:CGFloat) {
- print(amountX)
if (amountX >= 2 || amountX <= -2) {
if (self.scene?.isPaused == true) {
@@ -231,9 +221,6 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
self.addChild(explosion);
- // @todo: Find a way how to preload sounds not to have fps drop
- // self.run(SKAction.playSoundFileNamed(".mp3", waitForCompletion: false))
-
torpedoNode.removeFromParent();
alienNode.removeFromParent();
@@ -259,8 +246,10 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
explosion.removeFromParent();
}
+ self.updateHighestScore(score: self.score);
+
// @todo: Better pause handling
- pause()
+ pause();
score = 0;
}
@@ -281,7 +270,15 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
}
}
-
+ func updateHighestScore(score: Int) -> Void {
+
+ let defaults = UserDefaults.standard
+
+ let highestScore = defaults.integer(forKey: self.highestScorekey)
+ if (highestScore < score) {
+ defaults.set(score, forKey: self.highestScorekey)
+ }
+ }
override func update(_ currentTime: TimeInterval) {
// Called before each frame is rendered
diff --git a/MiniSpaceJourney WatchKit Extension/Info.plist b/MiniSpaceJourney WatchKit Extension/Info.plist
index df2ec66..c4b350c 100644
--- a/MiniSpaceJourney WatchKit Extension/Info.plist
+++ b/MiniSpaceJourney WatchKit Extension/Info.plist
@@ -17,7 +17,7 @@
CFBundlePackageType
$(PRODUCT_BUNDLE_PACKAGE_TYPE)
CFBundleShortVersionString
- 1.0
+ $(MARKETING_VERSION)
CFBundleVersion
1
NSExtension
diff --git a/MiniSpaceJourney.xcodeproj/project.pbxproj b/MiniSpaceJourney.xcodeproj/project.pbxproj
index 340b8f7..fda5610 100644
--- a/MiniSpaceJourney.xcodeproj/project.pbxproj
+++ b/MiniSpaceJourney.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 50;
+ objectVersion = 52;
objects = {
/* Begin PBXBuildFile section */
@@ -236,7 +236,7 @@
};
};
buildConfigurationList = 8C318893234BBE5100CCC78E /* Build configuration list for PBXProject "MiniSpaceJourney" */;
- compatibilityVersion = "Xcode 9.3";
+ compatibilityVersion = "Xcode 11.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
@@ -446,6 +446,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication;
+ CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = PPKSE537F6;
INFOPLIST_FILE = "MiniSpaceJourney WatchKit Extension/Info.plist";
@@ -454,8 +455,10 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = si.popov.daniil.MiniSpaceJourney.watchkitapp.watchkitextension;
PRODUCT_NAME = "${TARGET_NAME}";
+ PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
@@ -468,6 +471,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication;
+ CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = PPKSE537F6;
INFOPLIST_FILE = "MiniSpaceJourney WatchKit Extension/Info.plist";
@@ -476,8 +480,10 @@
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = si.popov.daniil.MiniSpaceJourney.watchkitapp.watchkitextension;
PRODUCT_NAME = "${TARGET_NAME}";
+ PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
@@ -491,12 +497,16 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_ENTITLEMENTS = "";
+ CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = PPKSE537F6;
IBSC_MODULE = MiniSpaceJourney_WatchKit_Extension;
INFOPLIST_FILE = "MiniSpaceJourney WatchKit App/Info.plist";
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = si.popov.daniil.MiniSpaceJourney.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
@@ -510,12 +520,16 @@
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
+ CODE_SIGN_ENTITLEMENTS = "";
+ CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = PPKSE537F6;
IBSC_MODULE = MiniSpaceJourney_WatchKit_Extension;
INFOPLIST_FILE = "MiniSpaceJourney WatchKit App/Info.plist";
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = si.popov.daniil.MiniSpaceJourney.watchkitapp;
PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = watchos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
@@ -527,12 +541,14 @@
8C3188C0234BBE5200CCC78E /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = PPKSE537F6;
- MARKETING_VERSION = 0.1;
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = si.popov.daniil.MiniSpaceJourney;
PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
};
@@ -541,12 +557,14 @@
8C3188C1234BBE5200CCC78E /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
+ CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = PPKSE537F6;
- MARKETING_VERSION = 0.1;
+ MARKETING_VERSION = 1.0.0;
PRODUCT_BUNDLE_IDENTIFIER = si.popov.daniil.MiniSpaceJourney;
PRODUCT_NAME = "$(TARGET_NAME)";
+ PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
};
@@ -562,7 +580,7 @@
8C3188B6234BBE5200CCC78E /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
+ defaultConfigurationName = Release;
};
8C3188B7234BBE5200CCC78E /* Build configuration list for PBXNativeTarget "MiniSpaceJourney WatchKit Extension" */ = {
isa = XCConfigurationList;
@@ -571,7 +589,7 @@
8C3188B9234BBE5200CCC78E /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
+ defaultConfigurationName = Release;
};
8C3188BB234BBE5200CCC78E /* Build configuration list for PBXNativeTarget "MiniSpaceJourney WatchKit App" */ = {
isa = XCConfigurationList;
@@ -580,7 +598,7 @@
8C3188BD234BBE5200CCC78E /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
+ defaultConfigurationName = Release;
};
8C3188BF234BBE5200CCC78E /* Build configuration list for PBXNativeTarget "MiniSpaceJourney" */ = {
isa = XCConfigurationList;
@@ -589,7 +607,7 @@
8C3188C1234BBE5200CCC78E /* Release */,
);
defaultConfigurationIsVisible = 0;
- defaultConfigurationName = Debug;
+ defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
diff --git a/README.md b/README.md
index 3352171..3189f53 100644
--- a/README.md
+++ b/README.md
@@ -1,24 +1,21 @@
-# Mini Space Journey
+
-This is the copy of the Space Invandors and my first game in swift 5 expirience.
+Mini Space Journey 🚀
-## Version 0.0.1
+
+
+
+
+
-![preview](Static/0.0.1/preview.png)
-
-### Gameplay
-
-![Record-0.0.1](Static/0.0.1/record-0.0.1.gif)
+
+ This is the copy of the Space Invandors and my first game in swift 5.
+
-## Stack:
-
-Most of the logic done with `WatchKit`, `UIKite` and of course `SpriteKit`
-
-For `sqlite` I use this lib: https://github.com/stephencelis/SQLite.swift
+
+![preview](Static/0.0.1/preview.png)
-## Goal
+## Gameplay
-- [ ] 50 Github stars - standalone WacthOS game with free access on AppStore
-- [ ] 100 Github stars - Score board with highest score across all users
-- [ ] 150 Github stars - 3 different enviroments (8bit style, fancy vector, funny one) 1 month for free then i will add symbolic price for 3$ for people who would like to support me
\ No newline at end of file
+![Record-0.0.1](Static/0.0.1/record-0.0.1.gif)
diff --git a/Static/0.0.1/preview.png b/Static/0.0.1/preview.png
index 3d0ec9f..0640a92 100644
Binary files a/Static/0.0.1/preview.png and b/Static/0.0.1/preview.png differ
diff --git a/Static/1.0.0/preview.png b/Static/1.0.0/preview.png
new file mode 100644
index 0000000..0640a92
Binary files /dev/null and b/Static/1.0.0/preview.png differ
diff --git a/Static/1.0.0/record-1.0.1.mov b/Static/1.0.0/record-1.0.1.mov
new file mode 100644
index 0000000..d806a4c
Binary files /dev/null and b/Static/1.0.0/record-1.0.1.mov differ