วันพฤหัสบดีที่ 24 ตุลาคม พ.ศ. 2556

แก้ไขCOMMENT

ในส่วน Global Variable มีชื่อตัวแปรที่ไม่สื่อความหมาย ซึ่งคอมเม้นไว้ด้านหลังตัวแปรแล้ว int x=-100; //ชื่อตัวแปรไม่สื่อความหมาย //ค่าที่ใช้บอกตำแหน่งในแกน x int r_smooth = 80; //rคืออะไร ไม่สื่อความหมาย // r ย่อมาจาก radius คือรัศมีของปุ่ม smooth ที่ใช้กดในขั้นตอนการเล่น แก้เป็น r_smooth_button int r_step = 80; //rคืออะไร ไม่สื่อความหมาย // r คือ รัศมีของปุ่ม step ที่ใช้กดในขั้นตอนการเล่น แก้เป็น r_smooth_button int x_butt=0; //ชื่อตัวแปรไม่สื่อความหมาย // ชัดเจนว่าเป็นตำแหน่งในแกน x ของปุ่ม int chk_SMOOTH=0; int chk_STEP=0; int a, b, g; //ชื่อตัวแปรไม่สื่อความหมาย // โค้ดสีของ ฟังก์ชั่น startpage แก้เป็น r,g,b ตามหลักแม่สี float dx, dy, total; //ชื่อตัวแปรไม่สื่อความหมาย int highscore; int c = 90; //ชื่อตัวแปรไม่สื่อความหมาย// chk_fallareatop int c1 = 90; //ชื่อตัวแปรไม่สื่อความหมาย//chk_fallareabottom int j = 0; //ชื่อตัวแปรไม่สื่อความหมาย//startbutton_state int j1 = 0; //ชื่อตัวแปรไม่สื่อความหมาย//tryagainbutton_state int inc = 1; //ชื่อตัวแปรไม่สื่อความหมาย//carrymove int count = 0; //countของฟังก์ชั่นไหน ระบุฟังก์ชั่นด้วย//count_score int rounds = 1; int s = 0; //ชื่อตัวแปรไม่สื่อความหมาย // carry_number int d =50; //ชื่อตัวแปรไม่สื่อความหมา //speed int k = 320; //ชื่อตัวแปรไม่สื่อความหมาย // x_start_button int k1 = 50; //ชื่อตัวแปรไม่สื่อความหมาย // y_start_button int ytop = 125; //ชื่อตัวแปรไม่สื่อความหมาย// y_moveman_top int xtop = -100; //ชื่อตัวแปรไม่สื่อความหมาย //x_moveman_top int xbot = 470; //ชื่อตัวแปรไม่สื่อความหมาย // x_moveman_bottom int ybot = 275; //ชื่อตัวแปรไม่สื่อความหมาย//y_moveman_bottom

ไม่มีความคิดเห็น:

แสดงความคิดเห็น