nodes/settings.pyΒΆ
Part of GDQuest Open RPG.
1"""Constants for GDQuest Open RPG port."""
2
3from __future__ import annotations
4
5# The window the desktop run opens at. Nothing lays out against these: every
6# overlay reads ``self.viewport_size``, so the game follows a resized window or
7# a browser canvas of any shape.
8WIDTH = 960
9HEIGHT = 540
10TITLE = "Open RPG (SimVX port)"
11TILE = 32 # cell size in pixels
12GRID_W = 30 # overworld grid columns
13GRID_H = 17 # overworld grid rows
14
15# Colour palette (RGBA float [0..1])
16GRASS = (0.30, 0.62, 0.30, 1.0)
17GRASS_DARK = (0.22, 0.52, 0.24, 1.0)
18PATH = (0.70, 0.60, 0.40, 1.0)
19WATER = (0.18, 0.40, 0.66, 1.0)
20WALL = (0.36, 0.30, 0.22, 1.0)
21TREE = (0.10, 0.30, 0.12, 1.0)
22SAND = (0.85, 0.78, 0.55, 1.0)
23SHRINE = (0.95, 0.90, 0.55, 1.0)
24
25# Battler arena background
26ARENA_BG = (0.78, 0.66, 0.42, 1.0)
27ARENA_FG = (0.55, 0.40, 0.22, 1.0)
28
29# UI palette
30PANEL = (0.10, 0.12, 0.18, 0.92)
31PANEL_BORDER = (0.85, 0.78, 0.55, 1.0)
32PANEL_BORDER_FOCUS = (1.0, 0.85, 0.30, 1.0)
33TEXT = (0.95, 0.95, 0.92, 1.0)
34TEXT_DIM = (0.70, 0.70, 0.65, 1.0)
35HP_FG = (0.85, 0.20, 0.20, 1.0)
36HP_BG = (0.30, 0.10, 0.10, 1.0)
37ENERGY_FG = (0.30, 0.85, 0.95, 1.0)
38ENERGY_BG = (0.10, 0.20, 0.30, 1.0)
39DAMAGE = (1.0, 0.45, 0.30, 1.0)
40HEAL = (0.50, 1.0, 0.55, 1.0)
41MISS = (0.85, 0.85, 0.85, 1.0)
42CRIT = (1.0, 0.95, 0.30, 1.0)