Exemplo n.º 1
0
 public RLBrain(
     RLCreature _myDude,
     RLGame _game
 )
 {
     myDude = _myDude;
     game = _game;
 }
Exemplo n.º 2
0
 //RLCreature player;
 public PlayerInput(
     RLGame _game
     //RLCreature _player
 )
 {
     game = _game;
     //player = _player;
 }
Exemplo n.º 3
0
        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();
        }
Exemplo n.º 4
0
        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...
        }
Exemplo n.º 5
0
 public ChaserBrain(
     RLCreature _myDude,
     RLGame _game)
     : base(_myDude, _game)
 {
 }