Update some gamemodes for co-op support

(these games were made to also be played in co-op, during 1.6 Eric forgot to add the ability to register games in Campaign. Those a mod was required to play such gamemodes in co-op. But thanks to now added Campaign support, there's no more need of such a mod.)
This commit is contained in:
! Freaku 2024-02-16 01:05:27 +05:30 committed by GitHub
parent f2f3381235
commit 5db98e37f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 78 additions and 83 deletions

View file

@ -18,22 +18,6 @@ if TYPE_CHECKING:
from typing import Any, Type, Dict, List, Optional
def ba_get_api_version():
return 8
def ba_get_levels():
return [bs._level.Level(
'Explodo Run',
gametype=ExplodoRunGame,
settings={},
preview_texture_name='rampagePreview'), bs._level.Level(
'Epic Explodo Run',
gametype=ExplodoRunGame,
settings={'Epic Mode': True},
preview_texture_name='rampagePreview')]
class Player(bs.Player['Team']):
"""Our player type for this game."""
@ -142,3 +126,18 @@ class ExplodoRunGame(bs.TeamGameActivity[Player, Team]):
# Ends the activity.
self.end(results)
# ba_meta export plugin
class plugin(babase.Plugin):
def __init__(self):
## Campaign support ##
babase.app.classic.add_coop_practice_level(bs.Level(
name = 'Explodo Run',
gametype=ExplodoRunGame,
settings={},
preview_texture_name='rampagePreview'))
babase.app.classic.add_coop_practice_level(bs.Level('Epic Explodo Run',
gametype=ExplodoRunGame,
settings={'Epic Mode': True},
preview_texture_name='rampagePreview'))