Home
API reference

createQuadruped

strata-game-library/presets

strata-game-library/presets


strata-game-library/presets / createQuadruped

Function: createQuadruped()

createQuadruped(form, customizations?): QuadrupedParams

Defined in: creatures/quadruped.ts:564

Create a quadruped starting from a form

Parameters

form

FormName

Starting form (otter, dog, horse, etc.)

customizations?

Partial<QuadrupedParams>

Any parameter overrides

Returns

QuadrupedParams

Complete parameter set

Example

// Baby otter with extra fluffy fur
const babyOtter = createQuadruped('otter', {
  age: 'baby',
  furLength: 1.5,
});

// Battle-scarred old wolf
const alphaWolf = createQuadruped('wolf', {
  age: 'old',
  build: 'heavy',
  wear: 0.7,
  size: 1.4,
});