dashcode 1.2.7__tar.gz → 1.2.9__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.7 → dashcode-1.2.9}/PKG-INFO +5 -6
- {dashcode-1.2.7 → dashcode-1.2.9}/README.md +4 -5
- {dashcode-1.2.7 → dashcode-1.2.9}/dashcode/core.py +8 -3
- {dashcode-1.2.7 → dashcode-1.2.9}/dashcode.egg-info/PKG-INFO +5 -6
- {dashcode-1.2.7 → dashcode-1.2.9}/setup.py +1 -1
- {dashcode-1.2.7 → dashcode-1.2.9}/dashcode/__init__.py +0 -0
- {dashcode-1.2.7 → dashcode-1.2.9}/dashcode.egg-info/SOURCES.txt +0 -0
- {dashcode-1.2.7 → dashcode-1.2.9}/dashcode.egg-info/dependency_links.txt +0 -0
- {dashcode-1.2.7 → dashcode-1.2.9}/dashcode.egg-info/top_level.txt +0 -0
- {dashcode-1.2.7 → dashcode-1.2.9}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dashcode
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.9
|
|
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
|
|
@@ -38,11 +38,10 @@ Dashcode is a specialized Python library for the programmatic generation of Geom
|
|
|
38
38
|
* **Timelines**: You can make a list of actions and objects like spawn or create to build easier using `build_timeline()`
|
|
39
39
|
|
|
40
40
|
## Examples
|
|
41
|
-
Check the `/examples`
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
Check the `/examples` in wiki for advanced usage of:
|
|
42
|
+
Object placement
|
|
43
|
+
Prefabs
|
|
44
|
+
Timelines
|
|
46
45
|
|
|
47
46
|
## Installation
|
|
48
47
|
|
|
@@ -14,11 +14,10 @@ Dashcode is a specialized Python library for the programmatic generation of Geom
|
|
|
14
14
|
* **Timelines**: You can make a list of actions and objects like spawn or create to build easier using `build_timeline()`
|
|
15
15
|
|
|
16
16
|
## Examples
|
|
17
|
-
Check the `/examples`
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
Check the `/examples` in wiki for advanced usage of:
|
|
18
|
+
Object placement
|
|
19
|
+
Prefabs
|
|
20
|
+
Timelines
|
|
22
21
|
|
|
23
22
|
## Installation
|
|
24
23
|
|
|
@@ -121,6 +121,8 @@ class Dashcode:
|
|
|
121
121
|
value = data[i + 1]
|
|
122
122
|
obj_dict[key] = value
|
|
123
123
|
return obj_dict
|
|
124
|
+
def removeobject(self, obj:str):
|
|
125
|
+
self.objects.remove(obj)
|
|
124
126
|
def editobject(self, obj:str, params:dict):
|
|
125
127
|
parsed = self.parse_object_string(obj)
|
|
126
128
|
#print(parsed)
|
|
@@ -134,15 +136,18 @@ class Dashcode:
|
|
|
134
136
|
if not parsed.get(self.params.get(i)) and self.params.get(i):
|
|
135
137
|
newparams[str(self.params.get(i))] = str(v)
|
|
136
138
|
elif i in ["X","Y"]:
|
|
137
|
-
print(i,v)
|
|
139
|
+
#print(i,v)
|
|
138
140
|
newparams[str(self.params.get(i))] = str(v*30)
|
|
139
141
|
else:
|
|
140
142
|
newparams[str(i)] = str(v)
|
|
141
143
|
new_obj = ""
|
|
142
144
|
for i,v in newparams.items():
|
|
143
145
|
new_obj += f"{i},{v},"
|
|
144
|
-
print(newparams)
|
|
145
|
-
print(new_obj)
|
|
146
|
+
#print(newparams)
|
|
147
|
+
#print(new_obj)
|
|
148
|
+
self.removeobject(obj)
|
|
149
|
+
self.objects.append(new_obj)
|
|
150
|
+
return new_obj
|
|
146
151
|
def addprefab(self, obj: str, params: dict, prefab: str):
|
|
147
152
|
fab = self.prefabs.get(prefab)
|
|
148
153
|
if not fab:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dashcode
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.9
|
|
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
|
|
@@ -38,11 +38,10 @@ Dashcode is a specialized Python library for the programmatic generation of Geom
|
|
|
38
38
|
* **Timelines**: You can make a list of actions and objects like spawn or create to build easier using `build_timeline()`
|
|
39
39
|
|
|
40
40
|
## Examples
|
|
41
|
-
Check the `/examples`
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
Check the `/examples` in wiki for advanced usage of:
|
|
42
|
+
Object placement
|
|
43
|
+
Prefabs
|
|
44
|
+
Timelines
|
|
46
45
|
|
|
47
46
|
## Installation
|
|
48
47
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|