This repository has been archived by the owner on May 5, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving Constants to Separate File Using Swift Standard Style Guidelines
- Loading branch information
Showing
6 changed files
with
100 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import Foundation | ||
import SpriteKit | ||
enum Colors { | ||
static let textColor = UIColor(red: 21.0 / 255.0, green: 124.0 / 255.0, blue: 129.0 / 255.0, alpha: 1.0) | ||
static let correctColor = UIColor(red: 105.0 / 255.0, green: 255.0 / 255.0, blue: 109.0 / 255.0, alpha: 1.0) | ||
static let wrongColor = UIColor(red: 255.0 / 255.0, green: 105.0 / 255.0, blue: 105.0 / 255.0, alpha: 1.0) | ||
static let scoreTextColor = UIColor.white | ||
static let uiColor = UIColor(red: 42.0 / 255.0, green: 203.0 / 255.0, blue: 211.0 / 255.0, alpha: 1.0) | ||
static let prosTextColor = UIColor(red: 105.0 / 255.0, green: 255.0 / 255.0, blue: 97.0 / 255.0, alpha: 1.0) | ||
static let consTextColor = UIColor(red: 255.0 / 255.0, green: 105.0 / 255.0, blue: 105.0 / 255.0, alpha: 1.0) | ||
} | ||
enum Images { | ||
static let vocabMatchingScoreBox = "vocabmatching_scorebox" | ||
static let vocabMatchingBackground = "vocabmatching_background" | ||
static let endScene = "end_scene" | ||
static let continueButton = "continue_button" | ||
static let vocabMatchingTile = "vocabmatching_tile" | ||
static let vocabMatchingClipboard = "vocabmatching_clipboard" | ||
static let vocabMatchingClipboardGreen = "vocabmatching_clipboard_green" | ||
static let vocabMatchingClipboardRed = "vocabmatching_clipboard_red" | ||
static let minesweeperBackground = "minesweeper_background" | ||
static let minesweeperProsConsBanner = "minesweeper_pros_cons_banner" | ||
static let successBanner = "success_banner" | ||
static let failureBanner = "failure_banner" | ||
static let minesweeperYellowstarBox = "minesweeper_yellowstar_box" | ||
static let minesweeperRedstarBox = "minesweeper_redstar_box" | ||
static let minesweeperGreenstarBox = "minesweeper_greenstar_box" | ||
static let sinkToSwimBackground = "sink_to_swim_background" | ||
static let sinkToSwimForeground = "sink_to_swim_foreground" | ||
static let sinkToSwimGauge = "sink_to_swim_gauge" | ||
static let sinkToSwimIndicator = "sink_to_swim_indicator" | ||
static let sinkToSwimBoatAvatar = "sink_to_swim_boat_avatar" | ||
static let sinkToSwimTimer = "sink_to_swim_timer" | ||
static let sinkToSwimTrueFalseBox = "sink_to_swim_true_false_box" | ||
static let sinkToSwimCorrectIcon = "sink_to_swim_correct_icon" | ||
static let sinkToSwimWrongIcon = "sink_to_swim_wrong_icon" | ||
} | ||
enum FontName { | ||
static let montserratBold = "Montserrat-Bold" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.