Alice Community  

Go Back   Alice Community > General Discussion > The Lounge

Thread Tools Display Modes
Labs 3 and 4
Status: Offline
Posts: 18
Join Date: Dec 2015
Exclamation Labs 3 and 4 - 01-04-2016, 11:47 AM

Lab 3 was a bit difficult, but not bad. I used one torus shape that would move from the top left corner, over a random number (within the confines of the camera), then down to the ground. It would then be set to not showing, move back to the starting position using a dummy, set to showing, and fall again. I did not have a visible counter, but once 10 rings were caught 3D letters came down that said "You WIN" and the torus would stop falling.

When I started Lab 4, I had to start from scratch essentially. I needed multiple torus objects, and since we were supposed to work with arrays, my "torus.fall" method wouldn't work anymore. This assignment wasn't necessarily more difficult, it was simply more time consuming. I decided the best plan would be for me to create the world one step at a time, so that I would know when I broke something. For instance, I created all of the torus objects, and had them all fall one after another. Then I had them all fall and then all reset. Then tried to make them move at different times. This worked as planned, because pretty much every time I tried to add a new element, something would break and I'd have to find the problem. Had I built every requirement into the program from the beginning I probably would have broken my computer in frustration trying to find all the bugs!

Although the program works how it is supposed to, I used a lot of code to make it so. The code also seems repetitive, but its repeating code on different objects. I'm not sure if I fell into the pitfall of lots of code = missing the easier way, or if this program simply required it.

While the other assignments each took a couple hours for me to be satisfied, I worked on Lab 4 for an entire day, took a break for the night, and then managed to tweak it the next day until I was happy. This was a commitment!
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.