EVR.Console = function(width, height, container)
{
   EVR.Component.call(this, container, "textarea");
   this.width = width;
   this.height = height;
   this.style();
}
EVR.Console.prototype = new EVR.Component;
EVR.Console.prototype.style = function()
{
   this.css.width = this.width ? this.width + "px" : "100%";
   this.css.height = this.height ? this.height + "px" : "100px";
}
EVR.Console.prototype.write = function()
{
   var message = "";
   for (var ii = 0; ii < arguments.length; ii++)
   {
      if (ii > 0)
      {
	 message += " ";
      }
      message += arguments[ii];
   }
   message += "\n";
   this.element.value = message + this.element.value;
}
EVR.Console.prototype.clear = function()
{
   this.element.value = "";
}
EVR.Console.prototype.toggle_visibility = function()
{
   if (this.attached)
   {
      this.remove();
   }
   else
   {
      this.append();
   }
}
EVR.Console.prototype.toString = function()
{
   return "[object EVR.Console]";
}
// KEYS
// -----------------------------------------------------------------------------
var KEY_ENTER = 13;
var KEY_CTRL = 17;
var KEY_SPACE = 32;
var KEY_LEFT = 37;
var KEY_UP = 38;
var KEY_RIGHT = 39;
var KEY_DOWN = 40;
var KEY_C = 67;
var KEY_K = 75;
var KEY_M = 77;
var KEY_N = 78;
var KEY_Q = 81;
var KEY_R = 82;
var KEY_S = 83;
var KEY_T = 84;
var KEY_UP_ALTERNATE = KEY_T;
var KEY_DOWN_ALTERNATE = KEY_N;
var KEY_SPRINT = KEY_SPACE;
var KEY_SPRINT_ALTERNATE = KEY_RIGHT;
var KEY_RESTART = KEY_R;
var KEY_PREVIOUS_PAGE = KEY_LEFT;
var KEY_NEXT_PAGE = KEY_RIGHT;
var KEY_QUIT = KEY_Q;
var KEY_MENU = KEY_M;
var KEY_NEXT_LEVEL = KEY_N;
var KEY_GRID = KEY_SPACE;
var KEY_SOUND = KEY_S;

// GRAPHIC
// -----------------------------------------------------------------------------
var RATIO_INDEPENDENT = 0;
var RATIO_HEIGHT = 1;
var RATIO_WIDTH = 2;
var ALIGN_TOP_LEFT = 0;
var ALIGN_TOP = 1;
var ALIGN_TOP_RIGHT = 2;
var ALIGN_LEFT = 3;
var ALIGN_CENTER = 4;
var ALIGN_RIGHT = 5;
var ALIGN_BOTTOM_LEFT = 6;
var ALIGN_BOTTOM = 7;
var ALIGN_BOTTOM_RIGHT = 8;

// POP UP
// -----------------------------------------------------------------------------
var POP_UP_BORDER = "3px double black";
var POP_UP_WINDOW_Z_INDEX = 6;
var POP_UP_VEIL_Z_INDEX = 5;
var POP_UP_VEIL_COLOR = "#FFFFFF";
var POP_UP_VEIL_OPACITY = .6;

// CONSOLE
// -----------------------------------------------------------------------------
var CONSOLE_NAME = "console";

// FIELD
// -----------------------------------------------------------------------------
var FIELD_COLORS = ["#82CAFF", "#FFA8A8"];
var FIELD_FADE_RATE = 400;
var FIELD_FADE_LENGTH = 60000;
var FIELD_FADE_LOOP = true;

// CLOUDS
// -----------------------------------------------------------------------------
var CLOUD_COUNT = 28;
var CLOUD_MIN_OPACITY = .85;
var CLOUD_MAX_OPACITY = .94;
var CLOUD_MIN_WIDTH = .025;
var CLOUD_MAX_WIDTH = .0976;
var CLOUD_HEIGHT = .2;
var CLOUD_BOUNDARY_WIDTH = .01;
var CLOUD_POSITION_OFFSET = .125;
var CLOUD_COLOR = "#FFFFFF";
var CLOUD_SCROLL_RATE = 7000;
var CLOUD_STEP = .0015;
var CLOUD_Z_INDEX = 4;

// TREES
// -----------------------------------------------------------------------------
var TREE_COUNT = 21;
var TREE_MIN_OPACITY = .9;
var TREE_MAX_OPACITY = .99;
var TREE_MIN_HEIGHT = .017;
var TREE_MAX_HEIGHT = .034;
var TREE_WIDTH = .3;
var TREE_COLOR = "#00E400";
var TREE_SCROLL_RATE = 100;
var TREE_STEP = .001;
var TREE_Z_INDEX = 1;

// GROUND
// -----------------------------------------------------------------------------
var GROUND_COLOR = "#964B00";
var GROUND_WIDTH_RATIO = 1;
var GROUND_HEIGHT_RATIO = .006;
var GROUND_Z_INDEX = 4;

// ANIMATION
// -----------------------------------------------------------------------------
var DEFAULT_ANIMATION_METHOD_NAME = "sequence";

// INTRODUCTION
// -----------------------------------------------------------------------------
var INTRODUCTION_DELAY = 3000;
var INTRODUCTION_FRAMERATE = 125;
var INTRODUCTION_BEAM_WIDTH_RATIO = 7.5;
var INTRODUCTION_Y_RATIO = .625;
var INTRODUCTION_BEAM_GROWTH_RATE = .0011;
var INTRODUCTION_STEPS_PER_JUMP = 2;
var INTRODUCTION_EMOTICON_WALK_SPEED = .07;
var INTRODUCTION_EMOTICON_RUN_SPEED = .15;
var INTRODUCTION_EMOTICON_FLOAT_SPEED = .2;
var INTRODUCTION_SONG = "tenement_sun";
var INTRODUCTION_RESET_DELAY = 10000;
var TRANSMISSION_COLORS =
   ["red", "orange", "yellow", "green", "blue", "violet"];

// BLACK HOLE
// -----------------------------------------------------------------------------
var BLACK_HOLE_FADE_IN_SPEED = .0125;
var BLACK_HOLE_FADE_OUT_SPEED = .025;
var BLACK_HOLE_STEP_COUNT = 5;

// PROMPT
// -----------------------------------------------------------------------------
var PROMPT_TEXT = "PRESS RETURN TO BEGIN";
var PROMPT_BLINK_RATE = 500;
var PROMPT_OFFSET = .28;
var PROMPT_SIZE_RATIO = .021;
var PROMPT_FONT = "sans-serif";
var PROMPT_COLOR = "gray";
var PROMPT_LETTER_SPACING = 5;

