i have modified my code to limit the amount of moths that can be created, this way i can automate some other functions I want to implement such as the light turning of (day to night) being an automatic process on "moths created = x" and also the opposite, night to day, on "moths destroyed = x".
have also randomised the velocity of moths on creation, makes it a bit more natural.
No comments:
Post a Comment