Monday, May 24, 2010

5/24/2010- Monday

Today, we started making another game- somewhat like billiards. Pretty complicated, and I am only talking about placing the balls. Just imagine, placing 15 balls on the screen, while placing them in an order that resembles an equilateral triangle. We had two options, either to write their locations in an array, or write down all of it manually for 300 balls (well, 285 more balls won't make such a difference now, would it?). I figured a way using three variables, and then Cole told me to make it in such a way that when I change one value, all the values change. Soon, from a three variable thingy it turned into a complex seven or eight variable thing. Arnav was using the Trignometry stuff (just flew over my head), very confusing with the gradients and circles, woah! Give me a break! Then Cole came and showed his method. He used some stupid formula in the end with us definitely having no clue what in the world did it mean. It didn't matter whether we knew what it meant, because it is not easy to do stuff when programming. So we used Cole's relatively tiny code and it worked. Also, when we change the value we assigned to the diameter of the balls, we could change the scale like easily. I mean, just change one number and the whole thing changes in the exact ratio. Also, we could add more rows to it by just changing a number. The rest just worked on it's own shifting itself or just doing what it does to form the alignment. We didn't complete the game because one of the fang library's functions wasn't working properly. And about the balls crashing and bumping, sorry, but we don't want to spend all the time we have got in searching for and making the balls bounce and then have no time to actually move forward.

Three things I learned:
1) No one can learn the entire list of functions in Java. It is way easier to just simply memorize a Webster's Dictionary.
2) All the subjects are related to programming. We had a macroeconomics class by Arnav today morning. We had some other classes on Game Theory, and other stuff too on some days.
3) Internet is the best tool to aid programming. Without the online API and all the data and formulas, forget programming, and rather sit at home and knit sweaters.

Three question i have:
1) Why does it have to be so hard to apply Physics in a Java game?
2) Who taught the computer what 'plus' or 'minus' meant and how to add or subtract?
3) How much time must it have taken for the programmers to program Counter Strike? (not including the time taken for art)
4) Why does Arnav joke so much? Why doesn't Cole joke as much as Arnav does? Or vice-versa?
5) What are there different games like snooker and billiards if there are only 5 more balls in snooker?
5) Why are we "making" board games?

No comments:

Post a Comment