Skip to content

Old moldy rusted EM Zaccaria Combat => MPF/FAST-powered Zaccaria Combat

Notifications You must be signed in to change notification settings

deathsave/combat

Repository files navigation

Combat by Zaccaria

Combat! Pinball

Brought back from the dead by unrared, Steve and Josiah. Thanks to the guys at FAST and the Mission Pinball Project for all the support.

Development

Installing MPF

On Ubuntu/Debia Linux

See ./.github/workflows/python-app.yml to match the CI build.

On MacOS

  1. Install brew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install system deps: brew install SDL2 SDL2_mixer SDL2_image SDL2_ttf gstreamer pkg-config and follow instructions to add pyenv to your shell.
  3. Install pyenv: curl https://pyenv.run | bash
  4. Setup shell to run pyenv on load: echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bash_profile echo '[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bash_profile echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
  5. Now reload your bash profile: source ~/.bash_profile # this will make pyenv available
  6. Install Python 3.11: pyenv install 3.11.10
  7. And make it the default python version: pyenv global 3.11.10
  8. Install Cython: pip install --upgrade Cython==0.29.36
  9. Install mpf: pip install mpf==0.57
  10. Install mpf-mc: pip install mpf-mc==0.57
  11. Install mpf-monitor: pip install mpf-monitor==0.57
  12. Install foreman: gem install foreman - this makes it possible to run all 3 processes in single terminal window for local development.

Running

  • Development - bin/dev will run both mpf and mpf-mc without the console GUI. It will also run mpf monitor so you can interact with it.
  • Production - bin/run will run for production using the real hardware devices and the console GUI.
  • Test - Run a test with bin/test tests/test_something.py or simply bin/test to run all tests from the ./tests folder.

Tinkering

Run bin/dev to start the game in development mode. Then use the keyboard for simulating switch hits.

Here is what we have mapped thus far:

Primary Switches

  • Use the keys z and / for left and right flipper respectively
  • The key s will start a game
  • The key l will launch a ball
  • Use the keys 1 and 2 to trigger a trough switch (drains a ball)

Scoring Switches

  • The key p hits a Pop Bumper
  • The key d hits a "B.O.M.B.S." Drop Target
  • The key g simulates a ball entering the "Gun" (right hole)
  • The key m simulates a ball entering the "Missile" (left hole)
  • The key h advances the "hole score" value
  • The key b advances the "end of ball bonus" value
  • The key c hits the "Special" stationary target
  • The key n simulates one tick of the "Spinner"
  • The key t triggers a tilt (3 ends the ball)

Conventions

  • time shows in with 0.3s base (0.15s, 0.6s, 1.2s, etc.).

About

Old moldy rusted EM Zaccaria Combat => MPF/FAST-powered Zaccaria Combat

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published