NOC#W10 – Penguin Hunt🐧

• Project: Penguin Hunt🐧

• Process

1. I used GUI to control the number of penguins.  However, the previous penguins will be totally cleared. But if I deleted “penguins = [];” in Line 19 , the penguins would be only increased. How can I change the number based on existing penguins?

 

2. I inserted the image of penguins and changed the size to an appropriate scale.

3. I added a wandering system as fish. But the number seemed to be too large.  

 

4. I added mouse interaction.

5. I limited the number of fish. (Final Version)

6. I found a certain position where the penguins can move in a circular pattern.

 

• Reflection/ Lesson-learned

I learned how to let objects rotate according to its direction through “heading”. It helped a lot. I want to explore more about how lifespan can be employed in this project in the future. Also, I think it can be improved that the fish can be eaten by the penguins when they touched the boundaries but I haven’t figured out a way to realize it currently.

Leave a Reply

Your email address will not be published. Required fields are marked *