What problem does it solve?
This Skill provides a framework for simulating plant growth in 2D and 3D environments, suitable for games and educational applications, saving developers time on complex simulation logic.
Core Features & Use Cases
- Data-Driven Plant Definition: Customize plant species with various stages, needs, and yields.
- Growth Engine: Simulate multi-stage growth with environmental factors.
- Visualization: Render 3D and 2D plants, including detailed stage progression.
- Harvest System: Track plant maturity and manage harvests.
- Use Case: Use this Skill to create realistic farming simulations or educational plant growth applications.
Quick Start
Define a plant species with PlantDef.create({ name = "Tomato", stages = ..., needs = ..., yield = ... }). Create a growth engine with GrowthEngine.new(plant). Update the engine with plant:update(dt, env), where env includes light, water, temperature, and soil fertility factors.