Link to live: https://starwu123.github.io/CClab/object-dancers/
In this project I had the idea to create a dance that would be performed from my hometown in Tieling. which is throwing Shouquan using your hands and I decided to use a capybara as the dancer wearing traditional clothing.
I first started by trying to recreate a capybara with simple circles and ellipses and using lines for its face.
Then I made two squares that had a starting angle offsetting by 45 degrees, rotating them to make them spin. I had to change the center circle to ellipses so it would look as if spinning.
Lastly I made the capybara move back and forth and throw the shouquan/squares up.
What is the benefit of your class not relying on any code outside of its own definition?
It makes the class easier to understand, fix, and use in other projects without needing extra code.
What make it challenging to write code that has to harmonize with the code other people have written?
Everyone writes code differently, so it can be hard to understand or connect your code with others.
Describe the terms modularity and reusability using the example of your dancer class.
Modularity means your dancer class is its own part that only controls the dancer. It’s easy to change without n messing up other parts.
Reusability means you can use the dancer class in other projects without changing it.