Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu[Stage]
- #Title[Stage 1]
- #Text[Cyberspace]
- #Image[]
- #Background[]
- #BGM[]
- #Player[FREE]
- #ScriptVersion[2]
- script_stage_main{
- //-----stage functions---
- function wait(let frames){
- loop(frames){yield;}
- }
- function WaitForZeroEnemy{
- while(GetEnemyNum != 0){yield;}
- }
- //------------variables---------------
- let CSD = GetCurrentScriptDirectory;
- let bg = CSD ~ "background.png";
- //-------BGM--------------------------------
- let beloved ="./Stage 1/Beloved Tomboyish Daughter.mp3";
- @Initialize{
- LoadGraphic(bg);
- stage;
- }
- @MainLoop{
- yield;
- }
- @Background{
- SetTexture(bg);
- SetGraphicRect(0,0,600,375);
- SetAlpha(255);
- SetGraphicAngle(180,0,0);
- SetGraphicScale(1,1);
- DrawGraphic(GetCenterX,GetCenterY);
- }
- @Finalize{
- }
- task stage{
- wait(120);
- CreateEnemyBossFromFile(CSD ~"Cirno Boss Fight.txt", 0, 0, 0, 0, 0);
- WaitForZeroEnemy;
- wait(120);
- Clear;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment