UNPKG

@vrspace/babylonjs

Version:

vrspace.org babylonjs client

66 lines (65 loc) 1.85 kB
/** * Super original hide and seek game! * * Player that started the game needs to search for other players. * If seen, both players rush to the place where the game started, first one to arrive, scores. */ export class HideAndSeek extends BasicGame { static instance: any; static createOrJoinInstance(callback: any): void; camera: any; visibilityHelper: VisibilityHelper; fps: number; goalRadius: number; gameIcon: string; searchIcon: string; foundIcon: string; wonIcon: string; lostIcon: string; sounds: { soundSeek: string; soundFail: string; soundVictory: string; soundAlarm: string; soundClock: string; soundTick: string; soundStart: string; soundEnd: string; }; seeker: any; seen: {}; winners: {}; losers: {}; materials: any[]; particleSystem: any; markStartingPosition(): void; particleSource: any; goal: any; goalMaterial: any; scoreBoard: ScoreBoard; startCountdown(delay: any, chatLog: any): void; curtain: any; visibilityCheck: number; updateGameStatus(id: any, playerEvent: any, stateObject: any, sound: any, icon: any, color: any): void; remoteChange(vrObject: any, changes: any): void; inGoalRange(pos: any): boolean; checkEnd(): void; checkVisibility(): void; } import { BasicGame } from './basic-game.js'; import { VisibilityHelper } from "../world/visibility-helper.js"; declare class ScoreBoard extends Form { constructor(game: any, callback: any); game: any; seeker: any; seen: any; winners: any; losers: any; callback: any; init(): void; grid: any; showPlayers(obj: any, score: any, icon: any): void; playerName(vrObject: any): any; } import { Form } from '../ui/widget/form.js'; export {};