jakubg1 / OpenSMCE

Game engine which allows creating a broad range of marble popper games.
MIT License
14 stars 11 forks source link

Add lives system config #105

Closed jakubg1 closed 1 week ago

jakubg1 commented 1 year ago

In gameplay.json, add a new lives section. Here are some example configs:

"lives": {
    "type": "none",
    "rollbackScoreAfterFailure": true
}

No lives system at all. The player has infinite attempts for any level.

"lives": {
    "type": "coins",
    "coinsForLife": 30,
    "rollbackScoreAfterFailure": false
}

Classic Luxor lives system.

"lives": {
    "type": "score",
    "scoreForLife": 50000,
    "countUnmultipliedScore": true,
    "rollbackScoreAfterFailure": false
}

Zuma-like lives system. The global score multiplier which would base on difficulty does not matter, even if not turned off by the score event.

Move this to difficulty configs once they're introduced.

jakubg1 commented 1 week ago

Implemented in https://github.com/jakubg1/OpenSMCE/commit/3f4b8dc3b1908ff306fe770090c5846e8a513a7c