// Mario (red shirt, blue overalls, red hat) int marioScreenX = marioX - cameraX; int marioScreenY = marioY; // Overalls g.setColor(0, 0, 200); g.fillRect(marioScreenX, marioScreenY+10, 16, 12); // Skin g.setColor(255, 220, 170); g.fillRect(marioScreenX+2, marioScreenY+2, 12, 10); // Hat g.setColor(200, 0, 0); g.fillRect(marioScreenX, marioScreenY, 16, 6); // Mustache g.setColor(100, 50, 0); g.drawLine(marioScreenX+4, marioScreenY+8, marioScreenX+8, marioScreenY+8); g.drawLine(marioScreenX+8, marioScreenY+8, marioScreenX+12, marioScreenY+8);
Several distinct versions of the Super Mario Bros Java game circulated on popular mobile download portals like GetJar, Mobile9, and Hovr: super mario bros java game 240x320
// Collect coins Iterator<Coin> it = coins.iterator(); while (it.hasNext()) Coin c = it.next(); if (marioX < c.x + c.size && marioX + MARIO_WIDTH > c.x && marioY < c.y + c.size && marioY + MARIO_HEIGHT > c.y) it.remove(); score += 10; // Mario (red shirt, blue overalls, red hat)
}
If you want, I can:
Despite the stiff, clicky nature of plastic phone buttons, the gameplay loops remained incredibly addictive. Gamers braved sub-30 FPS frame rates and MIDI-synthesized theme songs just to play Mario on the school bus or during work breaks. Why the 240x320 Mario Game Legacy Endures // Mario (red shirt
public Mario(int x, int y) rect = new Rectangle(x, y, 20, 20);