added Credits
This commit is contained in:
parent
8758246798
commit
3b6647b817
21
GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Contents.json
vendored
Normal file
21
GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Contents.json
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"images" : [
|
||||||
|
{
|
||||||
|
"filename" : "Credits.png",
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "1x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "2x"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"idiom" : "universal",
|
||||||
|
"scale" : "3x"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"info" : {
|
||||||
|
"author" : "xcode",
|
||||||
|
"version" : 1
|
||||||
|
}
|
||||||
|
}
|
BIN
GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Credits.png
vendored
Normal file
BIN
GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Credits.png
vendored
Normal file
Binary file not shown.
After Width: | Height: | Size: 997 KiB |
Binary file not shown.
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 141 KiB |
@ -99,6 +99,14 @@ class RulesScene: SKScene {
|
|||||||
onButtonPress: { self.image!.texture = SKTexture(imageNamed: "RulesErfolge") }
|
onButtonPress: { self.image!.texture = SKTexture(imageNamed: "RulesErfolge") }
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
EntityManager.rulesEMInstance.add(
|
||||||
|
Button(name: "Credits",
|
||||||
|
textureName: "yellow_button13",
|
||||||
|
text: "Credits",
|
||||||
|
position: CGPoint(x: self.size.width * 0.1, y: self.size.height * 0.1 - 20),
|
||||||
|
onButtonPress: { self.image!.texture = SKTexture(imageNamed: "Credits") }
|
||||||
|
)
|
||||||
|
)
|
||||||
EntityManager.rulesEMInstance.add(Background(size: self.size))
|
EntityManager.rulesEMInstance.add(Background(size: self.size))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user