// TITLE
// ----------------------------------------------------------------------------
var TITLE_OPACITY = .85;
var TITLE_WIDTH = 1;
var TITLE_HEIGHT = .14;
var TITLE_MARGIN = .06;
var TITLE_EMOTICON_FONT_SIZE = .082;
var TITLE_VERSUS_FONT_SIZE = .04;
var TITLE_RAINBOW_FONT_SIZE = .082;
var TITLE_LETTER_SPACING = 8;

// EMOTICON
// -----------------------------------------------------------------------------
var EMOTICON_COLOR = "#FFFF00";
var EMOTICON_FEATURE_COLOR = "#747474";
var EMOTICON_PADDING = .24;
var EMOTICON_FEATURES_WIDTH = .16;
var EMOTICON_FEATURES_HEIGHT = .2;
var EMOTICON_FEATURES_MARGIN = .25;

// SOUND
// -----------------------------------------------------------------------------
var SOUND_PATH = "aud/songs/";
var SOUND_WIDTH = .1;
var SOUND_HEIGHT = .15;
var SOUND_Z_INDEX = 4;
var SOUND_QUALITY = "hq";
var SOUND_INITIAL_VOLUME = .8;
var SOUND_VOLUME_STEP = .1;
var SOUND_CONTROLS_WIDTH = .58;
var SOUND_CONTROLS_HEIGHT = .22;
var SOUND_CONTROLS_FOUCUSED_OPACITY = 1;
var SOUND_CONTROLS_UNFOCUSED_OPACITY = .2;
var SOUND_CONTROLS_FONT_SIZE = .45;
var SOUND_CONTROLS_FONT_COLOR = "#303030";
var SOUND_CONTROLS_FONT_FAMILY = "sans-serif";
var SOUND_INDICATOR_BORDER_WIDTH = 3;
var SOUND_INDICATOR_BORDER = "groove #A0A0A0";
var SOUND_INDICATOR_ACTIVE_COLOR = "#20FF00";
var SOUND_INDICATOR_INACTIVE_COLOR = "#FF2020";
var SOUND_ENABLE_SIZE = .9;
var SOUND_AMPLIFY_ICON = "+";
var SOUND_DEAMPLIFY_ICON = "-";
var SOUND_BUTTON_BACKGROUND = "white";
var SOUND_BUTTON_WIDTH = .16;
var SOUND_BUTTON_HEIGHT = .45;
var SOUND_PROMPT_TEXT = "SOUND >";
var SOUND_PROMPT_LIFESPAN = 30000;
var SOUND_PROMPT_OFFSET = [-.66, .02];
var SOUND_PROMPT_SIZE = .103;
var SOUND_PROMPT_COLOR = "#585858";
var SOUND_PROMPT_FONT_FAMILY = "sans-serif";
var SOUND_PROMPT_LETTER_SPACING = 1;
var SOUND_PROMPT_FRAME_RATE = 500;
var SOUND_PROMPT_STEP = .05;
var SOUND_PROMPT_HEIGHT = .12;

// MENU
// -----------------------------------------------------------------------------
var MENU_PATH = "menus/";
var MENU_EXTENSION = ".xml";
var MENU_MAX_ROWS = 7;
var MENU_MAX_COLUMNS = 3;
var MENU_OPTION_WIDTH_RATIO = 11;
var MENU_OPTION_MARGIN = .016;
var MENU_BACKGROUND_COLOR = "#FF9890";
var MENU_HIGHLIGHT_COLOR = "#A0A0A0";
var MENU_SCROLL_OFFSET = 3;
var MENU_INITIAL_SCRIPT = "fetch_main_folder.php";
var MENU_Y_OFFSET = .614;

// OPTION
// -----------------------------------------------------------------------------
var OPTION_FONT_SIZE_RATIO = .019;
var OPTION_FONT_FAMILY = "sans-serif";

// BEAM
// -----------------------------------------------------------------------------
var BEAM_HEIGHT_RATIO = .031;
var BEAM_BORDER = "1px solid #383838";
var BEAM_PASSAGE_BORDER = "0px dashed #F0F0F0";

// HISTORY
// -----------------------------------------------------------------------------
var HISTORY_WIDTH = .36;
var HISTORY_HEIGHT = .9;
var HISTORY_SEPARATOR_PALETTE =
   ["red", "orange", "yellow", "green", "blue", "indigo", "violet"];
var HISTORY_HEADING_PALETTE =
   ["#FF8080", "#FF9555", "#FFFF80", "#80FF80", "#80FFFF", "#8080FF", "#FF80FF"];
var HISTORY_BACKGROUND = "#FFFF80";
var HISTORY_TIME_COLORS = ["#FFD700", "#C9C0BB", "#CD7F32", "#FFFFD0"];
var HISTORY_FONT = "sans-serif";
var HISTORY_FONT_SIZES = [.045, .032, .024, .015];
var HISTORY_CELL_PADDING = 4;
var HISTORY_CELL_SPACING = 11;
var HISTORY_CELL_COUNT = 18;
var HISTORY_LEVEL_NAME_FONT_SIZE = .0165;
var HISTORY_LEVEL_NAME_FONT_COLOR = "#565656";
var HISTORY_LEVEL_NAME_FONT_WEIGHT = "bold";
var HISTORY_LEVEL_NAME_FONT_STYLE = "italic";
var HISTORY_LEVEL_NAME_LETTER_SPACING = 6;
var HISTORY_LEVEL_NAME_BORDER = "1px outset #f0f0f0";
var HISTORY_MODE_FONT_SIZE = .02;
var HISTORY_MODE_LETTER_SPACING = 4;
var HISTORY_MODE_FONT_STYLE = "italic";
var HISTORY_TIME_TRIALS_HEADING = "Time Trials";
var HISTORY_FACE_PAINT_HEADING = "Face Paint";
var HISTORY_RECORD_LIMIT = 9;
var HISTORY_SEPARATOR_BORDER = "1px inset";
var HISTORY_BLANK_TIME = "-:--:---";

