예제 #1
0
 public void AddPanel(Panel p)
 {
     panels.Add(p);
     panelTextures.Add(null);
     if (hasLaoded)
     {
         p.LoadContent(Game.Content);
     }
 }
예제 #2
0
        public Camera2D(Vector2 pos, Panel p)
        {
            this.panel = p;
            Resize(p.Width, p.Height);
            view = Matrix.CreateLookAt(new Vector3(pos.X, pos.Y, 1), new Vector3(pos.X, pos.Y, 0), Vector3.Up);

            this.pos = new Vector3(0, 0, 1);
            this.vel = Vector3.Zero;

            maxVel = 100f;
            maxZoom = 1000f;
            dampingFactor = 0.85f;
            accFactor = 10f;
            zoomFactor = 15f;
            zoomAmount = 1f;
        }
예제 #3
0
 public void RemovePanel(Panel p)
 {
     panels.Remove(p);
 }