コード例 #1
0
 public void loadImage2(Texture2D image)
 {
     this.z_backgroundImage2 = new ScrollingBackground(image);
     this.z_backgroundImage2.Position = new Vector2(0f, 0f - this.z_viewPort.Height);
     this.z_backgroundImage2.IsAlive = true;
 }
コード例 #2
0
 //Constructor
 public ScrollingBackgroundManager(Rectangle viewPort)
 {
     this.z_viewPort = viewPort;
     this.z_backgroundImage1 = null;
     this.z_backgroundImage2 = null;
 }
コード例 #3
0
 public void loadImage1(Texture2D image)
 {
     this.z_backgroundImage1 = new ScrollingBackground(image);
     this.z_backgroundImage1.Position = Vector2.Zero;
     this.z_backgroundImage1.IsAlive = true;
 }
コード例 #4
0
 public void loadImage1(Texture2D image)
 {
     this.z_backgroundImage1 = new ScrollingBackground(image);
     this.z_backgroundImage1.setPosition(new Vector2(0f, 0f));
     this.z_backgroundImage1.setIsAlive(true);
 }