Bitflinger Games docs

Jewel

Jewel is the look every Bitflinger game shares: six jewel tones on a dark amethyst ink ground, a faceted sky, and a finish over the world that pulls colours to the palette and lets bright colour bloom. It's always there: you don't need to load it.

Colours

NameColourUse it for
INK#17141fThe ground everything sits on
AMETHYST#7b4fe0
AQUA#2ee6c5
SAPPHIRE#2f6bea
RUBY#e3386b
CITRINE#f6b93bCoins, warm light
EMERALD#12a87eGrass and leaves
PEARL#f0ecfaText and marks drawn on ink
label.add_theme_color_override("font_color", Jewel.PEARL)

Sky and light

CallGives backWhat it does
new_sky_material(hour: float)ShaderMaterialA faceted sky for a 3D Environment, at hour (0 to 24). Keep it to change the hour later
set_sky_hour(material: ShaderMaterial, hour: float)nothingMoves a sky from new_sky_material to another hour
daylight(hour: float)float0 in the dead of night, 1 at midday
light(hour: float)DictionaryLight to match the sky: sun, sun_energy, fill, fill_energy, ambient, ambient_energy
new_lamp_light(colour: Color, reach := 14.0, energy := 2.0)OmniLight3DA jewel-coloured point light. A phone lights each mesh with at most eight
set_backdrop_hour(hour: float)nothingSets the 2D backdrop's sky to an hour
set_bloom(amount: float)nothingHow strongly bright colour glows: 0 for none, 0.45 unless a game says
ConstantValueWhat it is
BACKDROP_LAYER-128The backdrop's canvas layer. A 3D game with a fixed camera shows the backdrop with Environment.BG_CANVAS and this as its max layer
NIGHT22.0Any hour from here until dawn gets the night sky