#TouhouDanmakufu[Stage]
#Title[Remilia Boss Fight, normal mode.]
#Text[Boss Fight against Remilia, the elegant vampire.]
#BGM[.\BGM2.wav]
#Player[FREE]
#PlayLevel[Normal]
#ScriptVersion[2]


script_stage_main{
#include_function ".\FunctionLib.dnh"
let CSD = GetCurrentScriptDirectory;
let boss_script = CSD~"Remilia PLURAL - N.txt";
let bg1 = CSD~"world07.png"; //5,131,123,252
let bg2 = CSD~"world07b.png"; //0,0,256,256
let bg3 = CSD~"world07b.png"; //0,0,256,256

  @Initialize{
  LoadGraphic(bg1);
  LoadGraphic(bg2);
  LoadGraphic(bg3);
  boss;
  }

  @MainLoop{
    yield;
  }

  let bgscroll1=0;
  let bgscroll2=0;

  @BackGround{

  SetTexture(bg2);
  SetGraphicRect(0+bgscroll1,0,256+bgscroll1,256);
  SetAlpha(100);
  SetGraphicScale(2.2,2.2);
  SetRenderState(ALPHA);
  DrawGraphic(GetCenterX,GetCenterY);

  bgscroll1+=0.5;

  SetTexture(bg3);
  SetGraphicRect(0+bgscroll2,0,256+bgscroll2,256);
  SetAlpha(100);
  SetGraphicScale(2.2,2.2);
  SetRenderState(ALPHA);
  DrawGraphic(GetCenterX,GetCenterY);
 
  bgscroll2+=1;

  SetTexture(bg1);
  SetGraphicRect(5,131,123,252);
  SetAlpha(255);
  SetGraphicScale(1.5,1.5);
  SetRenderState(ADD);
  DrawGraphic(GetCenterX,GetCenterY-100);

  }

  @Finalize{

  }

  task boss{
  wait(120);
  CreateEnemyBossFromFile(boss_script, 0, 0, 0, 0, 0);
  WaitForNoEnemy;
  wait(120);
  ClearStage;
  }

}
