Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TouhouDanmakufu
- #Title [Test script]
- #Text [shot on damage testing]
- #ScriptVersion [2]
- #Player[FREE]
- script_enemy_main {
- let CSD = GetCurrentScriptDirectory;
- let bosstex="script\ExRumia\ExRumia.png";
- let count=0;
- @Initialize {
- SetLife(2000);
- SetScore(1000000);
- LoadGraphic(bosstex);
- MagicCircle(false);
- SetX(GetCenterX);
- SetY(100);
- firebulletz;
- }
- @MainLoop {
- SetCollisionA(GetX,GetY,32);
- SetCollisionB(GetX,GetY,32);
- count=GetHitCount;
- yield;
- }
- task firebulletz{
- loop{
- while(count>0){
- CreateShot01(GetX,GetY,2,rand(180,360),RED05,0);
- count--;
- yield;
- }
- yield;
- }
- }
- @DrawLoop {
- SetTexture(bosstex);
- SetGraphicRect(0,0,63,63);
- DrawGraphic(GetX,GetY);
- }
- @BackGround {
- yield;
- }
- @Finalize {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment