CodeSaya
Utama
Belajar
Kelas
Artikel
Komunitas
Diskusi
Grup
Akun
Daftar
Masuk
Panduan
Daftar jawaban dari Alif_Ilyasa
Kembali ke
profil Alif_Ilyasa
var layWidth,layHeight,startWidth,startHeight;
- 19 Okt. 2016, 16:54:27
var img = new Image(); img.src = "js/game/box.png";
- 19 Okt. 2016, 16:55:02
var box = function(dirx) { this.x = dirx; this.c = master.canvas; this.ctx = master.canvas.getContext("2d"); this.display = function(){ this.ctx.drawImage(img, this.x, 10); }; };
- 19 Okt. 2016, 16:55:11
var boxes = new Array();
- 19 Okt. 2016, 16:55:19
function startgame() { master.start(); gameInit(); build(); boxes[0].display(); }
- 19 Okt. 2016, 16:55:26
var layout = new Array();
- 19 Okt. 2016, 16:55:45
var gameInit = function(){ layWidth = devWidth * (82/100); startWidth = (devWidth - layWidth) / 2; };
- 19 Okt. 2016, 16:56:05
var base = function(dirx){ this.x = dirx; };
- 19 Okt. 2016, 16:56:13
var build = function(){ layout[0] = new base(startWidth); boxes[0] = new box(layout[0].x); };
- 19 Okt. 2016, 16:56:21
var count;
- 19 Okt. 2016, 16:56:29
var master = { canvas : document.getElementById("master"), start : function() { this.canvas.width = devWidth; this.canvas.height = devHeight; this.context = this.canvas.getContext("2d"); docu...
- 19 Okt. 2016, 16:56:40
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ var devWidth = document.documentElement.clie...
- 19 Okt. 2016, 16:57:08
var devwidth = document.documentElement.clientWidth; var devheight = document.documentElement.clientHeight; var laywidth, layheight; var startWidth, startHeight; var img = new Image(); document.getElementById("box").hidden = tru...
- 19 Okt. 2016, 16:58:24
sopo ???
- 19 Okt. 2016, 16:59:23
wt opo ui ? ? ?? ? ? ? ? ?
- 22 Okt. 2016, 10:43:05
var toMoveGlobal = function(){ var getOb1 = Math.floor(Math.random() * count - 1); var getOb2; do{ getOb2 = Math.floor(Math.random() * count - 1); }while(getOb1 === getOb2); var timeDeltaMove = setInte...
- 22 Okt. 2016, 10:43:42
ayo diskusi java wae
- 22 Okt. 2016, 10:44:17
valSquare -= 1; valFold += valSquare; for(val = 0; val < boxes.length; val++ ){ boxes[val].reveal(valFold); } }else{ valSquare += 1; ...
- 22 Okt. 2016, 10:44:30
function restart(){ keylisten(); getinfo(); snack.restart(); addbodi(); } //game master
- 22 Okt. 2016, 10:44:58
function startGame() { document.getElementById("snake").style.backgroundColor = "#aec9d0"; keylisten(); getinfo(); snake.start(); addbodi(); getc(); }
- 22 Okt. 2016, 10:45:14
sebelumnya
-
berikutnya