protected BaseActor(TheGame game, Room room, int speedCoef) : base(game) { Room = room; Visible = false; Enabled = false; _speedCoef = speedCoef; }
public TheGame() { _graphics = new GraphicsDeviceManager(this) { IsFullScreen = false, PreferredBackBufferHeight = (Maps.CapacityY + 2)*32, PreferredBackBufferWidth = Maps.CapacityX*16, }; Content.RootDirectory = "Content"; MapBank = 1; Range = 3; BackColor = BackColorEnum.Black; _splash = new Splash(this); _splash.OnPlayingStarted += OnPlayingStarted; _room = new Room(this); _room.OnPlayingFinished += OnRoomPlayingFinished; OnRoomPlayingFinished(this, new EventArgs()); }