Memory InteractionΒΆ
Warning
Please note that memory interaction is currently supported on Windows only. If you wish to contribute to adding MacOS memory interaction, feel free to open a pull request.
gd.py allows to interact with the memory of Geometry Dash.
Quick example of a program that will print a random message every time the player dies:
import random # for fun
import gd
messages = ["Get good.", "RIP", "F", "bruh", "hm..."] # some messages to pick from
# initialize memory object by acquiring process handle and base addresses
memory = gd.memory.get_memory()
do_print = True
while True:
if memory.is_dead(): # if player is dead
if do_print:
print(f"{random.choice(messages)} ({memory.get_percent()}%)")
do_print = False
else:
do_print = True