Skip to content

Add more tile colors to avoid fatal errors when merging high numbered tiles #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions T2iles/Sources/Models/Tiles/Theme/StandardTileColorTheme.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ struct StandardTileColorTheme: TileColorTheme {
(Color(red:0.91, green:0.75, blue:0.24, opacity:1.00), Color.white), // 1024
(Color(red:0.91, green:0.74, blue:0.18, opacity:1.00), Color.white), // 2048
(Color(red:0.91, green:0.72, blue:0.12, opacity:1.00), Color.white), // 4096
(Color(red:0.91, green:0.72, blue:0.12, opacity:1.00), Color.white), // 8192
(Color(red:0.91, green:0.72, blue:0.12, opacity:1.00), Color.white), // 16384
(Color(red:0.91, green:0.72, blue:0.12, opacity:1.00), Color.white), // 32768
(Color(red:0.91, green:0.72, blue:0.12, opacity:1.00), Color.white), // 65536
(Color(red:0.91, green:0.72, blue:0.12, opacity:1.00), Color.white), // 131072
]

var darkTileColors: [TilePair] = [
Expand All @@ -38,5 +43,10 @@ struct StandardTileColorTheme: TileColorTheme {
(Color(red:0.81, green:0.65, blue:0.14, opacity:1.00), Color.white), // 1024
(Color(red:0.81, green:0.64, blue:0.08, opacity:1.00), Color.white), // 2048
(Color(red:0.81, green:0.62, blue:0.02, opacity:1.00), Color.white), // 4096
(Color(red:0.81, green:0.62, blue:0.02, opacity:1.00), Color.white), // 8192
(Color(red:0.81, green:0.62, blue:0.02, opacity:1.00), Color.white), // 16384
(Color(red:0.81, green:0.62, blue:0.02, opacity:1.00), Color.white), // 32768
(Color(red:0.81, green:0.62, blue:0.02, opacity:1.00), Color.white), // 65536
(Color(red:0.81, green:0.62, blue:0.02, opacity:1.00), Color.white), // 131072
]
}