- Joined
- Oct 27, 2002
- Messages
- 23,749
- Trophies
- 4
- Age
- 46
- Location
- Engine room, learning
- XP
- 15,661
- Country
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:
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:
Usage:
Go to http://cyan.ff6.free.fr/WiiU/ with your WiiU browser and use the gamePad to play with it.
R : Toggle Debug menu display
ZR: Split Blobs
ZL: Join Blobs
Stylys: Catch and move Blobs freely
D-pad change mode.
DPAD mode:
Down: Gravity (Angle) (Default mode)
Hold the gamePad vertically.
Tilt the gamePad to left or right to move the blobs. quickly shake the gamePad up to make a jump. Jump height depends on shaking strength.
Press D-Pad Down to reset the angle/gravity origin.
Up: Air Bubble (Accelerometer)
Hold the gamePad horizontally.
tilting it in all direction make the blob move to the upper part, like air bubble in water.
Left: Friction (Gyroscope)
Hold the gamePad vertically.
moving slowly the gamePad in a direction (horizontally or vertically) and suddenly stop will make the Blob continue moving in that direction.
Right: Look Around (Gyroscope)
Hold the gamePad vertically.
Moving the gamePad in a direction (horizontally or vertically) looks like a window on another world, you look around and the blobs stay at their places (unless they hit a border).
Todo:
- prevent key from fast repeating.
- Prevent keys from triggering default browser's action.
- Test gamePad Orientation feature.
Feel free to fix, change, add features in my stead
Special thanks to Björn Lindberg for his original BlobSallad Canvas script, and to Wiiubrew.org for the WiiU browser documentation.
http://dev.opera.com/articles/view/blob-sallad-canvas-tag-and-javascrip/
http://wiiubrew.org/wiki/Internet_Browser
Go to http://cyan.ff6.free.fr/WiiU/ with your WiiU browser and use the gamePad to play with it.
R : Toggle Debug menu display
ZR: Split Blobs
ZL: Join Blobs
Stylys: Catch and move Blobs freely
D-pad change mode.
DPAD mode:
Down: Gravity (Angle) (Default mode)
Hold the gamePad vertically.
Tilt the gamePad to left or right to move the blobs. quickly shake the gamePad up to make a jump. Jump height depends on shaking strength.
Press D-Pad Down to reset the angle/gravity origin.
Up: Air Bubble (Accelerometer)
Hold the gamePad horizontally.
tilting it in all direction make the blob move to the upper part, like air bubble in water.
Left: Friction (Gyroscope)
Hold the gamePad vertically.
moving slowly the gamePad in a direction (horizontally or vertically) and suddenly stop will make the Blob continue moving in that direction.
Right: Look Around (Gyroscope)
Hold the gamePad vertically.
Moving the gamePad in a direction (horizontally or vertically) looks like a window on another world, you look around and the blobs stay at their places (unless they hit a border).
Todo:
- prevent key from fast repeating.
- Prevent keys from triggering default browser's action.
- Test gamePad Orientation feature.
Feel free to fix, change, add features in my stead
Special thanks to Björn Lindberg for his original BlobSallad Canvas script, and to Wiiubrew.org for the WiiU browser documentation.
http://dev.opera.com/articles/view/blob-sallad-canvas-tag-and-javascrip/
http://wiiubrew.org/wiki/Internet_Browser