I have since uploaded examples of both the dirt logic and a rudimentary enemy AI here, to give you an idea of what you would be workiing with.
https://itch.io/embed/3873821