EVR.include("level/road/racer/flash/Strip.js");

EVR.Level.Road.Racer.Flash = function(racer)
{
   this.racer = racer;
   this.milestone_difference = FLASH_MILESTONE_DIFFERENCE;
   this.active_frequency = 0;
   this.last_streak = 0;
   // this.strip = new EVR.Level.Road.Racer.Flash.Strip(this);
}

EVR.Level.Road.Racer.Flash.prototype.update = function(streak)
{
   // var streak = parseInt(this.racer.level.streak);
   // var difference = Math.abs(streak - this.last_streak);
   // if (difference >= this.milestone_difference)
   // {
   //    this.setActiveLevel(streak);
   //    this.displayLevel();
   //    this.last_streak = streak;
   // }
}

EVR.Level.Road.Racer.Flash.prototype.setActiveLevel = function(streak)
{
   // var milestone = parseInt(streak/this.milestone_difference);
   // if (milestone < FLASH_FREQUENCIES)
   // {
   //    this.active_level = milestone;
   // }
}

EVR.Level.Road.Racer.Flash.prototype.displayLevel = function()
{
   // this.strip.slide(this.active_level);
}

EVR.Level.Road.Racer.Flash.prototype.draw = function()
{
   // this.strip.draw();
}
EVR.Level.Road.Racer.Flash.Level = function(flash, index)
{
   EVR.Graphic.call(this, flash.racer.avatar);
   this.flash = flash;
   this.index = index;
   this.animations_path = FLASH_ANIMATIONS_PATH;
   this.setAttributes();
   this.setImage();
   this.append();
   this.hide();
}
EVR.Level.Road.Racer.Flash.Level.prototype = new EVR.Graphic;
EVR.Level.Road.Racer.Flash.Level.prototype.setAttributes = function()
{
   this.set_proportions(1, 1);
   this.set_opacity(FLASH_OPACITY);
}
EVR.Level.Road.Racer.Flash.Level.prototype.setImage = function()
{
   var element = document.createElement("img");
   element.src = this.buildAnimationPath();
   element.style.width = "100%";
   element.style.height = "100%";
   this.element.appendChild(element);
}
EVR.Level.Road.Racer.Flash.Level.prototype.buildAnimationPath = function()
{
   return this.animations_path + (this.index + 1) + ".gif";
}
EVR.Level.Road.Racer.Flash.Level.prototype.show = function()
{
   this.css.visibility = "";
}
EVR.Level.Road.Racer.Flash.Level.prototype.hide = function()
{
   this.css.visibility = "hidden";
}
<?php
$GLOBALS["RELATIVE_IMAGE_DIRECTORY_PATH"] = "img/";
$GLOBALS["RELATIVE_IMAGE_CACHE_PATH"] = "flash/cache/";
$GLOBALS["IMAGE_FILE_FORMAT"] = "gif";
$GLOBALS["FLASH_COLORS"] = array("red", "green", "blue");
$GLOBALS["MIN_FREQUENCY"] = 10;
create_strip();
function create_strip()
{
   $height = $_GET["height"];
   $frequencies = $_GET["frequencies"];
   $image = build_strip($height, $frequencies);
   $file_name = save_image($image);
   echo $file_name;
}
function build_strip($height, $cell_count)
{
   $image = new Imagick();
   $min_frequency = $GLOBALS["MIN_FREQUENCY"];
   $palette = $GLOBALS["FLASH_COLORS"];
   $palette_count = count($palette);
   $frame_count = pow(2, $cell_count - 1) * $palette_count;
   $draw = new ImagickDraw();
   for ($frame_index = 0; $frame_index < $frame_count; $frame_index++)
   {
      $image->newImage($height * $cell_count, $height, "none");
      $x = 0;
      for ($cell_index = $cell_count - 2; $cell_index >= 0; $cell_index--)
      {
         $palette_index = ($frame_index / pow(2, $cell_index)) % $palette_count;
         $color = $palette[$palette_index];
         $x += $height;
         $draw->setFillColor($color);
         $draw->rectangle($x, 0, $x + $height, $height);
         $image->drawImage($draw);
         $image->setImageDelay($min_frequency);
      }
   }
   $image->setImageFormat($GLOBALS["IMAGE_FILE_FORMAT"]);
   return $image;
}
function save_image($image)
{
   go_to_save_path();
   $index = find_available_image_index();
   $file_name = build_file_name($index);
   $image->writeImages($file_name, true);
   return $file_name;
}
function go_to_save_path()
{
   go_to_image_directory();
   go_to_cache_directory();
}
function go_to_image_directory()
{
   $path = $GLOBALS["RELATIVE_IMAGE_DIRECTORY_PATH"];
   while (!is_dir($path))
   {
      chdir("..");
   }
   chdir($path);
}
function go_to_cache_directory()
{
   $path = $GLOBALS["RELATIVE_IMAGE_CACHE_PATH"];
   if (!is_dir($path))
   {
      $dirs = explode("/", $path);
      foreach ($dirs as $dir)
      {
         if ($dir != "")
         {
            mkdir($dir, 0770);
            chdir($dir);
         }
      }
   }
   else
   {
      chdir($path);
   }
}
function find_available_image_index()
{
   $index = 0;
   while (count(glob(++$index . "_*")));
   return $index;
}
function build_file_name($index)
{
   return $index . "_" . time() . "." . $GLOBALS["IMAGE_FILE_FORMAT"];
}
<?php
chdir("../../../../../../../../img/flash/animations/");
$files = glob("*.gif");
echo count($files);
EVR.Level.Road.Racer.Flash.Strip = function(flash)
{
   EVR.Graphic.call(this, flash.racer.avatar);
   this.index = 0;
   this.step = null;
   this.current_cache_index = null;
   this.setAttributes();
   this.append();
}
EVR.Level.Road.Racer.Flash.Strip.prototype = new EVR.Graphic;
EVR.Level.Road.Racer.Flash.Strip.prototype.setAttributes = function()
{
   this.set_proportions(1, 1);
   this.set_opacity(FLASH_OPACITY);
   this.css.backgroundAttachment = "fixed";
}
EVR.Level.Road.Racer.Flash.Strip.prototype.setStep = function()
{
   this.step = -this.container.get_dimensions()[0];
}
EVR.Level.Road.Racer.Flash.Strip.prototype.draw = function()
{
   EVR.Graphic.prototype.draw.call(this);
   if (this.container.get_dimensions()[0] != -this.step)
   {
      this.removeCachedStrip();
      this.setStep();
      this.setBackground();
      this.slide(this.index);
   }
}
EVR.Level.Road.Racer.Flash.Strip.prototype.removeCachedStrip = function()
{
   var index = this.current_cache_index;
   if (index)
   {
      var script = this.buildPathToSelf() + "remove_cached_strip.php";
      var query = "index=" + index;
      new EVR.Requester(script, query, true).execute();
   }
}
EVR.Level.Road.Racer.Flash.Strip.prototype.buildPathToSelf = function()
{
   return SOURCE_PATH + "level/road/racer/flash/";
}
EVR.Level.Road.Racer.Flash.Strip.prototype.setBackground = function()
{
   var script = this.buildPathToSelf() + "create_strip.php";
   var query = "height=" + -this.step + "&frequencies=" + FLASH_FREQUENCIES;
   var file_name = new EVR.Requester(script, query, true).execute();
   var path = "img/flash/cache/" + file_name;
   var cache_index = parseInt(file_name.split("_")[0]);
   this.css.background = "url('" + path + "')";
   this.current_cache_index = cache_index;
}
EVR.Level.Road.Racer.Flash.Strip.prototype.slide = function(index)
{
   this.css.backgroundPosition = index * this.step + "px 0";
   this.index = index;
}
EVR.Level.Road.Racer.Flash.Strip.prototype.toString = function()
{
   return "[object EVR.Level.Road.Racer.Flash.Strip]";
}
18.191.125.107
18.191.125.107
18.191.125.107
 
