Skip to content

Commit

Permalink
Fixes and stability
Browse files Browse the repository at this point in the history
  • Loading branch information
fuglaro committed Aug 2, 2022
1 parent 21d2f13 commit cafcf17
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Games/Umby&Glow/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def run_game():

# Memory clearing before relaxing gc and entering game loop
gc.collect()
gc.threshold(-1)
gc.threshold(20000)

# Main gameplay loop
savst = coop_px = pstat = pstat2 = ptot = pfps1 = pfps2 = 0
Expand Down
2 changes: 1 addition & 1 deletion Games/Umby&Glow/monsters.py
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ def _tick_hoot(self, t: int, i: int):
xs, ys = ptr32(self.x), ptr8(self.y)
x, y = xs[i], ys[i]-64
tr = (t+i*97)%200
tpx = int(tape.x[0])
tpx = int(self._tp.x[0])
if tr==0:
# Set new swoop location
data[ii], data[ii+1] = x, y
Expand Down
13 changes: 5 additions & 8 deletions Games/Umby&Glow/script.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
200, "^: Ummm... Umby?..."
0, "@: Yes Glow?..."
0, "^: What's that rumbling?"
0, "@: Whatever it is, its big..."
0, "@: Whatever it is, it's big..."
0, "@: and it's invaded the wrong cave!"
0, "^: Right. Lets rumble!"

Expand Down Expand Up @@ -112,8 +112,8 @@
0, "^: What are we going to do?"
0, "@: Keep blasting and get moving!"
0, "@: Theres a forest up ahead we can use for cover."
0, "^: Ok. Ive got your back."
0, "@: Lets roll..."
0, "^: Ok. I've got your back."
0, "@: Let's roll..."

70, ([pattern_cloudy_snowy_mountains,pattern_ferns,pattern_ferns_fill,pattern_cloudy_plains,pattern_fill],(bytearray(), bytearray()),0)
150, "CHAPTER~2: \n The_Forest"
Expand Down Expand Up @@ -145,7 +145,6 @@
# Forest monsters
180, ([pattern_tree_wall,pattern_mid_forest,pattern_mid_forest_fill,pattern_forest,pattern_forest_fill],(bytearray([Pillar, Hoot]), bytearray([30, 15])),0)


800, "@: Alright Glow..."
0, "@: Here's what I'm thinking..."
0, "^: I'm all ears, Umby!"
Expand Down Expand Up @@ -266,8 +265,6 @@
0, "@: I don't know how you see so well without eyes."
0, "^: There's just enough wiggle room to squeeze in!"

999, "CHAPTER~X: \n TEST_(TODO)"

# Create rocket and start countdown (moves +500 into distance automatically)
200, "Hurry!"
0, LeftDoor
Expand All @@ -289,8 +286,7 @@
1000, "CHAPTER~4: \n Among the Stars"



4400, "Ask fuglaro for more chapters"
400, "Ask fuglaro for more chapters"

################################################################
# Story WIP and Ideas
Expand Down Expand Up @@ -439,6 +435,7 @@
160, "Thank you for playing!"

# TODO: encore level with randomisation of all previous content
999, "CHAPTER~X: \n TEST_(TODO)"

4000000, "GOODBYE!"
100, StopIteration()

0 comments on commit cafcf17

Please sign in to comment.