Ejemplo n.º 1
0
    static void Main(string[] args)
    {
        using (TopdownHorror.ThisGame game = new TopdownHorror.ThisGame())
        {
#if !DEBUG
            game.IsFullScreen = true;
#endif
            game.Run();
        }
    }
Ejemplo n.º 2
0
        public static Player FromAnimation(ThisGame game, Animation anim, Animation feetAnim)
        {
            PhysicsObject feet = new PhysicsObject(48.0, 48.0);
            Player        plr  = new Player();

            //plr.Size = new Vector(64.0, 64.0);
            plr.Animation = anim;
            plr.Animation.Start();
            plr.Feet           = feet;
            plr.Feet.Animation = feetAnim;
            plr.Feet.Animation.Start();
            plr.CurrentGame = game;
            return(plr);
        }