dashcode 1.2.1__tar.gz → 1.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dashcode-1.2.1 → dashcode-1.2.4}/PKG-INFO +4 -1
- {dashcode-1.2.1 → dashcode-1.2.4}/README.md +2 -0
- {dashcode-1.2.1 → dashcode-1.2.4}/dashcode/core.py +5 -3
- {dashcode-1.2.1 → dashcode-1.2.4}/dashcode.egg-info/PKG-INFO +4 -1
- {dashcode-1.2.1 → dashcode-1.2.4}/setup.py +2 -1
- {dashcode-1.2.1 → dashcode-1.2.4}/dashcode/__init__.py +0 -0
- {dashcode-1.2.1 → dashcode-1.2.4}/dashcode.egg-info/SOURCES.txt +0 -0
- {dashcode-1.2.1 → dashcode-1.2.4}/dashcode.egg-info/dependency_links.txt +0 -0
- {dashcode-1.2.1 → dashcode-1.2.4}/dashcode.egg-info/top_level.txt +0 -0
- {dashcode-1.2.1 → dashcode-1.2.4}/setup.cfg +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dashcode
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
4
4
|
Summary: A library for Geometry Dash level generation using .gmd files
|
|
5
5
|
Author: IWiterI
|
|
6
6
|
Project-URL: Homepage, https://github.com/ISviterI/dashcode
|
|
7
|
+
Project-URL: Discord, https://discord.gg/MXv3KTFmPE
|
|
7
8
|
Project-URL: Wiki, https://github.com/ISviterI/dashcode/wiki
|
|
8
9
|
Project-URL: Documentation, https://github.com/ISviterI/dashcode/wiki/Documentation
|
|
9
10
|
Keywords: geometry dash,gd,level-generator,automation,2.2,python,dash,dashcode,code
|
|
@@ -23,6 +24,8 @@ Dynamic: summary
|
|
|
23
24
|
|
|
24
25
|
# Dashcode
|
|
25
26
|
|
|
27
|
+
[](https://discord.gg/MXv3KTFmPE)
|
|
28
|
+
|
|
26
29
|
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.
|
|
27
30
|
|
|
28
31
|
## Key Features
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Dashcode
|
|
2
2
|
|
|
3
|
+
[](https://discord.gg/MXv3KTFmPE)
|
|
4
|
+
|
|
3
5
|
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.
|
|
4
6
|
|
|
5
7
|
## Key Features
|
|
@@ -51,7 +51,9 @@ class Dashcode:
|
|
|
51
51
|
self.timeline = {}
|
|
52
52
|
def setobjects(self, objs:dict):
|
|
53
53
|
self.objectids = objs
|
|
54
|
-
|
|
54
|
+
def export_gmd(self, filedata, filename:str="Level"):
|
|
55
|
+
with open(f"{filename}.gmd", "w", encoding="utf-8") as f:
|
|
56
|
+
f.write(filedata)
|
|
55
57
|
def setparams(self, params:dict):
|
|
56
58
|
self.params = params
|
|
57
59
|
|
|
@@ -149,13 +151,13 @@ class Dashcode:
|
|
|
149
151
|
for i2,v2 in v.items():
|
|
150
152
|
params[i2] = v2
|
|
151
153
|
self.addobject(i,params)
|
|
152
|
-
def create_gmd_file(self, level_name,
|
|
154
|
+
def create_gmd_file(self, level_name, objects_string):
|
|
153
155
|
global lvlname
|
|
154
156
|
lvlname = level_name
|
|
155
157
|
final_string_to_pack = objects_string
|
|
156
158
|
gzipped = gzip.compress(final_string_to_pack.encode('utf-8'))
|
|
157
159
|
b64_objects = base64.b64encode(gzipped).decode('utf-8').replace('/', '_').replace('+', '-')
|
|
158
|
-
return f'''<?xml version="1.0"?><plist version="1.0" gjver="2.0"><dict><k>kCEK</k><i>4</i><k>k2</k><s>{level_name}</s><k>k4</k><s>{b64_objects}</s><k>k5</k><s>
|
|
160
|
+
return f'''<?xml version="1.0"?><plist version="1.0" gjver="2.0"><dict><k>kCEK</k><i>4</i><k>k2</k><s>{level_name}</s><k>k4</k><s>{b64_objects}</s><k>k5</k><s>Doesn't matter</s><k>k11</k><i>1091</i><k>k16</k><i>1</i><k>k80</k><i>56</i></dict></plist>'''
|
|
159
161
|
|
|
160
162
|
def decode_objects(self):
|
|
161
163
|
objects = self.objects
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dashcode
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.4
|
|
4
4
|
Summary: A library for Geometry Dash level generation using .gmd files
|
|
5
5
|
Author: IWiterI
|
|
6
6
|
Project-URL: Homepage, https://github.com/ISviterI/dashcode
|
|
7
|
+
Project-URL: Discord, https://discord.gg/MXv3KTFmPE
|
|
7
8
|
Project-URL: Wiki, https://github.com/ISviterI/dashcode/wiki
|
|
8
9
|
Project-URL: Documentation, https://github.com/ISviterI/dashcode/wiki/Documentation
|
|
9
10
|
Keywords: geometry dash,gd,level-generator,automation,2.2,python,dash,dashcode,code
|
|
@@ -23,6 +24,8 @@ Dynamic: summary
|
|
|
23
24
|
|
|
24
25
|
# Dashcode
|
|
25
26
|
|
|
27
|
+
[](https://discord.gg/MXv3KTFmPE)
|
|
28
|
+
|
|
26
29
|
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.
|
|
27
30
|
|
|
28
31
|
## Key Features
|
|
@@ -8,7 +8,7 @@ if os.path.exists("README.md"):
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="dashcode",
|
|
11
|
-
version="1.2.
|
|
11
|
+
version="1.2.4",
|
|
12
12
|
packages=find_packages(),
|
|
13
13
|
author="IWiterI",
|
|
14
14
|
description="A library for Geometry Dash level generation using .gmd files",
|
|
@@ -17,6 +17,7 @@ setup(
|
|
|
17
17
|
python_requires=">=3.6",
|
|
18
18
|
project_urls={
|
|
19
19
|
"Homepage": "https://github.com/ISviterI/dashcode",
|
|
20
|
+
"Discord": "https://discord.gg/MXv3KTFmPE",
|
|
20
21
|
"Wiki": "https://github.com/ISviterI/dashcode/wiki",
|
|
21
22
|
"Documentation": "https://github.com/ISviterI/dashcode/wiki/Documentation",
|
|
22
23
|
},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|