# file.py import gd # create a client object client = gd.Client() # create a level object level = gd.Level(name="My Level", description="This is a custom level made with gd.py") # create some objects and triggers ground = gd.Block(id=1, x=0, y=0, width=100, height=3) # a long ground block player = gd.Player(id=747, x=5, y=5) # a cube icon jump = gd.PulseTrigger(id=1268, target_group=1, fade_in=0, hold=0.2, fade_out=0.2, red=255, green=0, blue=0) # a trigger that makes the player pulse red when jumping jump_pad = gd.JumpPad(id=36, x=20, y=3, group=1) # a yellow jump pad that activates the trigger spike = gd.Spike(id=8, x=40, y=3) # a spike obstacle portal = gd.Portal(id=12, x=60, y=5, checked=True) # a yellow portal that changes the player to a ship speed = gd.SpeedChange(id=200, x=65, y=5, speed=3) # a speed change that increases the speed to triple gravity = gd.GravityPortal(id=13, x=80, y=5, checked=True, flipped=True) # a blue portal that flips the gravity end = gd.End(id=4, x=100, y=5) # an end block that marks the end of the level # add the objects and triggers to the level level.add(ground, player, jump, jump_pad, spike, portal, speed, gravity, end) # save the level level.save() # upload the level client.login("your_username", "your_password") # login with your GD account client.upload(level) # upload the level https://geometrydash-free.com