Folleach / GeometryDashAPI

API for Geometry Dash
MIT License
62 stars 8 forks source link

Is there any python api like this #19

Closed Kolhax closed 1 year ago

Kolhax commented 1 year ago

Hi, i love your api, but i am lot lot more comfortable with python3 do you know if u plan to make one for python or do you know anyone that make a copy of this work in python?

flleaf commented 1 year ago

a quick github search reveals this api with even more stars than this project: https://github.com/nekitdev/gd.py

Folleach commented 1 year ago

I'm focusing only on C# for this library. @Illirick is right, if you want to use another language, I recommend finding another library. Like gd.py by nekitdev

KeparYTbcc commented 1 year ago

the problem with this one ( GD.py ) is that it seems like I can't create levels with it

Folleach commented 1 year ago

I see that gd.py can parse levels. Maybe @nekitdev can write an example how to create levels using his library?

MonsterDruide1 commented 1 year ago

Here's some documentation I found about it: https://gdpy.readthedocs.io/en/latest/game_api.html#level-editing

nekitdev commented 1 year ago

Creating levels with gd.py is rather simple:

from gd.api import Editor, Object
from iters.ordered_set import ordered_set
from iters.utils import unary_tuple

editor = Editor()

groups = orsered_set(unary_tuple(1))

object = Object(id=1, x=300.0, y=300.0, groups=groups)

editor.add_objects(object)
Folleach commented 1 year ago

Thanks you for reply