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
38
packages/ludic.wildlife/places.ludic
Normal file
38
packages/ludic.wildlife/places.ludic
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# places.ludic - the places an animal's day is made of: its range, the water and forage it walks
|
||||
# to (the game's, found through the port), and food, lures and snares players set out
|
||||
export const WILD_FEED: int = 0 # food put down: eaten, and the one who left it is credited
|
||||
export const WILD_LURE: int = 1 # a lure: it comes, stands curious a while, and drifts off
|
||||
export const WILD_SNARE: int = 2 # a snare: a small enough animal walking onto it is held
|
||||
|
||||
# a disc a species keeps to, with an address for each end of the year: `x`, `z` is where it is
|
||||
# today, the summer and winter centres lerped by the season (WildlifeWorld.winterness)
|
||||
export property WildRange {
|
||||
sp: int = 0
|
||||
x: float = 0.0
|
||||
z: float = 0.0
|
||||
r: float = 0.0
|
||||
found: bool = false # a player has been inside it
|
||||
sx: float = 0.0
|
||||
sz: float = 0.0
|
||||
wx: float = 0.0
|
||||
wz: float = 0.0
|
||||
}
|
||||
|
||||
# water or forage the game offers an animal (WildlifeWorld.spot fills one)
|
||||
export property WildSpot {
|
||||
uid: int = 0
|
||||
x: float = 0.0
|
||||
z: float = 0.0
|
||||
water: bool = false
|
||||
}
|
||||
|
||||
# something set out (WildlifeWorld.lure fills one): what it is, what eats it, where, whose
|
||||
export property WildLure {
|
||||
uid: int = 0
|
||||
kind: int = 0 # WILD_FEED, WILD_LURE, WILD_SNARE
|
||||
diet: int = 0 # the diet it draws (WILD_PLANTS .. WILD_SEED)
|
||||
size: int = 0 # a snare: the largest size it holds
|
||||
x: float = 0.0
|
||||
z: float = 0.0
|
||||
owner: int = -1 # whoever set it out; the game decides what it means
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue