Skip to content

Commit

Permalink
changes to prevent stable ecosystems, remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
amiantos committed May 18, 2019
1 parent e65b46c commit cf6bd35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Life Saver.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "net.amiantos.Life-Saver-Screensaver";
PRODUCT_BUNDLE_IDENTIFIER = "net.amiantos.Life-Saver";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
Expand All @@ -421,7 +421,7 @@
"@executable_path/../Frameworks",
"@loader_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "net.amiantos.Life-Saver-Screensaver";
PRODUCT_BUNDLE_IDENTIFIER = "net.amiantos.Life-Saver";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
WRAPPER_EXTENSION = saver;
Expand Down
6 changes: 1 addition & 5 deletions Life Saver/LifeScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ extension SKColor {
static let aliveColor2 = SKColor(red: 172/255.0, green: 48/255.0, blue: 17/255.0, alpha: 1.00)
static let aliveColor3 = SKColor(red: 6/255.0, green: 66/255.0, blue: 110/255.0, alpha: 1.00)

static let deadColor0 = SKColor(red: 128/255.0, green: 73/255.0, blue: 14/255.0, alpha: 1.00)
static let deadColor1 = SKColor(red: 79/255.0, green: 45/255.0, blue: 6/255.0, alpha: 1.00)
static let deadColor2 = SKColor(red: 39/255.0, green: 23/255.0, blue: 3/255.0, alpha: 1.00)
static let deadColor3 = SKColor(red: 14/255.0, green: 8/255.0, blue: 0/255.0, alpha: 1.00)
}

class SquareNodeData {
Expand Down Expand Up @@ -158,7 +154,7 @@ class LifeScene: SKScene {

}

while CGFloat(livingNodes.count) < (CGFloat(squareData.count) * 0.05) {
while CGFloat(livingNodes.count) < (CGFloat(squareData.count) * 0.08) {
let nodeNumber = GKRandomSource.sharedRandom().nextInt(upperBound: dyingNodes.count)
let node = dyingNodes[nodeNumber]
node.aliveColor = aliveColors.randomElement()!
Expand Down

0 comments on commit cf6bd35

Please sign in to comment.