<?php

$GLOBALS["uri_root"] = "/v";
$GLOBALS["system_root"] = ".";
require_once implode(DIRECTORY_SEPARATOR,
                    array($GLOBALS["system_root"], "src", "util.php"));

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">

  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <?php print_script_tag() ?>
    <title>Video Games</title>
    <?php print_link_tag("favicon.ico", "shortcut icon") ?>
    <?php print_link_tag("img/suPERA_Pantase.png", "image_src") ?>
    <?php print_link_tag("style.css", "stylesheet", "text/css") ?>
    <link rel="alternate" type="application/rss+xml" title="Alpha Omega in" 
          href="/feed.rss" />
  </head>

  <body>

    <!-- <?php print_r($_SERVER); ?> -->

    <div id="main">

      <div id="heading">

	<div id="syntax">
	  <?php include_syntax() ?>
	</div>

	<div class="title">
	  <div id="center">
            <a href="/">
	      <?php
                $ip = build_random_ip_address();
                print_l($ip);
              ?>
            </a>
	  </div>
	  <div id="left">
	    <?php print_l($ip); ?>
	  </div>
	  <div id="right">
	    <?php print_l($ip); ?>
	  </div>
	</div>
	<div class="title">
	  <div id="center">
            <a href="/">
	      <?php print_l($ip); ?>
            </a>
	  </div>
	  <div id="left">
	    <?php print_l($ip); ?>
	  </div>
	  <div id="right">
	    <?php print_l($ip); ?>
	  </div>
	</div>
	<div class="title">
	  <div id="center">
            <a href="/">
	      <?php print_l($ip); ?>
            </a>
	  </div>
	  <div id="left">
	    <?php print_l($ip); ?>
	  </div>
	  <div id="right">
	    <?php print_l($ip); ?>
	  </div>
	</div>

      </div>

      <div id="links">

	<div class="scanner">
	  <?php print_scanner_animation() ?>
	</div>

	<div id="menu">
	  <?php print_structures() ?>
	  <div>
	    <span class="heading">GAMES</span>
	    <a href="/games/esp/">E.S.P. Hadouken</a>
	    <a href="/games/evr/">Emoticon Vs. Rainbow</a>
	    <a href="/games/ong/">Ong</a>
	  </div>
	  <div>
	    <span class="heading">MUSIC</span>
	    <a href="/mix/1shot">One Shot</a>
	    <a href="/mix/grille">Grille</a>
	    <a href="/mix/space_dad">Space Dad</a>
	  </div>
	  <div>
	    <span class="heading">ETC.</span>
	    <a href="/visual/biolograms">Biolograms</a>
            <a href="/visual/portal">Portal</a>
	  </div>
	</div>

	<div class="scanner">
	  <?php print_scanner_animation() ?>
	</div>

      </div>

      <?php print_divider(); ?>

      <div id="log">
        <?php print_articles(); ?>
      </div>

      <div id="rss">
        <div>
          <?php print_rss_button_images(); ?>
        </div>
        <a href="/feed.rss">↠ RSS Feed ↞</a>
      </div>

      <!-- <table id="badge"> -->
      <!--   <tr> -->
      <!--     <td> -->
      <!--       <a href="http://kernel.org"><?php print_image_tag("img/badges/linux.png", "badge", "", false); ?></a> -->
      <!--     </td> -->
      <!--     <td> -->
      <!--       <a href="http://apache.org"><?php print_image_tag("img/badges/apache.png", "badge", "", false); ?></a> -->
      <!--     </td> -->
      <!--     <td> -->
      <!--       <a href="http://debian.org"><?php print_image_tag("img/badges/debian.png", "badge", "", false); ?></a> -->
      <!--     </td> -->
      <!--     <td> -->
      <!--       <a href="http://python.org"><?php print_image_tag("img/badges/python.png", "badge", "", false); ?></a> -->
      <!--     </td> -->
      <!--     <td> -->
      <!--       <a href="http://www.gnu.org/software/emacs/"><?php print_image_tag("img/badges/emacs.png", "badge", "", false); ?></a> -->
      <!--     </td> -->
      <!--     <td> -->
      <!--       <a href="http://gimp.org"><?php print_image_tag("img/badges/gimp.png", "badge", "", false); ?></a> -->
      <!--     </td> -->
      <!--   </tr> -->
      <!-- </table> -->

    </div>

  </body>

</html>
A_O.Syntax = function()
{
    this.loadElements();
    this.scroll();
}

A_O.Syntax.prototype.loadElements = function()
{
    var original = document.getElementById("syntax");
    original.style.top = A_O.build_px(0);
    this.height= original.offsetHeight;
    this.parent = original.parentNode;
    this.original = original;
    this.duplicate();
}

A_O.Syntax.prototype.duplicate = function()
{
    var clone = this.original.cloneNode(true);
    this.parent.appendChild(clone);
    this.clone = clone;
    this.jump();
}

A_O.Syntax.prototype.jump = function()
{
    var original = this.original;
    var height = this.height;
    var top = parseInt(original.style.top);
    var overflow = top + height;
    var place = overflow < 0 ? overflow : 0;
    original.style.top = A_O.build_px(place);
    this.clone.style.top = A_O.build_px(place + height);
}

A_O.Syntax.prototype.scroll = function()
{
    var current = this;
    window.setInterval(
	function()
	{
	    current.step();
	}, SYNTAX_SCROLL_INTERVAL);
}

A_O.Syntax.prototype.step = function()
{
    var step = SYNTAX_SCROLL_STEP;
    var original = this.original;
    var clone = this.clone;
    var o_top = parseInt(original.style.top) - step;
    var c_top = parseInt(clone.style.top) - step;
    original.style.top = A_O.build_px(o_top);
    clone.style.top = A_O.build_px(c_top);
    if (c_top < 0)
    {
	this.jump();
    }
}
34.236.192.4
34.236.192.4
34.236.192.4
 
August 12, 2013

I've been researching tartan/plaid recently for decoration in my updated version of Ball & Cup, now called Send. I want to create the atmosphere of a sports event, so I plan on drawing tartan patterns at the vertical edges of the screen as backgrounds for areas where spectator ants generate based on player performance. I figured I would make my own patterns, but after browsing tartans available in the official register, I decided to use existing ones instead.

I made a list of the tartans that had what I thought were interesting titles and chose 30 to base the game's levels on. I sequenced them, using their titles to form a loose narrative related to the concept of sending. Here are three tartans in the sequence (levels 6, 7 and 8) generated by an algorithm I inferred by looking at examples that reads a tartan specification and draws its pattern using a simple dithering technique to blend the color stripes.


Acadia


Eve


Spice Apple

It would be wasting an opportunity if I didn't animate the tartans, so I'm thinking about animations for them. One effect I want to try is making them look like water washing over the area where the ants are spectating. I've also recorded some music for the game. Here are the loops for the game over and high scores screens.

Game Over

High Scores