static void Main(string[] args) { using (AnglerGame game = new AnglerGame()) { game.Run(); } }
public static PlayerComponent CreateAndAdd(AnglerGame game, Player player) { PlayerComponent newPlayer = new PlayerComponent(game, player); game.Components.Add(newPlayer); return(newPlayer); }
public MapRenderer(AnglerGame game, Map map) : base(game, RenderOrder.GraphicLayer) { m_map = map; shadowCaster = new ShadowCaster(this); Components.Add(shadowCaster); }
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 }; }
protected AnglerGameDrawableComponent(AnglerGame game) : base(game) { }
public Spoofed2DGraphicEngine(AnglerGame game, RenderOrder order = RenderOrder.EffectsLayer) : base(game, order) { StencilState = DepthStencilState.DepthRead; }
public PlayerComponent(AnglerGame game, Player player) : base(game) { DrawOrder = player == World.MainPlayer ? (int)RenderOrder.OverlayLayer : (int)RenderOrder.NPCLayer; Player = player; }
} // Remove the tilde from the object pointed to by the KeyHandler public InputHandler(AnglerGame game) : base(game) { }
public AudioManager(AnglerGame game) : base(game) { }