EVR.include("level/summary/graph/Bar.js");
EVR.Level.Summary.Graph.Plot = function(graph, sets)
{
   this.graph = graph;
   this.sets = sets;
   this.plot();
}
EVR.Level.Summary.Graph.Plot.prototype.plot = function()
{
   var graph = this.graph;
   var sets = this.sets;
   var set, cell, bar, bars = [];
   for (var ii = 0; ii < sets[0].measurements.length; ii++)
   {
      for (var jj = 0; jj < sets.length; jj++)
      {
	 set = sets[jj];
	 measurement = set.measurements[ii];
	 cell = graph.insert_plot_cell(jj == sets.length - 1);
	 if (ii == 0 && jj == 0)
	 {
	    cell.style.paddingLeft = GRAPH_BAR_PADDING;
	 }
	 bar = new EVR.Level.Summary.Graph.Bar(this, cell, measurement, set);
	 cell.appendChild(bar.element);
	 bars.push(bar);
      }
   }
   this.bars = bars;
}
EVR.Level.Summary.Graph.Plot.prototype.draw = function()
{
   var bars = this.bars;
   for (var ii = 0; ii < bars.length; ii++)
   {
      bars[ii].draw();
   }
}
EVR.Level.Summary.Graph.Plot.prototype.toString = function()
{
   return "[object EVR.Level.Summary.Graph.Plot]";
}
EVR.Level.Summary.Graph.Bar = function(plot, cell, measurement, set)
{
   this.plot = plot;
   this.cell = cell;
   this.measurement = measurement;
   this.set = set;
   this.element = document.createElement("div");
   this.style();
   this.set_cell_height();
   this.set_height();
}
EVR.Level.Summary.Graph.Bar.prototype.style = function()
{
   var element = this.element;
   element.style.width = GRAPH_BAR_WIDTH;
   element.style.background = this.set.color;
   element.style.fontSize = "0px";
}
EVR.Level.Summary.Graph.Bar.prototype.set_cell_height = function()
{
   var height = GRAPH_PLOT_HEIGHT * this.plot.graph.field.get_dimensions()[1];
   this.cell_height = height;
   this.cell.style.height = height;
}
EVR.Level.Summary.Graph.Bar.prototype.set_height = function()
{
   var set = this.set;
   var worst = set.worst;
   var range = set.range;
   var difference = Math.abs(this.measurement - worst);
   var max = this.cell_height - GRAPH_PLOT_MARGIN;
   var min = GRAPH_MIN_BAR_HEIGHT;
   if (range == 0)
   {
      var height = max;
   }
   else
   {
      var height = ((max - min) * (difference / range)) + min;
   }
   this.element.style.height = height + "px";
}
EVR.Level.Summary.Graph.Bar.prototype.draw = function()
{
   this.set_cell_height();
   this.set_height();
}
EVR.Level.Summary.Graph.Bar.prototype.toString = function()
{
   return "[object EVR.Level.Summary.Graph.Bar]";
}
EVR.Level.Summary.Comparison.Model = function(comparison, color, text)
{
   this.field = comparison.field;
   this.color = color;
   this.text = text;
   this.cell = comparison.row.insertCell(-1);
   this.cell.style.textAlign = "center";
   this.cell.style.paddingLeft = MODEL_PADDING;
   this.add_model();
   this.add_heading();
   this.set_proportions();
}
EVR.Level.Summary.Comparison.Model.prototype.add_heading = function()
{
   var text = this.text;
   var family = MODEL_FONT_FAMILY;
   var color = MODEL_FONT_COLOR;
   var size = MODEL_HEADING_FONT_SIZE;
   var heading = new EVR.Text(this.cell, text, family, color, size, this.field);
   var style = heading.element.style;
   var border = MODEL_BORDER;
   style.borderRight = border;
   style.borderBottom = border;
   style.borderLeft = border;
   style.paddingTop = 1;
   style.background = MODEL_HEADING_BACKGROUND;
   style.letterSpacing = MODEL_HEADING_LETTER_SPACING;
   this.heading = heading;
}
EVR.Level.Summary.Comparison.Model.prototype.add_model = function()
{
   var model = document.createElement("div");
   var style = model.style;
   var border = MODEL_BORDER;
   style.background = this.color;
   style.borderTop = border;
   style.borderRight = border;
   style.borderLeft = border;
   this.cell.appendChild(model);
   this.model = model;
}
EVR.Level.Summary.Comparison.Model.prototype.set_proportions = function()
{
   var height = this.field.get_dimensions()[1];
   var model_height = height * MODEL_HEIGHT;
   var style = this.model.style;
   style.height = model_height;
   style.width = model_height;
   this.cell.style.width = model_height;
}
EVR.Level.Summary.Comparison.Model.prototype.draw = function()
{
   this.set_proportions();
   this.heading.set_font_size();
}
EVR.Level.Summary.Comparison.Model.prototype.toString = function()
{
   return "[object EVR.Level.Summary.Comparison.Model]";
}
EVR.include("level/summary/comparison/Model.js");
EVR.Level.Summary.Comparison = function(row, level)
{
   this.row = row;
   this.road = level.road;
   this.field = level.container;
   this.painter = level.road.racer.painter;
   this.height = level.road.get_dimensions()[1];
   this.add_models();
}
EVR.Level.Summary.Comparison.prototype.add_models = function()
{
   var row = this.row;
   var painter = this.painter;
   var actual = painter.blend().get_string();
   var expected = painter.blend(1).get_string();
   var actual = new EVR.Level.Summary.Comparison.Model(
      this, actual, MODEL_ACTUAL_TEXT);
   var expected = new EVR.Level.Summary.Comparison.Model(
      this, expected, MODEL_EXPECTED_TEXT);
   this.models = [actual, expected];
}
EVR.Level.Summary.Comparison.prototype.draw = function()
{
   var models = this.models;
   for (var ii = 0; ii < models.length; ii++)
   {
      models[ii].draw();
   }
}
EVR.Level.Summary.Comparison.prototype.toString = function()
{
   return "[object EVR.Level.Summary.Comparison]";
}
EVR.Level.Scoreboard.Speed = function()
{
   this.sum = 0;
   this.measurements = 0;
   this.average = null;
}
EVR.Level.Scoreboard.Speed.prototype.addMeasurement = function(speed)
{
   this.sum += parseFloat(speed);
   this.measurements++;
}
EVR.Level.Scoreboard.Speed.prototype.updateAverage = function()
{
   this.average = this.sum / this.measurements;
}
EVR.Level.Scoreboard.Speed.prototype.getAverage = function()
{
   return this.average;
}
3.94.202.151
3.94.202.151
3.94.202.151
 
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)