2016年3月17日 星期四

01160235_謝采玲, Week04

老師上課教學:

1. 射擊




class code







run code







practice rotate box

















draw 10 spheres follow to the finger_Index's dir












original sphere



















practice shooting bullet
bullet's declare







use for loop to give the original value to bullet and bullet_dir







draw 10 bullets







keyPressed's set up





2. 打棒球

practice judging if two things crash or not

 





draw box, follows to hand's position







ball's translation set up
draw sphere's translation







judge if ball crash box or not







run code






when sphere crash into box, window's color change to red






after crash

沒有留言:

張貼留言