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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dashcode
3
- Version: 1.2.7
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` directory for advanced usage:
42
- * `spikes_and_orbs.py` - Basic object placement.
43
- * `prefabs.py` - Placing objects using prefabs
44
- * `timeline_demo.py` - Using `build_timeline()` for synced events.
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` directory for advanced usage:
18
- * `spikes_and_orbs.py` - Basic object placement.
19
- * `prefabs.py` - Placing objects using prefabs
20
- * `timeline_demo.py` - Using `build_timeline()` for synced events.
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.7
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` directory for advanced usage:
42
- * `spikes_and_orbs.py` - Basic object placement.
43
- * `prefabs.py` - Placing objects using prefabs
44
- * `timeline_demo.py` - Using `build_timeline()` for synced events.
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
 
@@ -8,7 +8,7 @@ if os.path.exists("README.md"):
8
8
 
9
9
  setup(
10
10
  name="dashcode",
11
- version="1.2.7",
11
+ version="1.2.9",
12
12
  packages=find_packages(),
13
13
  author="IWiterI",
14
14
  description="A library for Geometry Dash level generation using .gmd files",
File without changes
File without changes