Adventures in growing ... and cythonSo today I avoided the issue of gameplay by experimenting more with how the path appears on screen to the player ... how it grows.
I now have a rather pleasing (in my opinion) growth animation for the path and the branches off the path.
Try it out if you like: stalk-4.zip
(marked as a final upload just in case I don't get a chance to make another)
I ran into a problem where enough branches being grown drops the frame from a steady 60FPS to around 30FPS (on my MacBook). Not so pleasing.
I've optimised a few things with cython. The result is that I can now happily re-generate the path curves and vertices every frame and the FPS doesn't dip below 60.
Along with my own curve code I've implemented cython versions of the euclid module's Vector2 and Matrix3 (since my curve code uses those implementations for parameters and determining normals and the like).
(log in to comment)