Skip to content
Mario on your website.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
haxe
README
anim.luigi.1x.png
anim.luigi.2x.png
anim.luigi.ai
anim.mario.1x.png
anim.mario.2x.png
anim.mario.ai
index.html
mario.js
sample1.js

README

NAME

mario.js - Mario on your website.



SYNOPSYS

// create Mario
var mario = new Mario({
    x: 100,  // pixels from LEFT
    y: 100,  // pixels from TOP
});
mario.JUMP();

// create Mario controllable with keyboard
var mario_controllable = new Mario({
    x:      200,
    y:      200,
    scale:  2,        // 1 or 2
    status: 'SUPER',  // 'MINI', 'SUPER' or 'FIRE'
});
new Mario.Controller({
    target: mario_controllable
});

// create Luigi
var luigi = new Luigi({
    x: 300,
    y: 300
});


DESCRIPTION

Mario/Luigi class that create and can control Mario/Luigi.



INSTALLATION(?)

 * Load "mario.js".
 * No other libraries are required.



NOTE

This library is unavailable on InternetExplorer (< 8), because uses "data scheme (data://...)" to load animation images.

You can’t perform that action at this time.