Skip to content

Customization Guide

Sapthesh V edited this page Apr 15, 2026 · 1 revision

🎨 Customizing the Game

Want to make the level your own? The generate_mario.py script is highly modular. Here is how you can tweak it to fit your profile's aesthetic.

⏱️ Changing the Speed

If you want Mario to run faster or slower, find the <animateMotion> tag attached to Mario near the bottom of the script. Change dur="20s" to dur="10s" for a speedrun, or dur="30s" for a relaxed walk!

🖌️ Changing the Colors

The colors are strictly defined in the <style> block of the SVG. You can change them to create different themes!

Element Default Color CSS Class to Edit Theme Idea (e.g., Underground Level)
Sky #87CEEB (Light Blue) .bg #000000 (Pitch Black)
Ground #c84c0c (Retro Orange) .ground #0038A8 (Dark Blue Brick)
Clouds #FFFFFF (White) cloud_colors map Remove entirely or make gray

👾 Editing the Sprite

Mario isn't an image; he is a 2D array of text! You can edit the mario_pixels array in the script to draw your own character.

# 'R' is Red, 'B' is Brown, 'S' is Skin color, 'O' is Overalls (Blue)
mario_pixels = [
    "  RRRRR     ", 
    " RRRRRRRRR  ", 
    " BBSSSO     ", 
    # ... edit these letters to change the pixel art!
]

if you want Luigi, simply change the Red hex code (#e52521) in the mario_colors dictionary to Green (#00A800)!

Clone this wiki locally