Ejemplo n.º 1
0
        public static AbstractEvent GetDefaultDeathEvent()
        {
            SpriteFontContainer spriteFontContainer = new SpriteFontContainer(SpriteFactory.GetLightSpriteFont(), Color.Red);
            String        deathMessage  = "You are Dead";
            AbstractEvent abstractEvent = new DefaultDeathEvent(new TimeSpan(0, 0, 0, 3), new TimeSpan(0, 0, 0, 5), deathMessage, spriteFontContainer);

            return(abstractEvent);
        }
Ejemplo n.º 2
0
        public static AbstractEvent GetDefaultSubLevelTransitionEvent()
        {
            SpriteFontContainer completeFontContainer = new SpriteFontContainer(SpriteFactory.GetLightSpriteFont(), Color.Orange);
            String        completeMessage             = "Onward!";
            AbstractEvent abstractEvent = new DefaultSubLevelTransitionEvent(new TimeSpan(0, 0, 0, 0), new TimeSpan(0, 0, 0, 3),
                                                                             completeMessage, completeFontContainer);

            return(abstractEvent);
        }
Ejemplo n.º 3
0
        public static AbstractEvent GetDefaultLevelCompleteEvent()
        {
            SpriteFontContainer completeFontContainer = new SpriteFontContainer(SpriteFactory.GetLightSpriteFont(), Color.Azure);
            String completeMessage = "Level Complete!";
            SpriteFontContainer scoreFontContainer = new SpriteFontContainer(SpriteFactory.GetSoulsSpriteFont(), Color.Azure);
            String        scoreMessage             = "Your score is " + ScoreManager.GetScore();
            AbstractEvent abstractEvent            = new DefaultLevelCompleteEvent(new TimeSpan(0, 0, 0, 0), new TimeSpan(0, 0, 0, 3), new TimeSpan(0, 0, 0, 5),
                                                                                   completeMessage, scoreMessage, completeFontContainer, scoreFontContainer);

            return(abstractEvent);
        }