Update vanishing_tiles.py

This commit is contained in:
Mr.Paradox 2026-06-11 20:23:25 +05:30 committed by GitHub
parent 767fbe3a28
commit 643ac51a08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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):
})
bs._map.register_map(VanishingTilesMap)
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