ludic.clock: clock_hhmm reads a table of the day's times made with the state; ludic.minimap: minimap_pin past the end is one kept empty mark; ludic.ui: ev_text's memo miss is its own declared function
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
bad7c4a255
commit
ac8c7b0c0b
5 changed files with 25 additions and 7 deletions
|
|
@ -1,6 +1,7 @@
|
|||
# grid.ludic - the explored grid: square cells round the origin, and the part of it "explored" is
|
||||
# measured over (a core, so a bigger grid does not change what a share of it means)
|
||||
export state MinimapState {
|
||||
mm_none: MinimapPin = new MinimapPin # minimap_pin past the end: an empty mark, the same one each time
|
||||
mm_near: []int = new []int # minimap_pins_near's answer, cleared and refilled: a compass asks every frame
|
||||
mm_land_n: int = 0 # land cells in the core, counted once per origin
|
||||
mm_land_ox: float = 0.0
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export function minimap_pin_put(minimap_st: mut MinimapState, x: float, z: float
|
|||
|
||||
# the i-th mark, or an empty one past the end
|
||||
export function minimap_pin(minimap_st: MinimapState, i: int) -> MinimapPin {
|
||||
if i < 0 or i >= minimap_pin_count(minimap_st) { return new MinimapPin }
|
||||
if i < 0 or i >= minimap_pin_count(minimap_st) { return minimap_st.mm_none }
|
||||
return minimap_st.mm_pins[i]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue