It may not look like it
But this took all week, and it looks very good in-program. There's no time for a game. All I've got is water simulation.
If anyone ever actually reads this, I developed some really useful re-usable code.
A back-buffer abstraction you can activate using
with backbuffer:
And a GLSL shader uniform parameter provider you can activate using
with UniformProvider(shader_obj, param=value,param2=value2, sampler=pygletTexture):
I made useful and cool things but no game :( Maybe inspiration will hit me sometime about how to make water pressure into a game, but I've been so focused on making it work, I haven't even begun to think of game ideas.

(log in to comment)
If you can't help me that's totally fine. I might just mark DNW but I hope you don't take it as criticism. I know it's not your fault that they make it so hard.
Traceback (most recent call last):
File "main.py", line 10, in <module>
main(*sys.argv[1:])
File "main.py", line 5, in main
game=GameWindow(1280, 960, image_file)
File "/tmpfs/ws/gameplay/Windows.py", line 17, in __init__
self.activeScreen=WaveStopperGame(starting_image, self.window)
File "/tmpfs/ws/gameplay/Game.py", line 66, in __init__
self.setup_initial_frame()
File "/tmpfs/ws/gameplay/Game.py", line 78, in setup_initial_frame
with UniformProvider(fire_and_forget, intexture=self.start_texture, targetColor=material.color,colorTolerance=0.1, initialStatusColors=material.initialState):
File "/tmpfs/ws/GLUtil/UniformProvider.py", line 93, in __enter__
self.SupplyValues()
File "/tmpfs/ws/GLUtil/UniformProvider.py", line 30, in SupplyValues
self.invokeSetter(location,value)
File "/tmpfs/ws/GLUtil/UniformProvider.py", line 45, in invokeSetter
gl.glUniform1i(location,self._currentTextureLocation)
File "/tmpfs/venv3.6/lib/python3.6/site-packages/pyglet/gl/lib.py", line 105, in errcheck
raise GLException(msg)
pyglet.gl.lib.GLException: b'invalid operation'