// LEVEL
// -----------------------------------------------------------------------------
var LEVEL_LIMIT = 10;
var LEVEL_START_DELAY = 500;
var LEVEL_PROMPT_SIZE = .031;
var LEVEL_PROMPT_COLOR = "#EFEF68";
var LEVEL_PROMPT_BACKGROUND = "#DF38DF";
// var LEVEL_PROMPT_COLOR = "#282828";
// var LEVEL_PROMPT_BACKGROUND = "#FFFFFF";
var LEVEL_PROMPT_DEPTH = 3;
var LEVEL_START_PROMPT_TEXT = "PRESS ENTER WHEN READY";
var LEVEL_PAUSE_PROMPT_TEXT = "ENTER: resume, R: restart level, M: main menu";
var LEVEL_FINISHED_PROMPT_TEXT = "R: restart level, M: main menu";
var LEVEL_CLEAR_PROMPT_TEXT = "R: restart level, M: main menu, N: next level";
var LEVEL_VIEW_ENDING_PROMPT_TEXT = "N: view ending";
var LEVEL_STATE_WAITING = 0;
var LEVEL_STATE_RACING = 1;
var LEVEL_STATE_PAUSED = 2;
var LEVEL_STATE_SUMMARIZING = 3;
var LEVEL_STATE_FINISHED = 4;
var LEVEL_INDICATOR_DISPLAY_THRESHOLD = 0;
var LEVEL_INDICATOR_FONT_SIZE = .017;
var LEVEL_INDICATOR_FONT_COLOR = "#606060";
var LEVEL_INDICATOR_FONT_FAMILY = "sans-serif";
var LEVEL_INDICATOR_TOP_OFFSET = -.231;
var LEVEL_INDICATOR_BOTTOM_OFFSET = .15;
var LEVEL_INDICATOR_LETTER_SPACING = "2px";
var LEVEL_INDICATOR_FRAME_RATE = 500;
var LEVEL_INDICATOR_REGISTER_TEXT = "next 3 colors";
var LEVEL_INDICATOR_REGISTER_OFFSET = -.41;
var LEVEL_INDICATOR_PATTERN_TEXT = "entire pattern/course map";
var LEVEL_INDICATOR_PATTERN_OFFSET = .11;
var LEVEL_INDICATOR_METER_TEXT =
   "boost meter, press spacebar to speed up when the meter turns green";
var LEVEL_INDICATOR_METER_OFFSET = -.16;
var LEVEL_INDICATOR_STEP = .01;

// ROAD
// -----------------------------------------------------------------------------
var ROAD_OFFSET = -.013;
var ROAD_BORDER_WIDTH = .048125;
var ROAD_DIVIDER_STYLE = "0px solid black";
var ROAD_BEAM_HEIGHT = .021;

// PLAYER
// -----------------------------------------------------------------------------
var PLAYER_OFFSET = 1.5;
var PLAYER_OPACITY = .96;

// FLAME
// -----------------------------------------------------------------------------
var FLAME_PALETTE = [
   "#ffff20", "#ffef30", "#ffd840", "#ffb850", "#ff9050", "#ef4020"];
var FLAME_GRAPHIC_WIDTH = .5;

// FLASH
// -----------------------------------------------------------------------------
var FLASH_ANIMATIONS_PATH = "img/flash/animations/";
var FLASH_MILESTONE_DIFFERENCE = 50;
var FLASH_OPACITY = .4;
var FLASH_FREQUENCIES = 3;

// GHOST
// -----------------------------------------------------------------------------
var GHOST_OPACITY = .5;
var GHOST_INDICATOR_OPACITY = .6;

// PATH
// -----------------------------------------------------------------------------
var PATH_INITIAL_RATE = 50;
var PATH_TIMING_BUFFER = 0;
var PATH_INITIAL_SPEED = .0015;
var PATH_SPRINT_SPEED = .004;
var PATH_SPEED_PENALTY = .3;
var PATH_METER_BONUS = 20;
var PATH_STREAK_BONUS = .1;
var PATH_METER_UNLOCK_DELAY = 3200;
var PATH_METER_UNLOCK_OFFSET = 3;

// LINE
// -----------------------------------------------------------------------------
var LINE_MARGIN = .167;
var LINE_WIDTH = .08;
var LINE_COLOR = "#FFFFFF";
var LINE_OPACITY = .91;
var LINE_CHECKER_COUNT = 14;
var LINE_CHECKER_COLOR = "#2A2A2A";
var LINE_FINISH = 1;

// CLOCK
// -----------------------------------------------------------------------------
var CLOCK_WIDTH = .16;
var CLOCK_HEIGHT = .030;
var CLOCK_TEXT_COLOR = "#F8F8F8";
var CLOCK_BACKGROUND = "#606060";
var CLOCK_TEXT_SIZE = .022;
var CLOCK_OPACITY = .85;
var CLOCK_FONT = "Courier New, Monospace";
var CLOCK_LETTER_SPACING = 4;
var CLOCK_FONT_WEIGHT = "normal";
var CLOCK_INTERVAL = 90;
var CLOCK_PRECISION = 3;
var CLOCK_PADDING = 2;

// METER
// -----------------------------------------------------------------------------
var METER_MARGIN = [0, .31];
var METER_READY_COLOR = "#38D458";
var METER_DISABLED_COLOR = "#DFDF48";
var METER_DRAINING_COLOR = "#DF5838";
var METER_SPAN = 6000;
var METER_INITIAL_LEVEL = 0;

// REGISTER
// -----------------------------------------------------------------------------
var REGISTER_WIDTH = .17;
var REGISTER_HEIGHT = .07;
var REGISTER_OPACITY = 1;
var REGISTER_MARGIN = [.09, .3];
var REGISTER_COUNT = 3;

// PREVIEW
// -----------------------------------------------------------------------------
var PREVIEW_FIRST_WIDTH = .42;
var PREVIEW_SIZE_VARIANCE = .55;
var PREVIEW_MARGIN = .05;
var PREVIEW_BORDER_WIDTH = 0;
var PREVIEW_BORDER_STYLE = "#545454 solid";

// MAP
// -----------------------------------------------------------------------------
var MAP_WIDTH = "96%";
var MAP_BORDER = "0px #202020 dotted";

// INDICATOR
// -----------------------------------------------------------------------------
var INDICATOR_COLOR = "#F8F800";
var INDICATOR_BORDER_COLOR = "#3A3A32";
var INDICATOR_BORDER_WIDTH = 3;
var INDICATOR_OPACITY = .97;

// STREAK
// -----------------------------------------------------------------------------
var STREAK_MIN_GLYPHS = 4;
var STREAK_GLYPH_COUNT = 8;
var STREAK_MAX_Y = .09;
var STREAK_MIN_Y = .06;
var STREAK_X_OFFSET = .5;
var STREAK_X_VARIANCE = .09;
var STREAK_Z_INDEX = 0;
var STREAK_FONT_FAMILY = "sans-serif";
var STREAK_FONT_COLOR = "#b0b0FF";
var STREAK_COLORS =
   ["#F89090", "#90E090", "#8A8AFF", "#FFFF40", "#FF9030", "#FF60FF"];
var STREAK_SHADOWS =
   ["#702020", "#207020", "#202080", "#64642B", "#603010", "#603060"];
var STREAK_FONT_SIZE = .02;
var STREAK_FONT_WEIGHT = "bold";
var STREAK_CHEER_PROBABILITY = .038;
var STREAK_CHEER_GRADIENT = 320.0;
var STREAK_CHEERS =
   ["OK!", "GOOD!", "GREAT!", "WOW!", "FANTASTIC!", "SPECTACULAR!",
    "SENSATIONAL!"];
