It's crashing for me after a minute. Your code looks fine to me. It looks like it could be a bug in (my version of) pyglet:
File "run_game.py", line 17, in
main()
File "run_game.py", line 13, in main
pyglet.app.run()
File "/home/christopher/.local/lib/python3.6/site-packages/pyglet/app/__init__.py", line 107, in run
event_loop.run()
File "/home/christopher/.local/lib/python3.6/site-packages/pyglet/app/base.py", line 167, in run
timeout = self.idle()
File "/home/christopher/.local/lib/python3.6/site-packages/pyglet/app/base.py", line 237, in idle
redraw_all = self.clock.call_scheduled_functions(dt)
File "/home/christopher/.local/lib/python3.6/site-packages/pyglet/clock.py", line 255, in call_scheduled_functions
item.func(dt, *item.args, **item.kwargs)
File "/home/christopher/Downloads/pyweek-31/game.py", line 97, in update
character.searched_bar.height = 20 - character.percent_searched/5
File "/home/christopher/.local/lib/python3.6/site-packages/pyglet/shapes.py", line 648, in height
self._update_position()
File "/home/christopher/.local/lib/python3.6/site-packages/pyglet/shapes.py", line 619, in _update_position
self._vertex_list.vertices = (x1, y1, x2, y1, x2, y2, x1, y1, x2, y2, x1, y2)
AttributeError: 'NoneType' object has no attribute 'vertices'
I'll keep looking into it and post the solution if I can figure it out!
New release is up, no actual changes in content but I had to move one line of code up a few lines so...disqualify me if you have to. Thanks for your help Cosmologicon.
Cosmologicon on 2021/04/04 00:59:
It's crashing for me after a minute. Your code looks fine to me. It looks like it could be a bug in (my version of) pyglet:I'll keep looking into it and post the solution if I can figure it out!