예제 #1
0
 public FInventory(FActor _player)
 {
     player = _player;
     bag = new FItem[16];
     belt = new FItem[12];
     current_set = 0;
     bag_item_selected = 0;
 }
예제 #2
0
        protected override void LoadContent()
        {
            sprites = new LinkedList<FTexture2D>();
            spriteBatch = new SpriteBatch(GraphicsDevice);

            game_camera = new FCamera(spriteBatch, 0, 0, graphics.GraphicsDevice.Viewport.Width, graphics.GraphicsDevice.Viewport.Height/12*9, 16, 9);
            player_one = new FActor(new Vector3(1, 1, 0));
            player_one_inventory = new FInventory(player_one);

            createTestBits();
        }