var STREAK_MILESTONES = [35, 85, 140, 195, 270, 390, 590];
var STREAK_GLYPH_WIDTH = .09;
var STREAK_GLYPH_HEIGHT = 0;
var STREAK_SHADOW_OFFSET = [-1, 0];
var STREAK_OPACITY = .9;

// CHEERS
// -----------------------------------------------------------------------------
var CHEERS_TEXTS = [
   "OK!", "YES!", "GO!", "YEAH!", "SUPER!", "AMAZING!", "AWESOME!", "INCREDIBLE!"];
var CHEERS_MIN_BOOST_LENGTH = 250;
var CHEERS_MAX_BOOST_LENGTH = 2000;
var CHEERS_DRAG_THRESHOLD = 1000;
var CHEERS_JEER_TEXT = "BOO!";
var CHEERS_JEER_COLOR = "#989898";
var CHEERS_MARQUEE_WIDTH = .88;
var CHEERS_MARQUEE_HEIGHT = .1;
var CHEERS_MARQUEE_OFFSET = .125;
var CHEERS_SHADOW_OFFSET = [-1, 1];
var CHEERS_SHADOW_COLOR_OFFSET = 70;
var CHEERS_FOREGROUND_Z_INDEX = 1;
var CHEERS_SPECTRUM_LENGTH = 80;
var CHEERS_SPECTRUM_STARTING_INDEX = 24;
var CHEERS_FOREGROUND_OPACITY = .8;
var CHEERS_SHADOW_OPACITY = .95;
var CHEERS_ANIMATION_RATE = 100;
var CHEERS_SCROLL_PADDING = .25;
var CHEERS_SCROLL_STEP = 4;
var CHEERS_SCROLL_DELAY = 1000;
var CHEERS_FONT_SIZE = .042;
var CHEERS_GLYPH_PADDING = 16;
var CHEERS_GLYPH_PADDING = .01;

// SCOREBOARD
// -----------------------------------------------------------------------------
var SCOREBOARD_WIDTH = .2;
var SCOREBOARD_HEIGHT = .15;
var SCOREBOARD_OFFSET = .11;
var SCOREBOARD_CHEERS = [
   "OK!", "GOOD!", "GREAT!", "EXCELLENT!", "AWESOME!", "INCREDIBLE!"];
var SCOREBOARD_INACTIVE_OPACITY = .11;
var SCOREBOARD_FONT_WEIGHT = "bold";
var SCOREBOARD_FONT_SIZE = .1;
var SCOREBOARD_FONT_FAMILY = "sans-serif";
var SCOREBOARD_SHADOW_OFFSET = [-2, 1];
var SCOREBOARD_SHADOW_COLOR_OFFSET = 140;
var SCOREBOARD_BASE_WIDTH = .7;
var SCOREBOARD_BASE_HEIGHT = .2;
var SCOREBOARD_MAX_RED = 155;
var SCOREBOARD_METER_WIDTH = .15;
var SCOREBOARD_METER_SEGMENTS = 15;
var SCOREBOARD_METER_INACTIVE_OPACITY = .25;
var SCOREBOARD_METER_MIN_SPEED = .00151;
var SCOREBOARD_METER_MAX_SPEED = .0022;
var SCOREBOARD_METER_BORDER_COLOR_OFFSET = 70;
var SCOREBOARD_METER_HORIZONTAL_BORDER_WIDTH = "3px";
var SCOREBOARD_METER_BOTTOM_BORDER_WIDTH = "1px";
var SCOREBOARD_CHEER_MARGIN = .05;

// COUNTDOWN
// -----------------------------------------------------------------------------
var COUNTDOWN_LENGTH = 3;
var COUNTDOWN_DELAY = 500;
var COUNTDOWN_HEIGHT = .6;
var COUNTDOWN_FONT = "sans-serif";
var COUNTDOWN_COLOR = ["#DF38DF", "#EFEF68"];
var COUNTDOWN_DEPTH = 4;
var COUNTDOWN_FONT_WEIGHT = "bold";
var COUNTDOWN_FONT_SIZE = .55;
var COUNTDOWN_SHADOW_OFFSET = [.05, .05];

// SUMMARY
// -----------------------------------------------------------------------------
var SUMMARY_BACKGROUND = "white";
var SUMMARY_FINISH_LINE_OFFSET = .015;

// ACCURACY
// -----------------------------------------------------------------------------
var ACCURACY_PADDING = 10;
var ACCURACY_FONT = "sans-serif";
var ACCURACY_FONT_COLOR = "#484848";
var ACCURACY_BACKGROUND_COLOR = "pink";
var ACCURACY_FONT_WEIGHT = "normal";
var ACCURACY_FONT_SIZE = .049;
var ACCURACY_LETTER_SPACING = 1;
var ACCURACY_HEADING = "ACCURACY";
var ACCURACY_HEADING_FONT = "sans-serif"
var ACCURACY_HEADING_FONT_SIZE = .017;
var ACCURACY_HEADING_TEXT_DECORATION = "none";
var ACCURACY_HEADING_LETTER_SPACING = 2;
var ACCURACY_HEADING_BORDER = "1px solid #484848";
var ACCURACY_PRECISION = 2;

// MODEL
// -----------------------------------------------------------------------------
var MODEL_ACTUAL_TEXT = "YOU";
var MODEL_EXPECTED_TEXT = "EXPECTED";
var MODEL_HEIGHT = .1;
var MODEL_PADDING = 30;
var MODEL_HEADING_HEIGHT = .022;
var MODEL_HEADING_BACKGROUND = "pink";
var MODEL_FONT_COLOR = "#383838";
var MODEL_HEADING_FONT_SIZE = .012;
var MODEL_HEADING_LETTER_SPACING = 1;
var MODEL_FONT_FAMILY = "sans-serif";
var MODEL_BORDER = "1px dotted #888888";

// TIME
// -----------------------------------------------------------------------------
var TIME_FONT = "sans-serif, Helvetica";
var TIME_FONT_SIZE = .103;
var TIME_FONT_COLOR = "#484848";
var TIME_CLEAR_FONT_COLOR = "#04C004";
var TIME_FAIL_FONT_COLOR = "#FF4040";
var TIME_PADDING = 30;
var TIME_LETTER_SPACING = -3;
var TIME_LINE_HEIGHT_MODIFIER = .18;

