mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2026-08-15 13:03:08 +00:00
Update vanishing_tiles.py
This commit is contained in:
parent
767fbe3a28
commit
643ac51a08
1 changed files with 31 additions and 32 deletions
|
|
@ -1,10 +1,5 @@
|
|||
# ba_meta require api 9
|
||||
from __future__ import annotations
|
||||
from bascenev1lib.gameutils import SharedObjects
|
||||
import bascenev1 as bs
|
||||
import babase
|
||||
import random
|
||||
from typing import Optional, List, Dict, Any
|
||||
|
||||
# Vanishing Tiles - BombSquad Minigame
|
||||
# Tiles disappear one by one. Survive all rounds to win.
|
||||
|
|
@ -15,12 +10,18 @@ plugman = dict(
|
|||
description="Tiles disappear gradually. Survive each round to continue. Last player standing wins!",
|
||||
external_url="https://discord.gg/sQGDsztQcy",
|
||||
authors=[
|
||||
{"name": "Mr.ghosty", "email": "", "discord": "gaurangbroyo"},
|
||||
{"name": "Mr.Paradox", "email": "", "discord": "gaurangbroyo"},
|
||||
{"name": "senchx", "email": "", "discord": "senchx0"},
|
||||
],
|
||||
version="2.1.0",
|
||||
version="2.1.1",
|
||||
)
|
||||
|
||||
from typing import Optional, List, Dict, Any
|
||||
import random
|
||||
import babase
|
||||
import bascenev1 as bs
|
||||
from bascenev1lib.gameutils import SharedObjects
|
||||
|
||||
|
||||
class Player(bs.Player['Team']):
|
||||
def __init__(self) -> None:
|
||||
|
|
@ -103,7 +104,7 @@ class VanishingTilesGame(bs.TeamGameActivity[Player, Team]):
|
|||
|
||||
if self._show_credits:
|
||||
self._credit_node = bs.newnode('text', attrs={
|
||||
'text': 'Made by Mr.Ghosty',
|
||||
'text': 'Made by Mr.Paradox',
|
||||
'scale': 0.7, 'position': (0, 8), 'shadow': 0.8, 'flatness': 1.0,
|
||||
'color': (1.0, 0.3, 0.8, 1.0), 'h_align': 'center', 'v_attach': 'bottom',
|
||||
})
|
||||
|
|
@ -403,14 +404,12 @@ class VanishingTilesMap(bs.Map):
|
|||
})
|
||||
|
||||
|
||||
try:
|
||||
bs._map.register_map(VanishingTilesMap)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
|
||||
# ba_meta export babase.Plugin
|
||||
class Main(babase.Plugin):
|
||||
def __init__(self) -> None:
|
||||
babase.app.classic.add_coop_practice_level(bs.Level(
|
||||
name='Vanishing Tiles', displayname='Vanishing Tiles',
|
||||
gametype=VanishingTilesGame, settings={},
|
||||
preview_texture_name='powerupHealth',
|
||||
))
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue