create GoldWars lettering
+ add new Gold Button Texture
23
GoldWars/GoldWars/Assets.xcassets/goldWarsLettering.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "goldWarsName.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "goldWarsName-1.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "goldWarsName-2.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
GoldWars/GoldWars/Assets.xcassets/goldWarsLettering.imageset/goldWarsName-1.png
vendored
Normal file
After Width: | Height: | Size: 234 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/goldWarsLettering.imageset/goldWarsName-2.png
vendored
Normal file
After Width: | Height: | Size: 234 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/goldWarsLettering.imageset/goldWarsName.png
vendored
Normal file
After Width: | Height: | Size: 234 KiB |
23
GoldWars/GoldWars/Assets.xcassets/gold_button.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "gold_button00.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "gold_button00-1.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"filename" : "gold_button00-2.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
GoldWars/GoldWars/Assets.xcassets/gold_button.imageset/gold_button00-1.png
vendored
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/gold_button.imageset/gold_button00-2.png
vendored
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/gold_button.imageset/gold_button00.png
vendored
Normal file
After Width: | Height: | Size: 1.3 KiB |
21
GoldWars/GoldWars/Assets.xcassets/gold_button_2.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "gold_button_2.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
GoldWars/GoldWars/Assets.xcassets/gold_button_2.imageset/gold_button_2.png
vendored
Normal file
After Width: | Height: | Size: 8.0 KiB |
21
GoldWars/GoldWars/Assets.xcassets/gold_button_3.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "gold_button_3.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
GoldWars/GoldWars/Assets.xcassets/gold_button_3.imageset/gold_button_3.png
vendored
Normal file
After Width: | Height: | Size: 7.8 KiB |
@ -62,6 +62,7 @@ class EntityManager {
|
|||||||
|
|
||||||
if let spinningLogoEntity = entity as? SpinningLogoEntity {
|
if let spinningLogoEntity = entity as? SpinningLogoEntity {
|
||||||
scene.addChild(spinningLogoEntity.spinningLogoNode)
|
scene.addChild(spinningLogoEntity.spinningLogoNode)
|
||||||
|
scene.addChild(spinningLogoEntity.letteringNode)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let wayEntity = entity as? Way {
|
if let wayEntity = entity as? Way {
|
||||||
|
@ -12,10 +12,19 @@ import GameplayKit
|
|||||||
class SpinningLogoEntity: GKEntity {
|
class SpinningLogoEntity: GKEntity {
|
||||||
|
|
||||||
let spinningLogoNode : SpinningLogo3DNode
|
let spinningLogoNode : SpinningLogo3DNode
|
||||||
|
let letteringNode : SKSpriteNode
|
||||||
|
|
||||||
init(position: CGPoint) {
|
init(sceneSize size: CGSize) {
|
||||||
spinningLogoNode = SpinningLogo3DNode()
|
spinningLogoNode = SpinningLogo3DNode()
|
||||||
spinningLogoNode.position = position
|
let midX = size.width / 2
|
||||||
|
let midY = size.height / 2
|
||||||
|
|
||||||
|
letteringNode = SKSpriteNode(texture: SKTexture(imageNamed: "goldWarsLettering"))
|
||||||
|
letteringNode.position = CGPoint(x: midX, y: midY);
|
||||||
|
letteringNode.size = CGSize(width: 723, height: 590)
|
||||||
|
spinningLogoNode.viewportSize = CGSize(width: 200, height: 200)
|
||||||
|
spinningLogoNode.zPosition = letteringNode.zPosition - 1
|
||||||
|
spinningLogoNode.position = CGPoint(x: midX - 80, y: midY + 160);
|
||||||
super.init()
|
super.init()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ class MenuScene: SKScene {
|
|||||||
let midX = self.size.width / 2
|
let midX = self.size.width / 2
|
||||||
let midY = self.size.height / 2
|
let midY = self.size.height / 2
|
||||||
entityManager.add(Button(name: "startGameButton",
|
entityManager.add(Button(name: "startGameButton",
|
||||||
textureName: "yellow_button04",
|
textureName: "gold_button_3",
|
||||||
text: "Start Game",
|
text: "Start Game",
|
||||||
position: CGPoint(x: midX, y: midY),
|
position: CGPoint(x: midX, y: midY),
|
||||||
onButtonPress: {
|
onButtonPress: {
|
||||||
@ -35,7 +35,7 @@ class MenuScene: SKScene {
|
|||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
entityManager.add(Button(name: "settingsButton",
|
entityManager.add(Button(name: "settingsButton",
|
||||||
textureName: "yellow_button04",
|
textureName: "gold_button_3",
|
||||||
text: "Settings",
|
text: "Settings",
|
||||||
position: CGPoint(x: midX, y: midY - 80 ),
|
position: CGPoint(x: midX, y: midY - 80 ),
|
||||||
onButtonPress: {
|
onButtonPress: {
|
||||||
@ -43,7 +43,7 @@ class MenuScene: SKScene {
|
|||||||
self.loadScene(scene: scene)
|
self.loadScene(scene: scene)
|
||||||
}))
|
}))
|
||||||
entityManager.add(Button(name: "gameCenterButton",
|
entityManager.add(Button(name: "gameCenterButton",
|
||||||
textureName: "yellow_button04",
|
textureName: "gold_button_3",
|
||||||
text: "GameCenter",
|
text: "GameCenter",
|
||||||
position: CGPoint(x: midX, y: midY - 160),
|
position: CGPoint(x: midX, y: midY - 160),
|
||||||
onButtonPress: {
|
onButtonPress: {
|
||||||
@ -54,7 +54,7 @@ class MenuScene: SKScene {
|
|||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
entityManager.add(Background(size: self.size))
|
entityManager.add(Background(size: self.size))
|
||||||
entityManager.add(SpinningLogoEntity(position: CGPoint(x: midX, y: midY + 200)))
|
entityManager.add(SpinningLogoEntity(sceneSize: self.size))
|
||||||
|
|
||||||
if SoundManager.sharedInstance.isMusicPlaying == false && SoundManager.sharedInstance.isMusicEnabled == true && !CommandLine.arguments.contains("--no-music") && !UserDefaults.standard.bool(forKey: "noMusic"){
|
if SoundManager.sharedInstance.isMusicPlaying == false && SoundManager.sharedInstance.isMusicEnabled == true && !CommandLine.arguments.contains("--no-music") && !UserDefaults.standard.bool(forKey: "noMusic"){
|
||||||
SoundManager.sharedInstance.startMenuMusic()
|
SoundManager.sharedInstance.startMenuMusic()
|
||||||
|