feat(packages): ludic.wildlife - a valley's animals: species handed in as data, ranges placed against the ground and moved with the season, the day's steering, the senses and a net alert that settles, feeding, lures and snares, birds, spawning and repopulation, its own dice, facts and a save section
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
80f3468ff8
commit
c9dc592dcc
28 changed files with 1956 additions and 0 deletions
17
packages/ludic.wildlife/guest.ludic
Normal file
17
packages/ludic.wildlife/guest.ludic
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# guest.ludic - a machine that draws another's animals puts its own away whole, and they come back
|
||||
# as they were when it stops; in between the list is the copies it is handed (wildlife_make)
|
||||
var wl_own: []WildAnimal = null
|
||||
|
||||
export function wildlife_put_away() -> void {
|
||||
if wl_own != null { return }
|
||||
wl_own = wildlife_all()
|
||||
wl_list = new []WildAnimal
|
||||
}
|
||||
|
||||
export function wildlife_bring_back() -> void {
|
||||
if wl_own == null { return }
|
||||
wl_list = wl_own
|
||||
wl_own = null
|
||||
}
|
||||
|
||||
export function wildlife_away() -> bool { return wl_own != null }
|
||||
Loading…
Add table
Add a link
Reference in a new issue