Abwandlungen Pastell und Glimmen
Pastell zeichnet mit weichen, hellen Farben und Umrissen im dunkleren Ton der Fläche. Glimmen zeigt eine gedämpfte, kühle tote Welt, in der alles Lebendige kräftig ist und leuchtet. Beide haben dieselben Farbnamen wie Warm und je acht Spielerfarben. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
extends TestCase
|
||||
|
||||
|
||||
func test_four_players_have_four_colours() -> void:
|
||||
var style := PastelStyle.new()
|
||||
var colours := {}
|
||||
for player in 4:
|
||||
colours[style.player_color(player)] = true
|
||||
check_eq(colours.size(), 4, "four players, four colours")
|
||||
check_eq(style.player_color(-1), style.player_color(0), "a player not in the world yet looks like the first")
|
||||
|
||||
|
||||
func test_it_has_every_colour_the_warm_style_has() -> void:
|
||||
var names := PastelStyle.new().palette.keys()
|
||||
var warm := WarmStyle.new().palette.keys()
|
||||
names.sort()
|
||||
warm.sort()
|
||||
check_eq(names, warm, "the same colours by name")
|
||||
Reference in New Issue
Block a user