Files
autgame/games/juggleboard/scripts/juggleboard_config.gd
T

37 lines
912 B
GDScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
class_name JuggleBoardConfig
extends RefCounted
## Costanti di layout, colori e note del JuggleBoard.
const VIEW := Vector2(1280, 720)
# Coordinate della plancia P2B, ricavate dall'illustrazione board_background.
const LANE_TOP := 132.0
const LANE_GAP := 115.0
const BALL_RADIUS := 48.0
const HOME_X := 1100.0
const LEFT_X := 405.0
const HIT_RADIUS := BALL_RADIUS * 1.35
# Centro della cornice bersaglio misurato nello sfondo P2B (2796×1290) e
# convertito nel viewport 1280×720 usato da board.gd.
const TARGET_CENTER := Vector2(222.4, 360.5)
const COLORS := {
"rosso": Color("de6b7e"),
"blu": Color("1852de"),
"verde": Color("88ce96"),
"giallo": Color("e8b84b"),
"viola": Color("9b7ede"),
}
static func horizontal_scale(viewport_width: float) -> float:
return viewport_width / VIEW.x
const BALL_NOTES := {
"rosso": 261.63,
"blu": 293.66,
"verde": 329.63,
"giallo": 392.00,
"viola": 440.00,
}