Ejemplo n.º 1
0
        public StageFactory(MegamanGame game)
        {
            this.content = game.Content;
            this.game = game;
            this.megaman = game.Megaman;

            enemySpriteFactory = new EnemySpriteFactory(content);
            itemSpriteFactory = new ItemSpriteFactory(content);
        }
Ejemplo n.º 2
0
        public ControllerFactory(Scene scene, MegamanGame game, Megaman megaman)
        {
            this.scene = scene;
            this.game = game;
            this.megaman = megaman;
            bindings = new Dictionary<Tuple<Keys, Buttons>, ICommand>();

            Reset();
        }
Ejemplo n.º 3
0
        public MenuChoice(String id, ContentManager content, String destination, MegamanGame game, Vector2 position, String text)
        {
            this.id = id;
            this.destination = destination;
            this.down = id;
            this.game = game;
            this.left = id;
            this.position = position;
            this.right = id;
            this.text = text;
            this.up = id;

            font = content.Load<SpriteFont>("Fonts/Menu_Font");
        }