WiiU Browser - Blob Sallad demo

Discussion in 'Wii U - Games & Content' started by Cyan, Dec 2, 2012.

  1. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    Oct 27, 2002
    Engine room, learning
    Today, after updating to firmware to 2.0, first thing I did was launching the WiiU browser and I started working on a port of Blob Sallad for WiiU gamePAD!
    BlobSallad is a demo for object collision done using Canvas and javascript.

    As the WiiU browser supports Canvas and also expose all its buttons, gyroscope and accelerometer parameters, I wanted to update that script to add gamePad interaction.

    You can find the WiiU demo here : http://cyan.ff6.free.fr/WiiU/
    Go there with your WiiU browser. If you use your your computer's browser, it will emulate the "angle" with Left/right only. Other mode are not available.
    On the Original demo, left/right were used to move the blob around, on this one it's simulating a tilt of the gamePad.

    Please read this to understand how to use:

  2. lovewiibrew

    lovewiibrew Sifjar is a pirate

    Oct 9, 2010
    United States
    Hey cyan, this is pretty neat. I especially liked jerking the gamepad up to throw the blob(s) into the air and flinging them with my finger. Nice proof of concept.

    I should also mention ZL will cause the blobs to join but will bring up browser tabs and if you have two tabs up it will switch to the other tab.
  3. Devin

    Devin "Local Hardware Wizard"

    GBAtemp Patron
    Devin is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    Aug 17, 2009
    United States
    The Nexus
    Neat even on my computer.

    The H, and J keys on a PC's keyboard splits/joins them. Clicking the blob allows you to move/throw him, and the arrow keys allow you to move. Must be even better on the Wii U.
  4. Cyan

    Cyan GBATemp's lurking knight

    Global Moderator
    Oct 27, 2002
    Engine room, learning
    I didn't know ZL switched the tabs (I always worked on a single tab).
    I don't know how to prevent the buttons to affect the navigator's default behavior.
    I remember CyanPrime posted a code to block propagation but said it didn't work like he hoped.

    It was great on PC, and even more on the Pad where you can use rotation/movement to control the Blobs.

    It's only a Proof of concept as I didn't see anyone else doing it since the console launch.
    The value and effect may seem unnatural as it's coded quickly (I set them randomly). Retail games are very precise on accelerometer/gyroscope/angle/direction combination (like ZombiU), and I'm sure other developers can use it a lot better than me.

    I hope other users will find better use and integration to their own games :)

    Elisherer added a link to nintendo website on Wiiubrew.
    Nintendo explains all (some of) the javascript objects, and has a sample page to test all the buttons and physical forces applied to the gamePad.

    It's great to see the 3D space representation when moving the gamePad around.

    unfortunately, they don't have a way to prevent default browser's action when testing the buttons.
    picano likes this.
  5. picano

    picano GBAtemp Regular

    Aug 21, 2008
    United States
    This is pretty awesome... I'm gonna play around with it a bit myself --- probably make a small Bomberman demo.
    Cyan likes this.