from os import listdir
from os.path import join

from pygame.mixer import Channel, Sound, music, find_channel

from GameChild import *
from Input import *

class Audio(GameChild):

    current_channel = None
    paused = False
    muted = False

    def __init__(self, game):
        GameChild.__init__(self, game)
        self.delegate = self.get_delegate()
        self.load_fx()
        self.subscribe(self.respond)

    def load_fx(self):
        fx = {}
        if self.get_configuration().has_option("audio", "sfx-path"):
            root = self.get_resource("audio", "sfx-path")
            if root:
                for name in listdir(root):
                    fx[name.split(".")[0]] = Sound(join(root, name))
        self.fx = fx

    def respond(self, event):
        if self.delegate.compare(event, "mute"):
            self.mute()

    def mute(self):
        self.muted = True
        self.set_volume()

    def unmute(self):
        self.muted = False
        self.set_volume()

    def set_volume(self):
        volume = int(not self.muted)
        music.set_volume(volume)
        if self.current_channel:
            self.current_channel.set_volume(volume)

    def play_bgm(self, path, stream=False):
        self.stop_current_channel()
        if stream:
            music.load(path)
            music.play(-1)
        else:
            self.current_channel = Sound(path).play(-1)
        self.set_volume()

    def stop_current_channel(self):
        music.stop()
        if self.current_channel:
            self.current_channel.stop()
        self.current_channel = None
        self.paused = False

    def play_fx(self, name, panning=.5):
        if not self.muted:
            channel = find_channel(True)
            if panning != .5:
                offset = 1 - abs(panning - .5) * 2
                if panning < .5:
                    channel.set_volume(1, offset)
                else:
                    channel.set_volume(offset, 1)
            channel.play(self.fx[name])

    def pause(self):
        channel = self.current_channel
        paused = self.paused
        if paused:
            music.unpause()
            if channel:
                channel.unpause()
        else:
            music.pause()
            if channel:
                channel.pause()
        self.paused = not paused

    def is_bgm_playing(self):
        current = self.current_channel
        if current and current.get_sound():
            return True
        return music.get_busy()
<?php

$GLOBALS["uri_root"] = "/a-o";
$GLOBALS["system_root"] = "a-o";
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 = get_visitors_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>
18.224.53.202
18.224.53.202
18.224.53.202
 
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)