예제 #1
0
        void reset()
        {
            _showTimer = new EggTimer(10.Seconds(), () => { Visible = false; });

            Position = Tile.ToCenterCanvas(new Vector2(14, 17.2f));

            Visible = false;
        }
예제 #2
0
        public async ValueTask Initialise(IJSRuntime jsRuntime)
        {
            _canvasTimingInformation = new CanvasTimingInformation();

            _tempSprites = new TimedSpriteList();

            _pauser = new EggTimer(0.Milliseconds(), () => { });


            // POINTER: You can change the starting Act by using something like:
            //_currentAct = new TornGhostChaseAct(new AttractAct());

            // ReSharper disable once HeapView.BoxingAllocation
            _currentAct = await _mediator.Send(new GetActRequest("AttractAct"));

            await _gameSoundPlayer.LoadAll(jsRuntime);

            _initialised = true;
        }