Today, we continued working on our game- shooting ducks. We got the ducks moving, but how do we make the ball shoot only when we want it to? We figured a way to just move it when we shoot it, real big code for that. Just to make the ball go up and back down when we press left button on the mouse. Easier said than done.
Anyways, things I learned:
1) The smaller way of moving any object.
Arnav sir introduced us to the class 'transformer' which has the method 'VelocityTranformer' which we can use to move objects.
2) The method used to detect mouse clicks.
Same as before, Arnav sir introduced us to the method.
3) The symbols used like &&(and) and ||(or), etc.
We read some chapters in our book and in the introduction of if and else conditions, we were also taken a bit deeper where we can add more specific conditions using '&&' and '||'.
Questions I have:
None for today.
But I still don't remember everything I read in the book. So please don't take any quiz, I can remember some part of it, but my memory is not at all anything like the computers. More like RAM, it is all gone as soon as I am shut down.
Friday, May 21, 2010
5/21/2010- Friday
We finished our shooting game. We were shooting ducks, and I also put a level indicator as the ducks got faster and you got ten seconds to kill all the three ducks. Well, it's more fun when you play it, and even more when you make it and then play it.
Things I learned:
1) How to use 'for' loops.
I could have used that for this blog, so that I could get past for the word limit. I might not be able to write 500 words in 7 minutes. For loops are used to just keep on doing something as many times as you want it to.
2) How to make sprites in bunk
We used some trick I forgot the name of and instead of creating sprites created a group of sprites. Then, we used 'for' loop and kept on increasing the number of sprites according to our will.
3) How to wipe out a game after the timers up.
When the timer counts down, and the count reaches 0, something should happen. I used the 'cleanUp' tag to just clean up all the sprites on the screen. So, you'd better play good if you want to play long.
My questions:
1) What was the name of the method we used using '[]' after OvalSprite in 'private OvalSprite[] dots'?
2) What does '[]' stand for in it?
3) How do we get the game back in the starting point where when you press 'Start' the game starts after the timer's up?
P.S.: Arnav Sir, I don't exactly remember how much I know, but I know that I know those stuff. And in the limited time, I don't get enough time to think over what all I know or have learned. So, some things might not have been displayed at all. But I definitely remember what I have doubt in, and without any doubt, there are questions above on it.
P.S.(2): The P.S. is counted in the word limit.
Things I learned:
1) How to use 'for' loops.
I could have used that for this blog, so that I could get past for the word limit. I might not be able to write 500 words in 7 minutes. For loops are used to just keep on doing something as many times as you want it to.
2) How to make sprites in bunk
We used some trick I forgot the name of and instead of creating sprites created a group of sprites. Then, we used 'for' loop and kept on increasing the number of sprites according to our will.
3) How to wipe out a game after the timers up.
When the timer counts down, and the count reaches 0, something should happen. I used the 'cleanUp' tag to just clean up all the sprites on the screen. So, you'd better play good if you want to play long.
My questions:
1) What was the name of the method we used using '[]' after OvalSprite in 'private OvalSprite[] dots'?
2) What does '[]' stand for in it?
3) How do we get the game back in the starting point where when you press 'Start' the game starts after the timer's up?
P.S.: Arnav Sir, I don't exactly remember how much I know, but I know that I know those stuff. And in the limited time, I don't get enough time to think over what all I know or have learned. So, some things might not have been displayed at all. But I definitely remember what I have doubt in, and without any doubt, there are questions above on it.
P.S.(2): The P.S. is counted in the word limit.
Wednesday, May 19, 2010
5/19/2010- Wednesday
Today, we continued working on the challenge we got from Arnav sir to make the Ashoka Chakra. Then, we continued working on the ball, which we had created. Our challenge first was to make it move. After some time, Arnav sir told us how to get it to move, but we needed to figure out a way to make it 'bounce' back and forth, or else the ball would just go out of the screen. This activity took quite some time, and then we made our own class. We started by making a class for ducks, so that we don't have to make the same ducks again and again. Tomorrow, we would continue and make a game where we are supposed to shoot the moving ducks.
I learned how to make a class, and add methods to it, so that we could use it for our game. Also, I learned how we can add pictures in a game, and finally how to move objects and manipulate their movements.
Although I learned a lot from today's sessions, I have some questions. Firstly, why can't we keep an integer or double public? Why is it suggested to keep it private? Secondly, how do they create the screen savers where the balls hit each other and go somewhere else and keep on bumping and bouncing what seems randomly? Lastly, how high do we need to jump to evade the extra project?
I learned how to make a class, and add methods to it, so that we could use it for our game. Also, I learned how we can add pictures in a game, and finally how to move objects and manipulate their movements.
Although I learned a lot from today's sessions, I have some questions. Firstly, why can't we keep an integer or double public? Why is it suggested to keep it private? Secondly, how do they create the screen savers where the balls hit each other and go somewhere else and keep on bumping and bouncing what seems randomly? Lastly, how high do we need to jump to evade the extra project?
Tuesday, May 18, 2010
Rules for my card game
Rules for my Card Game.. .
*U need 3 pairs of playing card for this game which means 56*3=156 cards*
1) 2 Players
2)Both the players get 40 cards each.
3)There will be 20 hidden cards.
4)56 cards in the deck.
5)Players have to somehow manage to make trios of the same cards.
6)Each player gets an opportunity to draw cards from the deck correspondingly.
7)Players may draw a card from the deck. Players will have to keep a card in the deck 2 if they draw a card from the deck.
8)To draw a card from the hidden pile players need to discard a trio.
9)This way players have to manage to get rid of all the cards they have.
10)The one who is able to get rid of them earlier wins the game:)
Hope your gonna enjoy it.. :p
*U need 3 pairs of playing card for this game which means 56*3=156 cards*
1) 2 Players
2)Both the players get 40 cards each.
3)There will be 20 hidden cards.
4)56 cards in the deck.
5)Players have to somehow manage to make trios of the same cards.
6)Each player gets an opportunity to draw cards from the deck correspondingly.
7)Players may draw a card from the deck. Players will have to keep a card in the deck 2 if they draw a card from the deck.
8)To draw a card from the hidden pile players need to discard a trio.
9)This way players have to manage to get rid of all the cards they have.
10)The one who is able to get rid of them earlier wins the game:)
Hope your gonna enjoy it.. :p
5/18/2010- Tuesday
Today we made the Indian flag using Java, with help from Arnav sir till making the circle at the center, and then we were left on our own. A challenge given to us was to convert the center circle into the Ashoka Chakra with 24 spokes and the outline. Then we made a circle on the screen without any help, but with reference from our previous programs. There was a challenge here as well- to make the circle move to the left, then right, then left again and so on. I could get the spokes, but they were a bit too thin and the circle was there but no way to move it.
Today's sessions helped us learn how to find the different tags we use, especially methods and functions. Also, we improved our programming skills and now can write a small program with a sprite(that's what we call a 2D object on the screen). I also increased my vocabulary in Java, with a few more additions to the tags I already knew.
In every session we have here, we learn somethings, but we also have some doubts. Firstly, I would like to ask how are the 3D games created? Is it possible to create 3D objects on a screen using Java or do we need to use a totally different software for 3D games? Secondly, what tags are used for games where the computer has a decision-making role like in a fighting game, where the computer makes decisions to either block or strike or like in Chess and Tic Tac Toe? And lastly, how do they change the difficulty settings as we reach a new level or set the setting to Hard?
Today's sessions helped us learn how to find the different tags we use, especially methods and functions. Also, we improved our programming skills and now can write a small program with a sprite(that's what we call a 2D object on the screen). I also increased my vocabulary in Java, with a few more additions to the tags I already knew.
In every session we have here, we learn somethings, but we also have some doubts. Firstly, I would like to ask how are the 3D games created? Is it possible to create 3D objects on a screen using Java or do we need to use a totally different software for 3D games? Secondly, what tags are used for games where the computer has a decision-making role like in a fighting game, where the computer makes decisions to either block or strike or like in Chess and Tic Tac Toe? And lastly, how do they change the difficulty settings as we reach a new level or set the setting to Hard?
Monday, May 17, 2010
5/17/2010- Tic Tac Toe Story
During the evening study, we came up with a story for a Tic Tac Toe game. I thought of it as two groups of Mages or Magicians fighting from two sides. The Mages have the ability to channel energy, which can only be done when the mages are in a straight line, three in a row, forming a chain. The two groups of magicians are quickly taking positions to make the chain first and channel the energy and defeat their enemies, gaining control over the area. This goes on as a fight for supremacy between the two groups, and the group that conquers all the land will be the strongest.
5/17/2010- Monday
Today, we started our journey on learning a new language- Java. We were introduced to the language as any other language, may it be English, Hindi, Spanish or any other. Java serves the same purpose as any other language would, it helps us communicate our directions to the computer. Also, like any other language, Java too has a vocabulary and grammar. If you mess up with the punctuations, or the order of words, the computer won't get our intended message.
From today's session, I learned a bit about the syntax of Java, especially the punctuations. Also, I learned about the different tags that are used to convey different messages, some circumstantial like 'if' and 'else', some based on the properties of the objects, etc. We were using a software called "Eclipse" for programming, so I also learnt how to use this software. I hope to learn a lot more in the next three weeks.
Although I learned a lot, there are a few doubts and confusions in my mind. First and foremost- Why was Java even invented while there are already so many other languages like C and C++? Secondly, what is the difference between the different programming languages, and why was Java chosen for this course? Also, are all the games like for Nintendo V, X-Box, PS, etc. too made on Java, or there are other programming software available for that?
From today's session, I learned a bit about the syntax of Java, especially the punctuations. Also, I learned about the different tags that are used to convey different messages, some circumstantial like 'if' and 'else', some based on the properties of the objects, etc. We were using a software called "Eclipse" for programming, so I also learnt how to use this software. I hope to learn a lot more in the next three weeks.
Although I learned a lot, there are a few doubts and confusions in my mind. First and foremost- Why was Java even invented while there are already so many other languages like C and C++? Secondly, what is the difference between the different programming languages, and why was Java chosen for this course? Also, are all the games like for Nintendo V, X-Box, PS, etc. too made on Java, or there are other programming software available for that?
Subscribe to:
Posts (Atom)