// GOAL
// -----------------------------------------------------------------------------
var GOAL_TEXT = "GOAL TIME: ";
var GOAL_ADVANCED_TEXT = "EXPERT GOAL: ";
var GOAL_FONT_SIZE = .015;
var GOAL_FONT_FAMILY = "sans-serif";
var GOAL_FONT_COLOR = "#484848";
var GOAL_TEXT_ALIGN = "center";
var GOAL_LETTER_SPACING = 1;
var GOAL_MARGIN = 4;
var GOAL_PADDING = 1;
var GOAL_BACKGROUND = "skyblue";

// GRAPH
// -----------------------------------------------------------------------------
var GRAPH_TITLE = "LAST";
var GRAPH_TITLE_BACKGROUND = "pink";
var GRAPH_TITLE_FONT = "sans-serif";
var GRAPH_TITLE_LETTER_SPACING = 0;
var GRAPH_FONT_SIZE = .015;
var GRAPH_FONT_COLOR = "#484848";
var GRAPH_MARGIN = 30;
var GRAPH_MARGIN_PADDING = 1;
var GRAPH_MARGIN_BACKGROUND = "#C0C0FF";
var GRAPH_MARGIN_TEXT_FONT = "sans-serif";
var GRAPH_MARGIN_TEXT_COLOR = "#787878";
var GRAPH_MARGIN_TEXT_BACKGROUND = "#BDBDBD"
var GRAPH_COLORS = ["#FFFF80", "#FF80F0"];
var GRAPH_HISTORY_LENGTH = 10;
var GRAPH_BAR_PADDING = 4;
var GRAPH_BAR_WIDTH = 4;
var GRAPH_MIN_BAR_HEIGHT = 10;
var GRAPH_PLOT_HEIGHT = .1;
var GRAPH_PLOT_MARGIN = 2;
var GRAPH_PLOT_BACKGROUND_COLOR = "#B0D8FF";
var GRAPH_PRECISION = 0;

// RECORDS
// -----------------------------------------------------------------------------
var RECORDS_COLORS = ["#FFD700", "#C9C0BB", "#CD7F32", "#E0E0E0"];
var RECORDS_FONT_COLOR = "#404040";
var RECORDS_NEW_FONT_COLOR = "green";
var RECORDS_FONT_SIZES = [.01575 * 6, .015 * 3, .01575];
var RECORDS_PADDING = 30;
var RECORDS_LETTER_SPACING = 4;
var RECORDS_FONT_FAMILY = "sans-serif";
var RECORDS_FONT_WEIGHT = "normal";
var RECORDS_TIER_LENGTHS = [1, 2, 6];
var RECORDS_BLANK_TIME_TEXT = "--:--:---";
var RECORDS_PRECISION = 2;

// ALBUM
// -----------------------------------------------------------------------------
var ALBUM_PATH = "img/album/";
var ALBUM_BACKGROUND = "black";
var ALBUM_Z_INDEX = 5;
var ALBUM_PAGE_BACKGROUND = "#82CAFF";
var ALBUM_MENU_FONT = "sans-serif";
var ALBUM_MENU_BACKGROUND = "white";
var ALBUM_MENU_FONT_COLOR = "#282828";
var ALBUM_MENU_PADDING = "3px 0 4px 0";
var ALBUM_MENU_FONT_SIZE = "11px";
var ALBUM_MENU_FONT_WEIGHT = "normal";
var ALBUM_MENU_LETTER_SPACING = 3;
var ALBUM_MENU_OPACITY = .96;
var ALBUM_MENU = "ENTER: hide menu | &larr;/&rarr;: browse | Q: exit";
var ALBUM_MENU_BEAMS_OPTION = " | SPACE: beams";
var ALBUM_BEAM_SIZE = .006;
var ALBUM_BEAM_COLORS = ["red", "orange", "yellow", "green", "blue", "violet"];
var ALBUM_MIN_BEAMS = 450;
var ALBUM_MAX_BEAMS = 650;
var ALBUM_BEAM_OPACITY = .8;
var ALBUM_BEAM_FLICKER_RATE = 200;
var ALBUM_SONG = "cemetarousel";

// INSTRUCTIONS
// -----------------------------------------------------------------------------
var INSTRUCTIONS_WIDTH = .58;
var INSTRUCTIONS_HEIGHT = .85;
var INSTRUCTIONS_BACKGROUND = "#FFD0FF";
var INSTRUCTIONS_FONT_COLOR = "#585858";
var INSTRUCTIONS_FONT_SIZE = "19px";
var INSTRUCTIONS_FONT_FAMILY = "sans-serif";
var INSTRUCTIONS_LETTER_SPACING = 0;
var INSTRUCTIONS_LINE_HEIGHT = "20px";
var INSTRUCTIONS_PADDING = 10;
var INSTRUCTIONS_PARAGRAPH_TEXT_ALIGN = "left";
var INSTRUCTIONS_PARAGRAPH_PADDING = 8;
var INSTRUCTIONS_PARAGRAPH_BACKGROUND = "#FFFFB0";
var INSTRUCTIONS_IMAGE_MARGIN = 30;

// ABOUT
// -----------------------------------------------------------------------------
var ABOUT_WIDTH = .2;
var ABOUT_HEIGHT = .34;
var ABOUT_PALETTE =
   ["#FFFF80", "#80FFFF", "#FF80FF", "#FF9555", "#80FF80", "#8080FF", "#FF9555"];
var ABOUT_BACKGROUND = "#D0FFA0";
var ABOUT_FONT_COLOR = "#505050";
var ABOUT_FONT_SIZE = "16px";
var ABOUT_FONT_FAMILY = "sans-serif";
var ABOUT_PADDING = "20px 30px";
var ABOUT_HEADING_INDICATOR = "=";
var ABOUT_TEXT_ALIGN = "left";
var ABOUT_PARAGRAPH_FONT_COLOR = "#686868";
var ABOUT_PARAGRAPH_TEXT_ALIGN = "justify";
var ABOUT_PARAGRAPH_LINE_HEIGHT = "24px";
var ABOUT_PARAGRAPH_FONT_STYLE = "italic";
var ABOUT_PARAGRAPH_PADDING = "16 30";
var ABOUT_PARAGRAPH_FONT_WEIGHT = "bold";
var ABOUT_PARAGRAPH_BORDER = "20px ridge #AB5949";
var ABOUT_HEADING_FONT_WEIGHT = "bold";
var ABOUT_HEADING_TEXT_DECORATION = "underline";
var ABOUT_HEADING_FONT_SIZE = "17px";
var ABOUT_HEADING_MARGIN = 21;
var ABOUT_HEADING_PADDING = 0;
var ABOUT_LINK_TEXT_DECORATION = "none";
var ABOUT_LINK_COLOR = "#505050";
var ABOUT_INDIVIDUAL_PADDING = 0;
var ABOUT_INDIVIDUAL_LETTER_SPACING = "1px";
var ABOUT_INDIVIDUAL_FONT_SIZE = "15px";

