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?
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment