31 ตุลาคม 2556

.. Game Assignment 2 ..

.. Game Assignment 2 ..


Game Snoopy Processing.js code

Background Game


//// Background ////


Life & Button


////  Life & Button  ////


Draw Girl Style


//// Draw Girl Style ////


Draw Boy Stlye


//// Draw Boy Style ////


Draw Snoopy Style


//// Draw Snoopy Style ////


Racket -- snoopy


/////// ไม้เทนนิส ของ snoopy //////

void Snoopy_style


/////////// ตำแหน่งและท่า snoopy ////////////


void Boy_style


/////// ท่าตี Boy  //////


void Boy_moveBall


/////// เดินลูกบอลที่ ten1_Boy & ten2_Boy //////


void Girl_moveBall


/////// เดินลูกบอลที่ ten1_Girl & ten2_Girl //////

void hit_Girl

การตีโต้กลับของ Girl

void miss

miss and Game over

void random_Ball

สุ่มแนวการเดินลูกบอลที่ Boy ตี 


void draw

ฟังก์ชัน draw


keyPressed function

ฟังก์ชัน KeyPressed


ฟังก์ชันและตัวแปร

ใช้  29  Function  ดังนี้

29 ตุลาคม 2556

Assignment 2_BB

..# Assignment 2_BB #.. 
~ ~ Assignment 2_B ~

 
Assignment 2_B  Processing.js code


24 ตุลาคม 2556

Assignment 2_B

..# Assignment 2_B #.. 
~ ~ Assignment 2_B ~

 
Assignment 2_B  Processing.js code