Monday, October 5, 2015

Week 2 Blog post #1 - starting off


In our class started off with the best change we would ever get which is that we wont be using Moodle and would now be using Google classrooms which was good news for many other students too as it had a nasty habit of deleting our submissions.

During our class we were assigned homework, which is due in a few hours via Google classroom that is to create a small game like brick breaker in order to practice a few things we had done in class, which are listed below.

-Use get axis to move the paddle
-Instantiate rows of bricks to break in random colors
-Destroy the gameobject on collision with the ball.

 Though these are not the exact requirements they do include all we have done in class and should suffice as they are going to require the same code .The only difference would be the concept of brick breaker and the other game is marble shooter .





















(Walter/codeproject, 2004)



My goal for the week is to complete this game and turn it in.
Update, Homework was submitted

I was able to meet all requirements  and had no major difficulties doing this game apart from the randomization of the color of the bricks that were instantiated .I would address this issue by asking my tutor on how to randomize the color every time they are instantiated.



The paddle uses input.getaxis to move left and right and is limited to move between certain units using - playerPos = new Vector3(Mathf.Clamp (xPos,-10,10),-9.5f,0f);
Mathf.clamp Clamps a value between a minimum float and maximum float value. It was used to make sure the paddle that holds the ball did not collide with the walls as they had a physics material attached to them that allowed for the ball to bounce within the walls .












References
Walter/codeproject. (2004, January 11). Retrieved from http://www.codeproject.com/Articles/5832/Super-Brick-Breaker-A-Simple-DirectDraw-Game





UPDATE ****
APA formatting added as of  Tuesday,october 27th 2015 
















No comments:

Post a Comment