APCG 180 Lecture Notes - Lecture 2: Computer-Aided Design

31 views1 pages

Document Summary

If (event. which == 32) && (playerturn%2 == 0)) Go to variation (var) and add in var playerturn = o; . Add in playerturn ++; at the end of player1 and player2 section: If (event. which == 32) fillrectangle (10,50,200,30,"white"); gr. drawtext ( player 1 score + score2, new jspoint(10,90), black"); playerturn ++; here. Prevents? else player2_color); jspoint(10,90),"black"); fillrectangle (10,90,200,30,"white"); gr. drawtext ( player 2 score + score2, new if (event. which == 13) Score2 += throwdart (center_x, center_y, size, how_many_rings, playerturn ++; here. This adds onto more points when darts are thrown onto the dartboard.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers