Create template.js

master
sigonasr2 5 years ago committed by GitHub
parent f9a1a8b80c
commit 0cceb9b2aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 30
      template.js

@ -0,0 +1,30 @@
var canvas = document.getElementById("mainScreen");
var con = canvas.getContext("2d");
var ironplate = loadImage("ironplate.png");
setGameSpeed(60);
setBackgroundColor("black");
resetTransform();
/*
drawSetFont("20px Tahoma");
drawSetHAlign("left");
drawSetColor("#FFFFFF");
drawLine(0,0,50,50);
drawCircle(150,150,30);
drawText(256,64,"Hello World!");
drawSetColor("yellow");
drawRectangle(640,480,660,540,false);
*/
var gameObjs;
function onGameUpdate() {
setBackgroundColor("black");
}
window.onload = function() {
drawSpriteExt(320,400,ironplate,0.5,0.5);
}
Loading…
Cancel
Save