added Credits

This commit is contained in:
Chauntalle Schüle 2020-06-25 12:38:29 +02:00
parent 8758246798
commit 3b6647b817
4 changed files with 29 additions and 0 deletions

View 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
}
}

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

View File

@ -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))
} }