mjocean / PyProcGameHD-SkeletonGame

The current HD VGA Fork of PyProcGame (w/ HW Accel) + SkeletonGame to accelerate new game development
http://pinballprogramming.com
MIT License
14 stars 8 forks source link

Bonus Mode #11

Closed UncivilEngineer closed 7 years ago

UncivilEngineer commented 7 years ago

Could you explain how the bonus mode is supposed to work?

mjocean commented 7 years ago

BonusMode remains somewhat incomplete, but I've just committed a basic functionality. You can see the changelog here

Basic usage is as such: optional

  1. Define a bonus definitions yaml file which associates names with point values: example bonus_defs.yaml
  2. Pull the bonus definitions into your game code in your main game class using the define_bonuses() method which takes a file as an argument example from SampleGame.

Required:

  1. From some mode code, you can call self.game.bonus(name of bonus)
    • if you do not have that bonus pre-defined, you will want to pass a named argument: value which is the number of points.

I will eventually be adding constraints for the bonuses, which is the number of each bonus allowed per ball and per game.