// ENDING
// -----------------------------------------------------------------------------
var ENDING_BACKGROUND = "#CACACA";
var ENDING_SONG = "what_place";
var ENDING_MESSAGE_FRAME_RATE = 50;
var ENDING_MESSAGE_DELAY = 10000;
var ENDING_MESSAGE_Z_INDEX = 7;
var ENDING_MESSAGE_TEXT_COLOR = "#585858";
var ENDING_MESSAGE_FONT_FAMILY = "sans-serif";
var ENDING_MESSAGE_TITLE_TEXT = "Emoticon Vs. Rainbow";
var ENDING_MESSAGE_TITLE_SIZE = .1;
var ENDING_MESSAGE_TITLE_LETTER_SPACING = 1;
var ENDING_MESSAGE_TITLE_OFFSET = -.02;
var ENDING_MESSAGE_THANKS_TEXT = "Thank you for playing!";
var ENDING_MESSAGE_THANKS_SIZE = .03;
var ENDING_MESSAGE_THANKS_LETTER_SPACING = 1;
var ENDING_MESSAGE_THANKS_OFFSET = 0;
var ENDING_MESSAGE_COMMAND_TEXT = "THE END";
var ENDING_MESSAGE_COMMAND_SIZE = .018;
var ENDING_MESSAGE_COMMAND_LETTER_SPACING = 25;
var ENDING_MESSAGE_COMMAND_OFFSET = -.05;

// TOMBSTONE
// -----------------------------------------------------------------------------
var TOMBSTONE_COLOR = "#949494";
var TOMBSTONE_BORDER = "1px solid #A8A8A8";
// var TOMBSTONE_WIDTH = .018;
// var TOMBSTONE_HEIGHT = 1.5;
var TOMBSTONE_WIDTH = .63;
var TOMBSTONE_HEIGHT = .038;
var TOMBSTONE_OFFSET = .12;
var TOMBSTONE_Z_INDEX = 1;
var TOMBSTONE_CROSS_THICKNESS = .1;
var TOMBSTONE_CROSS_COLOR = "#D8C082";
var TOMBSTONE_CROSS_OFFSET = .1;
var TOMBSTONE_CROSS_BAR_OFFSET = .21;
var TOMBSTONE_CROSS_HEIGHT = .44;
var TOMBSTONE_CROSS_WIDTH = .45;
var TOMBSTONE_BASE_WIDTH = 5;
var TOMBSTONE_BASE_HEIGHT = .007;
var TOMBSTONE_BASE_Z_INDEX = 1;
var TOMBSTONE_BASE_BORDER = "1px solid #A8A8A8";

// FAMILY
// -----------------------------------------------------------------------------
var FAMILY_ATTRIBUTES = [
   [.028, -.036, "#FF8080"],
   [.025, -.061, "#DFFF80"],
   [.018, -.046, "#A090FF"],
   [.023, -.091, "#FFA877"],
   [.019, .033, "#80FF9A"],
   [.025, .05, "#A890C8"],
   [.024, .092, "#C09A62"],
   [.02, .08, "#C7D750"]
];
var FAMILY_FRAME_RATE = 400;
var FAMILY_STEP = .001;
var FAMILY_SHIFT_PROBABILITY = .03;
var FAMILY_JUMP_STEP = -.004;
var FAMILY_JUMP_DELAY = 800;
var FAMILY_JUMP_PROBABILITY = 1;

// RAINBOW
// -----------------------------------------------------------------------------
var RAINBOW_WIDTH = .021;
var RAINBOW_Z_INDEX = 2;
var RAINBOW_FRAME_RATE = 50;
var RAINBOW_STEP = .01;
var RAINBOW_DELAY = 15000;
var RAINBOW_OPACITY = .75;

// CORPSE
// -----------------------------------------------------------------------------
var CORPSE_DELAY = 5000;
var CORPSE_Z_INDEX = 3;
var CORPSE_FRAME_RATE = 50;
var CORPSE_HEIGHT = .0235;
var CORPSE_STEP = -.007;
var CORPSE_ZOOM_DELAY = 5000;
var CORPSE_EYE_OFFSET = [.102, .58];
var CORPSE_ZOOM_RATE = .1;
var CORPSE_ZOOM_ENDPOINT = [.5, .5];
var CORPSE_ZOOM_STEP = .1;
var CORPSE_ZOOM_Z_INDEX = 5;

// SOUL
// -----------------------------------------------------------------------------
var SOUL_FRAME_RATE = 100;
var SOUL_ZOOM_STEP = .16;
var SOUL_Z_INDEX = 6;
var SOUL_UPDATE_METER_LIMIT = 30;
var SOUL_HEIGHT = 1;

// ACCOUNT
// -----------------------------------------------------------------------------
var ACCOUNT_WIDTH = .3;
var ACCOUNT_HEIGHT = .8;
var ACCOUNT_BACKGROUND = "#FFCA92";
var ACCOUNT_BUTTON_TEXT = "EXIT";

// FORM
// -----------------------------------------------------------------------------
var FORM_ERROR_COLOR = "#FF8080";
var FORM_ERROR_TEXT_COLOR = "#FF4040";
var FORM_ERROR_DISPLAY_MARGIN = 10;
var FORM_NEUTRAL_COLOR = "#FFFFFF";
var FORM_RESULTS_DELAY = 100;
var FORM_FOCUSED_TEXT_COLOR = "#282828";
var FORM_UNFOCUSED_TEXT_COLOR = "#909090";
3.215.79.204
3.215.79.204
3.215.79.204
 
March 3, 2021

Video 📺

Computers are a gun. They can see the target; they can pull the trigger. Computers were made by the military to blow people's brains out if they stepped out of line. Google Coral is the same technology that pollutes the oceans, and so is the computer I'm using, and so are the platforms I'm using to post this.

Game 🎲

Games are a context in which all play is purposeful. Games expose the fundamentally nihilistic nature of the universe and futility of pursuing any path other than the inevitability of death and the torture of an evil that knows and exploits absolute freedom. Games are not educational; they are education.

Propaganda 🆒

Education is propaganda — ego driven by-product conveying nothing that would enable us to expose that vanities made for gain subject us further to an illusion created by those in control: the illusion that quantity can represent substance and that data or observation can replace meaning. And why say it, or how, without contradicting yourself, that everything, once registered, no longer exists, and in fact never did, exists only in relation to other non-existent things, and when you look, it's not there, not only because it's long vanished, but because where would it be?


fig. 2: Gamer goo is a lubricant — not for your skin, but for facilitating your ability to own the competition (image from Gamer goo review)

