INNER CODE UNIT · JavaScript

zoomOut

lucky-sideburn/kubeinvaders · html/js/game_console.js:34

function zoomOut() {
  if (document.getElementById("myCanvas").width > 720) {
    document.getElementById("myCanvas").width = 720;
    document.getElementById("myCanvas").height = 480;
    document.getElementById("gameContainer").style.width = "50%"
    document.getElementById("gameContainer").style.height = "50%"
    // document.getElementById("zoomInGameScreenInput").disabled = false;
    // document.getElementById("zoomOutGameScreenInput").disabled = true;
    document.getElementById("loadButtonGroup").style.width = "900px";
    maxAliensPerRow = 12;
    myMainChaosMetrics.resize();
    startYforHelp = 400;
  }
}

function controlAutoPilot() {
  if (autoPilot) {
    autoPilot = false;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…