コード例 #1
0
 static void Main(string[] args)
 {
     using (AnglerGame game = new AnglerGame())
     {
         game.Run();
     }
 }
コード例 #2
0
        public static PlayerComponent CreateAndAdd(AnglerGame game, Player player)
        {
            PlayerComponent newPlayer = new PlayerComponent(game, player);

            game.Components.Add(newPlayer);
            return(newPlayer);
        }
コード例 #3
0
        public MapRenderer(AnglerGame game, Map map)
            : base(game, RenderOrder.GraphicLayer)
        {
            m_map        = map;
            shadowCaster = new ShadowCaster(this);

            Components.Add(shadowCaster);
        }
コード例 #4
0
        public GraphicEngine(AnglerGame game, RenderOrder order = RenderOrder.Background)
            : base(game)
        {
            DrawOrder  = (int)order;
            Components = new List <GraphicsEngineComponent>();

            SortMode        = SpriteSortMode.Deferred;
            BlendState      = BlendState.AlphaBlend;
            SamplerState    = SamplerState.LinearClamp;
            StencilState    = DepthStencilState.None;
            RasterizerState = new RasterizerState()
            {
                ScissorTestEnable = true
            };
        }
コード例 #5
0
 protected AnglerGameDrawableComponent(AnglerGame game)
     : base(game)
 {
 }
コード例 #6
0
 public Spoofed2DGraphicEngine(AnglerGame game, RenderOrder order = RenderOrder.EffectsLayer)
     : base(game, order)
 {
     StencilState = DepthStencilState.DepthRead;
 }
コード例 #7
0
 public PlayerComponent(AnglerGame game, Player player)
     : base(game)
 {
     DrawOrder = player == World.MainPlayer ? (int)RenderOrder.OverlayLayer : (int)RenderOrder.NPCLayer;
     Player    = player;
 }
コード例 #8
0
        }                                               // Remove the tilde from the object pointed to by the KeyHandler

        public InputHandler(AnglerGame game)
            : base(game)
        {
        }
コード例 #9
0
 public AudioManager(AnglerGame game)
     : base(game)
 {
 }