Archive Browser
Download ScriptingHost-Jint3.zip, last updated 31/08/2020 (148.60 KB)
Download- md5: b024e3fc7125b05e7ec5eb5e5330f838
- sha1: ce3d14820a647e3eb4588bf606b97047464041e9
- sha256: d68e1b14e0da47d405e8cda8439a07ff45dff6adcdd992397fa190293e76edf6
if(confirm("SHALL WE PLAY A GAME?"))
{
var width = 64;
var height = 64;
var wWidth = 12;
var oWidth = 10;
var pWidth = 8;
var rWidth = 8;
var margin = 3;
var titleWidth = wWidth + oWidth + pWidth + rWidth + (margin * 3);
var textHeight = 10;
var textX = Math.round((width - titleWidth) / 2);
var textY = height - (textHeight + 10);
var boxX = textX;
var boxY = 10;
var boxW = titleWidth - 1;
var boxH = textY - (boxY + 10);
picture.width = width;
picture.height = height;
picture.lineColor = color.FromArgb(251, 251, 251);
picture.fillColor = color.FromArgb(124, 146, 124);
picture.clear();
picture.fillRectangle(boxX, boxY, boxW, boxH, color.FromArgb(51, 51, 51));
picture.drawLine(boxX, boxY, boxX + boxW, boxY, color.FromArgb(18, 18, 13));
picture.drawLine(boxX, boxY, boxX, boxY + boxH, color.FromArgb(41, 41, 32));
picture.drawLine(boxX, boxY + boxH, boxX + boxW, boxY + boxH, color.FromArgb(162, 159, 112));
picture.drawLine(boxX + boxW, boxY, boxX + boxW, boxY + boxH, color.FromArgb(18, 19, 16));
drawW(textX, textY);
textX += wWidth + 3;
drawO(textX, textY);
textX += oWidth + 3;
drawP(textX, textY);
textX += pWidth + 3;
drawR(textX, textY);
let title = prompt("LOGON:");
application.Title = title;
}
else
{
alert("STRANGE GAME");
application.Quit();
}
function drawW(x, y)
{
picture.drawLine(x , y , x , y + 3);
picture.drawLine(x + 1 , y , x + 1 , y + 6);
picture.drawLine(x + 2 , y + 4, x + 2 , y + 8);
picture.drawLine(x + 3 , y + 6, x + 3 , y + 8);
picture.drawLine(x + 4 , y + 1, x + 4 , y + 7);
picture.drawLine(x + 5 , y , x + 5 , y + 4);
picture.drawLine(x + 6 , y , x + 6 , y + 4);
picture.drawLine(x + 7 , y + 1, x + 7 , y + 7);
picture.drawLine(x + 8 , y + 6, x + 8 , y + 8);
picture.drawLine(x + 9 , y + 4, x + 9 , y + 8);
picture.drawLine(x + 10, y , x + 10, y + 6);
picture.drawLine(x + 11, y , x + 11, y + 3);
}
function drawO(x, y)
{
picture.drawLine(x, y + 3, x, y + 5);
picture.drawLine(x + 1, y + 1, x + 1, y + 7);
picture.drawLine(x + 2, y , x + 2, y + 8);
picture.drawLine(x + 3, y , x + 6, y );
picture.plot (x + 3, y + 1);
picture.plot (x + 6, y + 1);
picture.plot (x + 7, y + 7);
picture.plot (x + 3, y + 7);
picture.drawLine(x + 3, y + 8, x + 7, y + 8);
picture.drawLine(x + 7, y , x + 7, y + 2);
picture.drawLine(x + 8, y + 1, x + 8, y + 8);
picture.drawLine(x + 9, y + 2, x + 9, y + 6);
picture.drawLine(x + 4, y + 9, x + 6, y + 9);
}
function drawP(x, y)
{
picture.drawLine(x , y , x , y + 8);
picture.drawLine(x + 1, y , x + 1, y + 8);
picture.drawLine(x + 2, y , x + 5, y );
picture.drawLine(x + 2, y + 4, x + 5, y + 4);
picture.drawLine(x + 2, y + 5, x + 5, y + 5);
picture.plot (x + 5, y + 1);
picture.drawLine(x + 6, y , x + 6, y + 4);
picture.drawLine(x + 7, y + 1, x + 7, y + 3);
}
function drawR(x, y)
{
picture.drawLine(x , y , x , y + 8);
picture.drawLine(x + 1, y , x + 1, y + 8);
picture.drawLine(x + 2, y , x + 5, y );
picture.drawLine(x + 2, y + 4, x + 5, y + 4);
picture.drawLine(x + 2, y + 5, x + 5, y + 5);
picture.plot (x + 5, y + 1);
picture.drawLine(x + 6, y , x + 6, y + 8);
picture.plot (x + 5, y + 6);
picture.drawLine(x + 7, y + 1, x + 7, y + 3);
picture.drawLine(x + 7, y + 6, x + 7, y + 8);
}
Donate
This software may be used free of charge, but as with all free software there are costs involved to develop and maintain.
If this site or its services have saved you time, please consider a donation to help with running costs and timely updates.
Donate