public RLBrain( RLCreature _myDude, RLGame _game ) { myDude = _myDude; game = _game; }
//RLCreature player; public PlayerInput( RLGame _game //RLCreature _player ) { game = _game; //player = _player; }
protected override void Initialize() { Game = new RLGame(); Game.Render = new RenderTarget2D( graphics.GraphicsDevice, GameVars.TileSize * GameVars.ScreenWidth, GameVars.TileSize * GameVars.ScreenHeight ); GameVars.WindowWidth = graphics.PreferredBackBufferWidth; GameVars.WindowHeight = graphics.PreferredBackBufferHeight; Res.Textures = new Dictionary<string, Texture2D>(); Res.Fonts = new Dictionary<string, SpriteFont>(); base.Initialize(); }
public Test(RLGame game) { game.EventListeners.Add( new MoveEventListener() ); SavedLevel _level = RLSaveIO.LoadLevel( RLSaveIO.cwd+"/Content/Data/testsave"); game.World = _level.TileMap; game.Player = _level.Creatures.Find( x => x.ID == 0); game.World.Creatures = _level.Creatures; foreach (RLCreature _c in game.World.Creatures) { _c.Brain = new ChaserBrain(_c, game); } game.Player.Brain = null; //heh... }
public ChaserBrain( RLCreature _myDude, RLGame _game) : base(_myDude, _game) { }