Skip to content

Repository files navigation

PoseMario

PoseMario

python mediapipe opencv mac


Installing mari0_ae.app

An efficient classic SMB runtime that works on both architectures.

  1. Unzip the app either in Finder or by executing this command:

    unzip ./install/mari0_ae.zip
    
  2. The app should be runnable (by Right Click > Open, or by disabling gatekeeper).

    If it's not runnable, download it from the original source here.

  3. This app is modded with a portal gun. Unless you plan on playing like that, we have to change it back by enabling cheats:

    chmod +x ./install/install.command && ./install/install.command
    
  4. Verify that you can indeed use cheats in the app by going to OPTIONS and scrolling to CHEATS in the menu.

    If you want PoseMario to be playable (in my opinion), switch the mode to CLASSIC and turn on INFINITE TIME and INFINITE LIVES.

    image

    use the arrow keys to navigate the menu

Running the code

  • You may have to enable accessibility settings for your IDE (eg. Code) because PyAutoGUI has to use them to control the keyboard.
  • Run the app via python ./MarioController2.py
  • Seeing logs from MediaPipe before the UI opens is normal.
    • Press p to pause the app, and p again to resume it in 3 seconds. This is useful when setting up mari0_ae without keys pressing accidentally.
    • Press q to quit the app.
  • Note that having the UI not respond to p, q, or a resize is just a common issue from opencv's imshow. If you're really impatient, you can just ^C in the terminal or force quit Python.
  • The app does come with a watermark by default! You can delete the watermark (rm ./watermark.png) or replace it with your own.

Previous versions

Visit here for previous versions of PoseMario, written in Java

About

Game controller for Super Mario Bros. using body pose

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages