Moving Objects
Challenges
At first I created the elements that would make up the game. I created the ocean, the Krill, Trash, Whale classes.
Because this is a prototype, I simply created different shapes and colors. For Trash I used a green Square, circle for Krill, rectangle for whale.
I envisioned that my whale would move up and down on the left
screen but I realized that it could be more fun if the whale could
move around freely. I translated my diagram into code by seeing what
properties and methods I needed. I realized that the diagram was very necessary
process because I got to get an overview of what elements I needed to include and organize classes.
In the future, I would like to make it so that the health of the whale can show up on the screen and make the game end once the whale
reaches poor health. When I tried to add this part, the whale started to move very fast as it ate more Krill. I'd like to dive
deeper and solve this issue.