dashcode 1.3.0__tar.gz → 1.3.1__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.3.0
3
+ Version: 1.3.1
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
@@ -53,7 +53,8 @@ class Dashcode:
53
53
  "end": 3600,
54
54
  "p_blue": 10, "p_yellow": 11, "p_green": 2926,
55
55
  "p_cube": 12, "p_ship": 13, "p_ball": 47, "p_ufo": 111,
56
- "p_wave": 660, "p_robot": 745, "p_spider": 1331, "p_swing": 1933
56
+ "p_wave": 660, "p_robot": 745, "p_spider": 1331, "p_swing": 1933,
57
+ "h_block":1859, "d_block":1755, "f_block":2866
57
58
  }
58
59
  self.prefabs = {
59
60
  "wall": {"Y":0},
@@ -194,24 +195,24 @@ class Dashcode:
194
195
  self.spawn_trigger_on_objects = False
195
196
  def spawn(self, group:int):
196
197
  if self.spawn_trigger_enabled:
197
- dcself.addobject("spawn", {"X": self.x_position, "Y": 6, "Delay": str(self.delay), "TGroup": str(group),"SpawnTrigger":1,"MultiTrigger":1})
198
+ dcself.addobject("spawn", {"X": self.x_position, "Y": 6, "Delay": str(self.delay), "TGroup": str(group), "Group":self.spawn_group, "SpawnTrigger":1,"MultiTrigger":1})
198
199
  else:
199
- dcself.addobject("spawn", {"X": self.x_position, "Y": 6, "Delay": str(self.delay), "TGroup": str(group)})
200
+ dcself.addobject("spawn", {"X": self.x_position, "Y": 6, "Delay": str(self.delay), "TGroup": str(group), "Group":self.spawn_group})
200
201
  self.timeline.append(["spawn",str(group)])
201
202
  self.x_position += -1
202
203
  def wait(self, seconds:float):
203
204
  self.delay += seconds
204
205
  self.timeline.append(["wait",str(seconds)])
205
206
  def create_object(self, obj:str, params:dict):
206
- dcself.addobject(obj, params)
207
207
  if params.get("X") is None and params.get("Y") is None:
208
208
  params["X"] = self.x2_position
209
- self.x2_position += -1
210
209
  params["Y"] = 5
210
+ self.x2_position += -1
211
211
  if self.spawn_trigger_on_objects:
212
212
  params["SpawnTrigger"] = 1
213
213
  params["MultiTrigger"] = 1
214
214
  self.timeline.append([obj, params])
215
+ dcself.addobject(obj, params)
215
216
  return Timeline()
216
217
 
217
218
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dashcode
3
- Version: 1.3.0
3
+ Version: 1.3.1
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
@@ -8,7 +8,7 @@ if os.path.exists("README.md"):
8
8
 
9
9
  setup(
10
10
  name="dashcode",
11
- version="1.3.0",
11
+ version="1.3.1",
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
File without changes