- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
p0=0;
p1=0;
inn=0;
out=0;
nx=0;ny=0;wh=0;wy=0;
function rand(min, max)
{
return Math.random() * (max - min) + min;
}
function in_fld() {
rere();
}
function rere() {
var ctx = document.getElementById('field').getContext('2d');
var fimg = new Image();
fimg.onload = function(){
ctx.drawImage(fimg,0,0);
ctx.stroke();
}
fimg.src = 'images/field.png';
var bimg = new Image();
bimg.onload = function(){
ctx.drawImage(bimg,ps,n_y(),g_h()/2,g_h());
ctx.stroke();
}
bimg.src = 'images/b_b.png';
ps+=30;
if (ps>=gmx()) {
l+=1;
if (l>3) l=1;
ps=n_x();
if (l==3) {
shoots = Array(0,0,0,0,0,0,0,0,0,0);
used=Array(0,0,0,0,0);
sht((lap-1)%2,0);
shooting(0,0);
document.getElementById('field').addEventListener('mousemove', field_mm, false);
document.getElementById('field').addEventListener('mousedown', field_md, false);
stop=-1;
}
}
if (stop==1) setTimeout('rere()',40);
}
function n_x() {
switch (l) {
case 1:
return 15;
break;
case 2:
return 15;
break;
case 3:
return 200;
}
}
function n_y() {
switch (l) {
case 1:
return 350;
break;
case 2:
return 490;
break;
case 3:
return 590;
}
}
Lure Of Chaos 06.02.2011 19:24 # 0
istem 07.02.2011 00:51 # 0
guest 07.02.2011 13:25 # 0
koodeer 07.02.2011 16:30 # 0
striker