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.
- {dashcode-1.3.0 → dashcode-1.3.1}/PKG-INFO +1 -1
- {dashcode-1.3.0 → dashcode-1.3.1}/dashcode/core.py +6 -5
- {dashcode-1.3.0 → dashcode-1.3.1}/dashcode.egg-info/PKG-INFO +1 -1
- {dashcode-1.3.0 → dashcode-1.3.1}/setup.py +1 -1
- {dashcode-1.3.0 → dashcode-1.3.1}/README.md +0 -0
- {dashcode-1.3.0 → dashcode-1.3.1}/dashcode/__init__.py +0 -0
- {dashcode-1.3.0 → dashcode-1.3.1}/dashcode.egg-info/SOURCES.txt +0 -0
- {dashcode-1.3.0 → dashcode-1.3.1}/dashcode.egg-info/dependency_links.txt +0 -0
- {dashcode-1.3.0 → dashcode-1.3.1}/dashcode.egg-info/top_level.txt +0 -0
- {dashcode-1.3.0 → dashcode-1.3.1}/setup.cfg +0 -0
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|