Skip to content

Commit

Permalink
change label color to .Red
Browse files Browse the repository at this point in the history
  • Loading branch information
x65han committed Jul 9, 2017
1 parent 7b433aa commit 8f875e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file not shown.
2 changes: 2 additions & 0 deletions Flappy Bird/GameScene.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,14 @@ class GameScene: SKScene, SKPhysicsContactDelegate {

gameOverLabel.fontName = "Helvetica"
gameOverLabel.fontSize = 30
gameOverLabel.fontColor = .red
gameOverLabel.text = "Tap anywhere to begin"
gameOverLabel.position = CGPoint(x: self.frame.midX, y: self.frame.midY + 70)
gameOverLabel.zPosition = 2
self.addChild(gameOverLabel)

scoreLabel.fontName = "Helvetica"
scoreLabel.color = UIColor.red
scoreLabel.fontSize = 60
score = 0
scoreLabel.text = String(score)
Expand Down

0 comments on commit 8f875e6

Please sign in to comment.