Dashcode is a specialized Python library for the programmatic generation of Geometry Dash levels (compatible with version 2.2+). It allows developers to build complex level structures, triggers, and gameplay mechanics entirely through code.
- Class-Based Architecture: All functionality is encapsulated within the
Dashcodeclass for a clean developer experience. - Full Trigger Support: Easily manage Group IDs, Alpha, Toggle, Rotate, and Camera Zoom parameters.
- Verified Mapping: Includes corrected IDs for critical items like the Checkpoint (2063) and TouchTrigger logic.
- Extensible Logic: Fully customizable object and parameter dictionaries via
setobjects()andsetparams(). - Direct GMD Export: Encode and package your level data into a ready-to-import .gmd file format.
- Timelines: You can make a list of actions and objects like spawn or create to build easier using
build_timeline() - Variables: Add variables using ItemIds with
add_variable()or change the variable in level usingset_variable()or activate groups if {variable} is {value} withif_variable()or just get it withget_variable() - Prefabs: You can add prefabs to your level using
addprefab(), check documentation for more info
Check the /examples in wiki for advanced usage of:
Object placement
Prefabs
Timelines
pip install dashcode