This week I got multiple fish to work! I was happy to know that my code structure was correct, apart from the fact I was calling my fish instances in the wrong section.
I got my classes to work, I even created some inherited classes in order to have a shark and bird, I feel as though this made my work more immersive. I was really happy to discover that extending a class is really easy to do, so I made my shark bigger as I wanted it to be drawn larger than my fish images.



I wasn’t sure how to edit my bird class to fly in the sky rather than the water and at first I imported the whole moving class and remade it. I learned that I didn’t need to do this, I could just change the upper and lower height limits for the bird.
I also worked on making my code more readable, for instance, in the example pictured below I originally had to type out every individual method call for every animal instance. Now, I just need to edit an array in order to add the same methods to another instance.



seeing my animals on screen makes me very happy. I now feel like my webpage looks a lot better visually, as well as being more organised. I also turned my waves into a class, one wave instance displays all of these waves, as each individual horizontal wave line is placed. Having my classes in seperate files has made my lifebelowwater.tsx file a lot more readable.
