add new Assets
* change Base Texture * change Background Texture * change ModalBackgrund Texture * add RedCross Texture * set Button Texture in SettingsScene * adjust Texture Positions
Before Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 202 KiB |
Before Width: | Height: | Size: 202 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/BaseTexture.imageset/Base-1.png
vendored
Normal file
After Width: | Height: | Size: 209 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/BaseTexture.imageset/Base-2.png
vendored
Normal file
After Width: | Height: | Size: 209 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/BaseTexture.imageset/Base.png
vendored
Normal file
After Width: | Height: | Size: 209 KiB |
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "base.png",
|
"filename" : "Base.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "1x"
|
"scale" : "1x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "base-1.png",
|
"filename" : "Base-1.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "base-2.png",
|
"filename" : "Base-2.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "3x"
|
"scale" : "3x"
|
||||||
}
|
}
|
BIN
GoldWars/GoldWars/Assets.xcassets/BaseTexture_2.imageset/Base_2-1.png
vendored
Normal file
After Width: | Height: | Size: 191 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/BaseTexture_2.imageset/Base_2-2.png
vendored
Normal file
After Width: | Height: | Size: 191 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/BaseTexture_2.imageset/Base_2.png
vendored
Normal file
After Width: | Height: | Size: 191 KiB |
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "logo_kante.jpg",
|
"filename" : "Base_2.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "1x"
|
"scale" : "1x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "logo_kante-1.jpg",
|
"filename" : "Base_2-1.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "logo_kante-2.jpg",
|
"filename" : "Base_2-2.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "3x"
|
"scale" : "3x"
|
||||||
}
|
}
|
@ -1,17 +1,17 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "PopUpBackground.png",
|
"filename" : "ModalBackground.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "1x"
|
"scale" : "1x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "PopUpBackground-1.png",
|
"filename" : "ModalBackground-1.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"filename" : "PopUpBackground-2.png",
|
"filename" : "ModalBackground-2.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "3x"
|
"scale" : "3x"
|
||||||
}
|
}
|
||||||
|
BIN
GoldWars/GoldWars/Assets.xcassets/ModalBackground.imageset/ModalBackground-1.png
vendored
Normal file
After Width: | Height: | Size: 165 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/ModalBackground.imageset/ModalBackground-2.png
vendored
Normal file
After Width: | Height: | Size: 165 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/ModalBackground.imageset/ModalBackground.png
vendored
Normal file
After Width: | Height: | Size: 165 KiB |
Before Width: | Height: | Size: 400 KiB |
Before Width: | Height: | Size: 400 KiB |
Before Width: | Height: | Size: 400 KiB |
@ -1,15 +1,17 @@
|
|||||||
{
|
{
|
||||||
"images" : [
|
"images" : [
|
||||||
{
|
{
|
||||||
"filename" : "SkyBackground.jpg",
|
"filename" : "SkyBackground.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "1x"
|
"scale" : "1x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "SkyBackground-1.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "2x"
|
"scale" : "2x"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"filename" : "SkyBackground-2.png",
|
||||||
"idiom" : "universal",
|
"idiom" : "universal",
|
||||||
"scale" : "3x"
|
"scale" : "3x"
|
||||||
}
|
}
|
||||||
|
BIN
GoldWars/GoldWars/Assets.xcassets/SkyBackground.imageset/SkyBackground-1.png
vendored
Normal file
After Width: | Height: | Size: 55 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/SkyBackground.imageset/SkyBackground-2.png
vendored
Normal file
After Width: | Height: | Size: 55 KiB |
Before Width: | Height: | Size: 20 KiB |
BIN
GoldWars/GoldWars/Assets.xcassets/SkyBackground.imageset/SkyBackground.png
vendored
Normal file
After Width: | Height: | Size: 55 KiB |
21
GoldWars/GoldWars/Assets.xcassets/UITexture.spriteatlas/red_cross.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "red_cross.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
GoldWars/GoldWars/Assets.xcassets/UITexture.spriteatlas/red_cross.imageset/red_cross.png
vendored
Normal file
After Width: | Height: | Size: 1003 B |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.8 KiB |
@ -15,7 +15,7 @@ class DefaultBaseComponent: GKComponent {
|
|||||||
var labelNode : SKLabelNode
|
var labelNode : SKLabelNode
|
||||||
|
|
||||||
init(texture: SKTexture, position: CGPoint) {
|
init(texture: SKTexture, position: CGPoint) {
|
||||||
spriteNode = BaseNode(texture: texture, size: CGSize(width: 80, height: 80))
|
spriteNode = BaseNode(texture: texture, size: CGSize(width: 100, height: 100))
|
||||||
spriteNode.position = position
|
spriteNode.position = position
|
||||||
spriteNode.zPosition = 2
|
spriteNode.zPosition = 2
|
||||||
labelNode = SKLabelNode(text: "")
|
labelNode = SKLabelNode(text: "")
|
||||||
|
@ -32,7 +32,7 @@ class Base: GKEntity{
|
|||||||
super.init()
|
super.init()
|
||||||
|
|
||||||
let spritePos = position
|
let spritePos = position
|
||||||
addComponent(DefaultBaseComponent(texture: SKTexture(imageNamed: "Base"), position: spritePos))
|
addComponent(DefaultBaseComponent(texture: SKTexture(imageNamed: "BaseTexture"), position: spritePos))
|
||||||
if(team != nil && player != nil){
|
if(team != nil && player != nil){
|
||||||
addComponent(TeamComponent(team: team!, player: player!, position: spritePos))
|
addComponent(TeamComponent(team: team!, player: player!, position: spritePos))
|
||||||
self.unitCount = 500
|
self.unitCount = 500
|
||||||
|
@ -28,14 +28,14 @@ class Modal: GKEntity{
|
|||||||
|
|
||||||
let texture = SKTexture(imageNamed:"ModalBackground")
|
let texture = SKTexture(imageNamed:"ModalBackground")
|
||||||
background = SKSpriteNode(texture: texture, size: texture.size())
|
background = SKSpriteNode(texture: texture, size: texture.size())
|
||||||
background.setScale(2)
|
background.setScale(2.4)
|
||||||
background.position = anchorPoint
|
background.position = anchorPoint
|
||||||
background.zPosition = 3
|
background.zPosition = 3
|
||||||
|
|
||||||
closeButton = ButtonNode(textureName: "yellow_cross", text: "", isEnabled: true, position: CGPoint(x: anchorPoint.x + 160, y: anchorPoint.y + 140), onButtonPress: {
|
closeButton = ButtonNode(textureName: "red_cross", text: "", isEnabled: true, position: CGPoint(x: anchorPoint.x + 195, y: anchorPoint.y + 178), onButtonPress: {
|
||||||
EntityManager.gameEMInstance.removeModal()
|
EntityManager.gameEMInstance.removeModal()
|
||||||
})
|
})
|
||||||
closeButton.size = CGSize(width: 30, height: 30)
|
closeButton.size = CGSize(width: 26, height: 26)
|
||||||
closeButton.zPosition = 4
|
closeButton.zPosition = 4
|
||||||
|
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ class Modal: GKEntity{
|
|||||||
footer = SKLabelNode()
|
footer = SKLabelNode()
|
||||||
}
|
}
|
||||||
|
|
||||||
self.header.position = CGPoint(x: anchorPoint.x, y: anchorPoint.y + 125)
|
self.header.position = CGPoint(x: anchorPoint.x, y: anchorPoint.y + 90)
|
||||||
self.header.fontName = "HelveticaNeue-Bold"
|
self.header.fontName = "HelveticaNeue-Bold"
|
||||||
self.header.fontSize = 40
|
self.header.fontSize = 40
|
||||||
self.header.zPosition = 4
|
self.header.zPosition = 4
|
||||||
@ -72,12 +72,12 @@ class Modal: GKEntity{
|
|||||||
|
|
||||||
switch modaltype{
|
switch modaltype{
|
||||||
case .BaseDetails:
|
case .BaseDetails:
|
||||||
addComponent(ButtonComponent(textureName: "yellow_button04", text: "Zurück", position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 120), isEnabled: true, onButtonPress: {
|
addComponent(ButtonComponent(textureName: "yellow_button04", text: "Zurück", position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 105), isEnabled: true, onButtonPress: {
|
||||||
EntityManager.gameEMInstance.removeModal()
|
EntityManager.gameEMInstance.removeModal()
|
||||||
}))
|
}))
|
||||||
case .BaseAttack:
|
case .BaseAttack:
|
||||||
addComponent(SliderComponent(width: 300, position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 50)))
|
addComponent(SliderComponent(width: 300, position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 50)))
|
||||||
addComponent(ButtonComponent(textureName: "yellow_button04", text: "Senden", position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 120), isEnabled: true, onButtonPress: {
|
addComponent(ButtonComponent(textureName: "yellow_button04", text: "Senden", position: CGPoint(x: anchorPoint.x , y: anchorPoint.y - 105), isEnabled: true, onButtonPress: {
|
||||||
self.sendUnits(currentDraggedBase: currentDraggedBase, touchLocation: touchLocation, gameScene: gameScene, collisionBase: collisionBase)
|
self.sendUnits(currentDraggedBase: currentDraggedBase, touchLocation: touchLocation, gameScene: gameScene, collisionBase: collisionBase)
|
||||||
EntityManager.gameEMInstance.removeModal()
|
EntityManager.gameEMInstance.removeModal()
|
||||||
}))
|
}))
|
||||||
|
@ -39,7 +39,7 @@ class SettingsScene: SKScene {
|
|||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
entityManager.add(Button(name: "StopMovingBackground",
|
entityManager.add(Button(name: "StopMovingBackground",
|
||||||
textureName: "",
|
textureName: "yellow_button04",
|
||||||
text: "MOVE/STOP",
|
text: "MOVE/STOP",
|
||||||
position: CGPoint(x: self.size.width * 0.6, y: self.size.height / 2 - 100),
|
position: CGPoint(x: self.size.width * 0.6, y: self.size.height / 2 - 100),
|
||||||
onButtonPress: {
|
onButtonPress: {
|
||||||
|