Object Dancer

Title: Ghost Dance

Link

This project is of a little ghost that dances by moving its arms and bone legs while also floating up and down. 

A part of this code that was difficult for me was trying to get the arms to move up and down and the legs to move in and out. This is where I was helped by the code that a fellow student Annie shared to the Slack gallery. (Devil Likes to Dance by Annie 1019) Their idea was to add an if conditional that counts frames and an else condition that returns the limbs to their original place. 

if ((frameCount / 15) % 3 < 1){ 

} else {}

The benefit of a class not relying on code outside its own definition is that you can list many conditionals and definitions and only call the necessary information to the draw function. This creates much more organized code. 

This project is challenging because it is contained to a much smaller space while also having to be capable of similar motion as everyone else. This is especially true when the other object dancers are unknown. 

The modularity of this project is shown through the display and update. This breaks down the problem of image creation into much smaller pieces that are easier to manipulate. Reusability is also shown with these pieces. Each aspect of the code can be called on in the draw function and be reused to create effects like replicating my object and making them move as a group, or differently. 

Leave a Reply

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