May 17, 2018

Line Wobbler Advance is a demake of Line Wobbler for Game Boy Advance that started as a demo for Synchrony. It contains remakes of the original Line Wobbler levels and adds a challenging advance mode with levels made by various designers.


f1. Wobble at home or on-the-go with Line Wobbler Advance

This project was originally meant to be a port of Line Wobbler and kind of a joke (demaking a game made for even lower level hardware), but once the original levels were complete, a few elements were added, including a timer, different line styles and new core mechanics, such as reactive A.I.


f2. Notes on Line Wobbler

I reverse engineered the game by mapping the LED strip on paper and taking notes on each level. Many elements of the game are perfectly translated, such as enemy and lava positions and speeds and the sizes of the streams. The boss spawns enemies at precisely the same rate in both versions. Thanks in part to this effort, Line Wobbler Advance was awarded first prize in the Wild category at Synchrony.


f3. First prize at Synchrony

Advance mode is a series of levels by different designers implementing their visions of the Line Wobbler universe. This is the part of the game that got the most attention. It turned into a twitchy gauntlet filled with variations on the core mechanics, cinematic interludes and new elements, such as enemies that react to the character's movements. Most of the levels are much harder than the originals and require a lot of retries.

Thanks Robin Baumgarten for giving permission to make custom levels and share this project, and thanks to the advance mode designers Prashast Thapan, Charles Huang, John Rhee, Lillyan Ling, GJ Lee, Emily Koonce, Yuxin Gao, Brian Chung, Paloma Dawkins, Gus Boehling, Dennis Carr, Shuichi Aizawa, Blake Andrews and mushbuh!

DOWNLOAD ROM
You will need an emulator to play. Try Mednafen (Windows/Linux) or Boycott Advance (OS X)