public DogTreasureHuntScene(Ecosystem ecosystem, Keycosystem keycosystem, SpriteBatch spriteBatch, ContentManager content, StandardKeyboard keyboard) { this.Ecosystem = ecosystem; this.Keycosystem = keycosystem; this.Keyboard = keyboard; this.SpriteBatch = spriteBatch; this.Content = content; }
public KbScene( Ecosystem ecosystem, Keycosystem keycosystem, DirectiveRenderer renderer, FpsCounter fpsCounter) { this.Ecosystem = ecosystem; this.Keycosystem = keycosystem; this.Renderer = renderer; this.FpsCounter = fpsCounter; this.Camera = renderer.GetViewport("default"); }
public GameSelectScene( Ecosystem ecosystem, Keycosystem keycosystem, Director director, DebugLogger debugLogger, DirectiveRenderer renderer, FpsCounter fpsCounter, Window window) { this.Ecosystem = ecosystem; this.Keycosystem = keycosystem; this.Director = director; this.DebugLogger = debugLogger; this.Renderer = renderer; this.FpsCounter = fpsCounter; this.Window = window; this.Camera = renderer.GetViewport("default"); }
public TestMapScene( Ecosystem ecosystem, Keycosystem keycosystem, DebugLogger debugLogger, Director director, DirectiveRenderer renderer, FpsCounter fpsCounter, MessageRouter messageRouter, GameTimer timer) { this.Ecosystem = ecosystem; this.Keycosystem = keycosystem; this.DebugLogger = debugLogger; this.Renderer = renderer; this.FpsCounter = fpsCounter; this.MessageRouter = messageRouter; this.Timer = timer; this.PlayerPosition = messageRouter.GetPubKey <Position2d>("player-position"); this.SubKey = messageRouter.GetSubKey(); this.Camera = renderer.GetViewport("default"); }
public static DebugLogger AddControlInfo(this DebugLogger debug, Keycosystem keycosystem) { var keyboard = keycosystem.GetController <StandardKeyboard>(1); var mouse = keycosystem.GetController <StandardMouse>(1); debug.AddPage( () => "Control A:", () => $"IsPressed: {keyboard.A.IsPressed}, LastTickPressed: {keyboard.A.LastTickPressed}, LastTickReleased: {keyboard.A.LastTickReleased}", DebugLogger.EmptyLine, () => "Control Z:", () => $"IsPressed: {keyboard.Z.IsPressed}, LastTickPressed: {keyboard.Z.LastTickPressed}, LastTickReleased: {keyboard.Z.LastTickReleased}", DebugLogger.EmptyLine, () => "Arrow keys:", () => $"IsPressed: {keyboard.ArrowKeys.IsPressed}, LastTickPressed: {keyboard.ArrowKeys.LastTickPressed}, LastTickReleased: {keyboard.ArrowKeys.LastTickReleased}", () => $"Direction: {keyboard.ArrowKeys.Direction}, LastTickDirectionChanged: {keyboard.ArrowKeys.LastTickDirectionChanged}, DirectionHeld: {keyboard.ArrowKeys.DurationDirectionHeld}", DebugLogger.EmptyLine, () => "Mouse:", () => $"PrimaryClick: {mouse.PrimaryClick.IsPressed}, SecondaryClick: {mouse.SecondaryClick.IsPressed}, LeftHanded: {mouse.LeftHanded}", () => $"X: {mouse.Cursor.X}, Y: {mouse.Cursor.Y}", () => $"Scroll X: {mouse.Scroll.X}, Scroll Y: {mouse.Scroll.Y}, Scroll Click: {mouse.MiddleClick.IsPressed}" ); return(debug); }