//-------------------------------------------------------------------------- // ● 初始化对像 // number : 图片编号 //-------------------------------------------------------------------------- public Game_Picture(int number) { this.number = number; this.target_x = this.x; this.target_y = this.y; this.target_zoom_x = this.zoom_x; this.target_zoom_y = this.zoom_y; this.target_opacity = this.opacity; this.tone = new Tone(0, 0, 0, 0); this.tone_target = new Tone(0, 0, 0, 0); this.tone_duration = 0; this.angle = 0; this.rotate_speed = 0; }
//-------------------------------------------------------------------------- // ● 初试化对像 //-------------------------------------------------------------------------- public Game_Screen() { this.tone = new Tone(0, 0, 0, 0); this.tone_target = new Tone(0, 0, 0, 0); this.tone_duration = 0; this.flash_color = Colors.Transparent; this.shake = 0; this.pictures = new List <Game_Picture>(101) { null }; for (var i = 1; i <= 100; i++) { this.pictures.Add(new Game_Picture(i)); } this.weather_type = 0; this.weather_max = 0; }
//-------------------------------------------------------------------------- // ● 显示图片 // name : 文件名 // origin : 原点 // x : X 坐标 // y : Y 坐标 // zoom_x : X 方向放大率 // zoom_y : Y 方向放大率 // opacity : 不透明度 // blend_type : 合成方式 //-------------------------------------------------------------------------- public void show(string name, int origin, double x, double y, double zoom_x, double zoom_y, double opacity, int blend_type) { this.name = name; this.origin = origin; this.x = x; this.y = y; this.zoom_x = zoom_x; this.zoom_y = zoom_y; this.opacity = opacity; this.blend_type = blend_type; this.duration = 0; this.target_x = this.x; this.target_y = this.y; this.target_zoom_x = this.zoom_x; this.target_zoom_y = this.zoom_y; this.target_opacity = this.opacity; this.tone = new Tone(0, 0, 0, 0); this.tone_target = new Tone(0, 0, 0, 0); this.tone_duration = 0; this.angle = 0; this.rotate_speed = 0; }