As a result of video games, the great Trojan horse 🎠 of imperialist consumerist representationalism, people are divided in halves to encourage them to act according to market ordained impulses, to feign assurance, penetrating themselves deeper into a tyranny from which every action signals allegiance, confusing the world with definitions and borders, constantly struggling to balance or brace themselves against forces that threaten the crumbling stability of their ego.

F

or example, a cup 🥃 is designed and built to hold something, maintain order and prevent chaos. It keeps water from spilling back to where it belongs, back where it wants to go and gravity wants it to go. The cup is a trap, and it is used to assert dominance over nature, to fill with thoughts about existence, time and self, thoughts regarding dissimilarity between equal parts and patterns that manifest in variation. These ruminations disguised as revelations boil away to reveal isolated and self-aggrandizing thoughts about an analogy fabricated to herald the profundity of one's campaign's propaganda. You have no authentic impulse except to feed a delusion of ultimate and final supremacy. That is why you play games. That is your nature. That is why you eventually smash the cup to bits 💥 or otherwise watch it disintegrate forever because it, by being useful, threatens your facade of ownership and control.


fig. 3: worth1000

The cup is you; it reflects you; it is a lens through which you see yourself; it reassures you, confirming your presence; it says something, being something you can observe. When you move, it moves, and it opens after being closed. You can use it as a vessel for penetration fantasies, keeping you warm and fertile, a fine host for the plague of consciousness, you reptile, you sun scorched transgressor that not only bites the hand that feeds, but buries it deep within a sterile chamber where nothing remains for it as a means of escape except the corpses of others that infringed upon your feeding frenzy.

January 23, 2021

I wanted to document this chat-controlled robot I made for Babycastles' LOLCAM📸 that accepts a predefined set of commands like a character in an RPG party 〰 commands like walk, spin, bash, drill. It can also understand donut, worm, ring, wheels, and more. The signal for each command is transmitted as a 24-bit value over infrared using two Arduinos, one with an infrared LED, and the other with an infrared receiver. I built the transmitter circuit, and the receiver was built into the board that came with the mBot robot kit. The infrared library IRLib2 was used to transmit and receive the data as a 24-bit value.


fig. 1.1: the LEDs don't have much to do with this post!

I wanted to control the robot the way the infrared remote that came with the mBot controlled it, but the difference would be that since we would be getting input from the computer, it would be like having a remote with an unlimited amount of buttons. The way the remote works is each button press sends a 24-bit value to the robot over infrared. Inspired by Game Boy Advance registers and tracker commands, I started thinking that if we packed multiple parameters into the 24 bits, it would allow a custom move to be sent each time, so I wrote transmitter and receiver code to process commands that looked like this:

bit
name
description
00
time
multiply by 64 to get duration of command in ms
01
02
03
04
left
multiply by 16 to get left motor power
05
06
07
08
right
multiply by 16 to get right motor power
09
10
11
12
left sign
0 = left wheel backward, 1 = left wheel forward
13
right sign
0 = right wheel forward, 1 = right wheel backward
14
robot id
0 = send to player one, 1 = send to player two
15
flip
negate motor signs when repeating command
16
repeats
number of times to repeat command
17
18
19
delay
multiply by 128 to get time between repeats in ms
20
21
22
23
swap
swap the motor power values on repeat
fig 1.2: tightly stuffed bits

The first command I was able to send with this method that seemed interesting was one that made the mBot do a wheelie.

$ ./send_command.py 15 12 15 1 0 0 0 7 0 1
sending 0xff871fcf...


fig 1.3: sick wheels

A side effect of sending the signal this way is any button on any infrared remote will cause the robot to do something. The star command was actually reverse engineered from looking at the code a random remote button sent. For the robot's debut, it ended up with 15 preset commands (that number is in stonks 📈). I posted a highlights video on social media of how the chat controls turned out.

This idea was inspired by a remote frog tank LED project I made for Ribbit's Frog World which had a similar concept: press a button, and in a remote location where 🐸 and 🐠 live, an LED would turn on.


fig 2.1: saying hi to froggo remotely using an LED

😇 The transmitter and receiver Arduino programs are available to be copied and modified 😇

March 22, 2020

The chicken nugget business starter kit is now available online! Send me any amount of money through Venmo or PayPal, and I will mail you a package which will enable you to start a chicken nugget business of your own, play a video game any time you want, introduce a new character into your Animal Crossing village, and start collecting the chicken nugget trading cards.

The kit includes:

  • jellybean
  • instruction manual
  • limited edition trading card

By following the instructions you'll learn how to cook your own chicken or tofu nugget and be well on your way to financial success. I'm also throwing in one randomly selected card from the limited edition trading card set. Collect them, trade them, and if you get all eighteen and show me your set, I will give you an exclusive video game product.

All orders are processed within a day, so you can have your kit on your doorstep as quickly as possible. Don't sleep on this offer! Click the PayPal button or send a Venmo payment of any amount to @ohsqueezy, and in a matter of days you'll be counting money and playing video games.

PayPal me

June 23, 2019

is pikachu dead

yes and how about that for a brain tickler that what you're seeing all along was a ghost. we used a digital stream of bits that in the future we call blood to recreate everything as a malleable substance that is projected through computers over a massive interstellar network that runs faster than the speed of light in order to simultaneously exist at every moment in time exactly the same way effectively creating a new dimension through which you can experience the timeless joy of video games. you can press a button and watch the impact of your actions instantaneously resonate eternally across an infinite landscape as you the master of a constantly regenerating universe supplant your reality with your imagination giving profoundly new meaning to the phrase what goes around comes around as what comes around is the manifestation of the thoughts you had before you were aware of them. thoughts before they were thought and actions before they were done! it's so revolutionary we saved it for 10,000 years from now but it's all recycled here in the past with you at the helm and the future at the tips of your fingers

June 7, 2018

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)

July 19, 2017


f1. BOSS

Games are corrupt dissolutions of nature modeled on prison, ordering a census from the shadows of a vile casino, splintered into shattered glass, pushing symbols, rusted, stale, charred, ultraviolet harbingers of consumption and violence, badges without merit that host a disease of destruction and decay.

You are trapped. You are so trapped your only recourse of action is to imagine an escape route and deny your existence so fully that your dream world becomes the only reality you know. You are fleeing deeper and deeper into a chasm of self-delusion.

While you're dragging your listless, distending corpus from one cell to another, amassing rewards, upgrades, bonuses, achievements, prizes, add-ons and status boosts in rapid succession, stop to think about what's inside the boxes because each one contains a vacuous, soul-sucking nightmare.

Playing can be an awful experience that spirals one into a void of harm and chaos, one so bad it creates a cycle between the greater and lesser systems, each breaking the other's rules. One may succeed by acting in a way that ruins the world.

June 5, 2016
September 30, 2015


