Daftar jawaban dari Alif_Ilyasa

Kembali ke profil Alif_Ilyasa


  • function hide(){ document.getElementById("fom").hidden = true; document.getElementById("but").hidden= true; } - 22 Okt. 2016, 10:45:29
  • function ahide(){ document.getElementById("fom").hidden = false; document.getElementById("but").hidden= false; } - 22 Okt. 2016, 10:45:36
  • function getinfo(){ sise = document.getElementById("size").value; size = sise - 0; krono = document.getElementById("krono").value - 0; }; - 22 Okt. 2016, 10:45:45
  • var getkolor = function(kolloo){ var reset = function(){ for(i = 0; i <= 5;i++){ kollor[i].style.backgroundColor = "#cccccc"; } }; switch(kolloo){ case "rand": k... - 22 Okt. 2016, 10:46:06
  • var snake = { canvas : document.getElementById("snake"), start : function() { this.canvas.width = widthscrn; this.canvas.height = heightscrn; this.context = this.canvas.getContext("2d"); docu... - 22 Okt. 2016, 10:46:29
  • this.width = width; this.height = height; this.kolor = color; this.x = x; this.y = y; this.dirs; this.dirdelta; this.dir; this.update = function(){ ctx = snake.context; ct... - 22 Okt. 2016, 10:46:37
  • function food(){ var no = foods.length; foods[no] = new mkn(Math.floor((Math.random() * 3) + 1), Math.floor((Math.random() * widthscrn) + 1), Math.floor((Math.random() * heightscrn) + 1)); foods[no].update(); } - 22 Okt. 2016, 10:46:48
  • function food(){ var no = foods.length; foods[no] = new mkn(Math.floor((Math.random() * 3) + 1), Math.floor((Math.random() * widthscrn) + 1), Math.floor((Math.random() * heightscrn) + 1)); foods[no].update(); } - 22 Okt. 2016, 10:47:04
  • function food(){ var no = foods.length; foods[no] = new mkn(Math.floor((Math.random() * 3) + 1), Math.floor((Math.random() * widthscrn) + 1), Math.floor((Math.random() * heightscrn) + 1)); foods[no].update(); } - 22 Okt. 2016, 10:47:08
  • case 68: if(snack[0].dir !== 0){ if(snack[0].dirdelta !== 0){ snack[0].dir = 2; } } break; - 22 Okt. 2016, 10:50:28
  • kudu ono break - 22 Okt. 2016, 10:50:34
  • nekra ngko singg ngisore maledi jalankan - 22 Okt. 2016, 10:51:00
  • nggo deaflt - 22 Okt. 2016, 10:51:27
  • NAN = singkatan dari Not A Number - 22 Okt. 2016, 10:51:56
  • bisa terjadi bila anda mengoperasi variable yang berisi bukan number - 22 Okt. 2016, 10:52:38
  • contoh : var a = "asdasd" var b = a*2; print - 22 Okt. 2016, 10:53:18
  • maka akan menghasilakn NaN - 22 Okt. 2016, 10:53:30
  • //_________________________wanted for collison for(i = foods.length-1; i >= 0; i--){ if(snack[0].x === foods[i].x && snack[0].y === foods[i].y){ score += snack.length * 10; ... - 22 Okt. 2016, 10:56:18
  • function cscolid(){ for(i = 2; i < snack.length; i++ ){ if(snack[i].x === snack[0].x && snack[i].y === snack[0].y){ score -= (snack.length - i) * 10; tbod = snack.length - i; sna... - 22 Okt. 2016, 10:56:39
  • var upscr = function(){ score += 3; if(score >= hstscr){ hstscr = score; } }; - 22 Okt. 2016, 10:57:10