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

Open jakubg1 opened 1 year 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.