Edge of Life is a form I made with Babycastles and Mouth Arcade for an event in New York called Internet Yami-ichi, a flea market of internet-ish goods. We set up our table to look like a doctor's office and pharmacy and offered free examinations and medication prescriptions, a system described by one person as "a whole pharmacy and medical industrial complex".

Diagnoses were based on responses to the form and observations by our doctor during a short examination. The examination typically involved bizarre questions, toy torpedoes being thrown at people and a plastic bucket over the patient's head. The form combined ideas from Myers-Briggs Type Indicators, Codex Seraphinianus and chain-mail personality tests that tell you which TV show character you are. In our waiting room, we had Lake of Roaches installed in a stuffed bat (GIRP bat). It was really fun!

The icons for the food pyramid are from Maple Story and the gun icons are from the dingbat font Outgunned. I'm also using Outgunned to generate the items in Food Spring.

January 28, 2014


☀ E F F L U E N C E ☀

December 3, 2013

Where in the mind's prism does light shine, inward, outward, or backward, and where in a plane does it intersect, experientially and literally, while possessing itself in a dripping wet phantasm?


Fig 1.1 What happens after you turn on a video game and before it appears?

The taxonomy of fun contains the difference between gasps of desperation and exaltation, simultaneously identical and opposite; one inspires you to have sex, while the other to ejaculate perpetually. A destruction and its procession are effervescent, while free play is an inseminated shimmer hatching inside you. Unlikely to be resolved, however, in such a way, are the climaxes of transitions between isolated, consecutive game states.

You walk through a door or long-jump face first (your face, not Mario's) into a painting. A moment passes for eternity, viscerally fading from your ego, corpus, chakra, gaia, the basis of your soul. It happens when you kill too, and especially when you precisely maim or obliterate something. It's a reason to live, a replicating stasis.


Fig 1.2 Sequence in a video game

Video games are death reanimated. You recurse through the underworld toward an illusion. Everything in a decision and logic attaches permanently to your fingerprint. At the core, you use its energy to soar, comatose, back into the biosphere, possibly because the formal structure of a mind by human standards is useful in the next world.

November 9, 2013


Food Spring - Watermelon Stage

Getting the fruit as far as possible is the object of each level, collecting bigger, more valuable guns. The final result is determined by the size of the fruits' collection when the monkey arrives in North America and either survives or perishes in the fruits' attack.

Watermelon Peach
Pineapple Grapes
September 13, 2013

from array import array
from time import sleep

import pygame
from pygame.mixer import Sound, get_init, pre_init

class Note(Sound):

    def __init__(self, frequency, volume=.1):
        self.frequency = frequency
        Sound.__init__(self, self.build_samples())
        self.set_volume(volume)

    def build_samples(self):
        period = int(round(get_init()[0] / self.frequency))
        samples = array("h", [0] * period)
        amplitude = 2 ** (abs(get_init()[1]) - 1) - 1
        for time in xrange(period):
            if time < period / 2:
                samples[time] = amplitude
            else:
                samples[time] = -amplitude
        return samples

if __name__ == "__main__":
    pre_init(44100, -16, 1, 1024)
    pygame.init()
    Note(440).play(-1)
    sleep(5)

This program generates and plays a 440 Hz tone for 5 seconds. It can be extended to generate the spectrum of notes with a frequency table or the frequency formula. Because the rewards in Send are idealized ocean waves, they can also be represented as tones. Each level has a tone in its goal and a tone based on where the player's disc lands. Both play at the end of a level, sounding harmonic for a close shot and discordant for a near miss. The game can dynamically create these tones using the program as a basis.

I'm also building an algorithmically generated song: Silk Routes (Scissored). Here is an example of how it sounds so far.

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

June 29, 2013

A few weeks ago, for Fishing Jam, I made a fishing simulation from what was originally designed to be a time attack arcade game. In the program, Dark Stew, the player controls Aphids, an anthropod who fishes for aquatic creatures living in nine pools of black water.



Fishing means waiting by the pool with the line in. The longer you wait before pulling the line out, the more likely a creature will appear. Aside from walking, it's the only interaction in the game. The creatures are drawings of things you maybe could find underwater in a dream.

The background music is a mix of clips from licensed to share songs on the Free Music Archive. Particularly, Seed64 is an album I used a lot of songs from. The full list of music credits is in the game's README file.

I'm still planning to use the original design in a future version. There would be a reaction-based mini game for catching fish, and the goal would be to catch as many fish as possible within the time limit. I also want to add details and obstacles to the background, which is now a little boring, being a plain, tiled, white floor.

If you want to look at all the drawings or hear the music in the context of the program, there are Windows and source versions available. The source should work on any system with Python and Pygame. If it doesn't, bug reports are much appreciated. Comments are also welcome :)

Dark Stew: Windows, Pygame Source

I wrote in my last post that I would be working on an old prototype about searching a cloud for organisms for Fishing Jam. I decided to wait a while before developing that game, tentatively titled Xenographic Barrier. Its main interactive element is a first-person scope/flashlight, so I'd like to make a Wii version of it.

I'm about to start working on a complete version of Ball & Cup. If I make anything interesting for it, I'll post something. There are a lot of other things I want to write about, like game analyses, my new GP2X and arcades in Korea, and there's still music to release. Lots of fun stuff coming!

May 19, 2013

Welcome! I will be posting here about open-source games and music I am making for free online distribution. Most recently, I made Ball & Cup for Ludum Dare 26, a game I will work on more in June. After finishing, if it's fun, I will build an arcade cabinet for it! Next week, I am joining the 7-Day Fishing Jam to develop an A-life prototype about searching a cloud of noise for organisms.

Before Ball & Cup, I was adding features like vehicle engines, new graphics and effects and detailed scoring to an updated version of E.S.P. Hadouken, currently a prototype about navigating five psychic hadoukens to save your Game Boy. The new version will be similar with a clearer story and more ways to judge your performance. I plan on finishing it after making a public version of Ball & Cup.

I will also upload some digital albums soon. One, Man's Womb, is a solo collection of chiptunes from Emoticon Vs. Rainbow, an online racing/rhythm game. The other, Tor Ghul/Spin Ghul is a guitar and synth record recorded with my friends last summer. The recording and sequencing are finished for both -- I just have to make their web pages and artwork and package them for downloading.

Later, I hope to write about games in their early stages, an abstract action-RPG called Panopticon: Swarm, a massively multiplayer exploration, voting, post-catastrophic city simulation, Vomit Inspector and a mobile mini-game compilation project that includes an external digital pet raising and social networking mode. I also plan to post analyses of games I'm playing as a design exercise and for fun.

I will write about more game stuff like arcade trips, game jams and electronics! Plus whatever I haven't thought of! If you use RSS, subscribe to my feed!