Ground Creep Definitions
Version History
Build Version | Change Date | Change Type | Description |
---|---|---|---|
676042 | 2025-06-21 | stable | Current version |
Overview
The groundcreepdefs.lua
script defines ground creep configurations that create visual overlays on terrain tiles. Ground creep provides atmospheric effects like spider webs spreading across the ground, enhancing the visual storytelling of specific game areas.
Usage Example
-- The script automatically registers ground creep definitions
-- Ground creep is managed by the TileManager system
local TileManager = require("tilemanager")
Ground Creep Definitions
GROUND_CREEP_IDS.WEBCREEP
Status: stable
Description: Defines the web creep overlay effect that appears around spider dens and areas of high spider activity.
Configuration:
name
:"web"
- The identifier name for this ground creep typenoise_texture
:"web_noise"
- The texture file used for the visual overlay pattern
Example:
TileManager.AddGroundCreep(
GROUND_CREEP_IDS.WEBCREEP,
{
name = "web",
noise_texture = "web_noise",
}
)
TileManager Integration
TileManager.AddGroundCreep(id, config)
Status: stable
Description: Registers a new ground creep definition with the tile management system.
Parameters:
id
(number): The ground creep ID constant from GROUND_CREEP_IDSconfig
(table): Configuration table containing:name
(string): Internal name identifier for the ground creepnoise_texture
(string): Texture file name for the overlay pattern
Returns:
- None
Ground Creep System
Ground creep overlays are visual effects that:
- Render on top of terrain tiles
- Use noise textures for natural-looking patterns
- Provide atmospheric enhancement to specific game areas
- Are managed automatically by the tile rendering system
Common Usage Patterns
Ground creep is typically used for:
- Environmental Storytelling: Visual indicators of creature presence or influence
- Area Identification: Helping players recognize dangerous or special zones
- Atmospheric Enhancement: Adding visual depth to terrain
- Gameplay Feedback: Subtle visual cues about game state changes
Related Modules
- TileManager: Core system for managing ground creep registration
- Constants: Contains GROUND_CREEP_IDS definitions
- Prefabs: Spider den prefabs that utilize web creep effects