diff --git a/GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Contents.json b/GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Contents.json new file mode 100644 index 0000000..bdb8e88 --- /dev/null +++ b/GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Contents.json @@ -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 + } +} diff --git a/GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Credits.png b/GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Credits.png new file mode 100644 index 0000000..f557da5 Binary files /dev/null and b/GoldWars/GoldWars/Assets.xcassets/Credits.imageset/Credits.png differ diff --git a/GoldWars/GoldWars/Assets.xcassets/RulesBoost.imageset/RulesBoost.png b/GoldWars/GoldWars/Assets.xcassets/RulesBoost.imageset/RulesBoost.png index 9f311d2..1fa7a24 100644 Binary files a/GoldWars/GoldWars/Assets.xcassets/RulesBoost.imageset/RulesBoost.png and b/GoldWars/GoldWars/Assets.xcassets/RulesBoost.imageset/RulesBoost.png differ diff --git a/GoldWars/GoldWars/RulesScene.swift b/GoldWars/GoldWars/RulesScene.swift index 62adc35..2c8e064 100644 --- a/GoldWars/GoldWars/RulesScene.swift +++ b/GoldWars/GoldWars/RulesScene.swift @@ -99,6 +99,14 @@ class RulesScene: SKScene { 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)) }