ScarletBlackMarket/script/sample/SampleRB03.txt

56 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

2022-08-20 05:42:00 +00:00
<EFBFBD><EFBFBD>#qg<71>e>_U^<5E><>[Stage]
#ScriptVersion[3]
#Title["SampleRB03"]
#Text["SampleRB03<1A><07>pen0<6E>wb_;u<>Pn0<6E>c;u"]
@Initialize
{
TSample();
}
@MainLoop
{
yield;
}
task TSample
{
//;u<>P<EFBFBD>0<EFBFBD>0-<2D><>[
let dir = GetCurrentScriptDirectory();
let path = dir ~ "Effect01.png";
let obj = ObjPrim_Create(OBJ_SPRITE_LIST_2D); //2D<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0ub
Obj_SetRenderPriorityI(obj, 21); //<00>c;u*QHQ<48>^<5E>0-<2D><>[
ObjPrim_SetTexture(obj, path); //<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0-<2D><>[
//1d0<64>0<1A><>c;uCQ(44, 54)-(71,105)<00>045<00><00>V<EFBFBD><56>02 P<>b'Yg00(100, 150)k0<6B>c;u
ObjSpriteList2D_SetSourceRect(obj, 44, 54, 71, 105); //<00>c;uCQ-<2D><>[(44, 54)-(71,105)
ObjSpriteList2D_SetDestCenter(obj); //<02><>p<EFBFBD>0(0, 0)-N<>_k0M<30>n
ObjRender_SetAngleZ(obj, 45); //45<00><00>V<EFBFBD><56>
ObjRender_SetScaleXYZ(obj, 2, 2, 1); //X,Y<00>eTk02 Pk0<6B>b'Y
ObjRender_SetPosition(obj, 100, 150, 0); //(100, 150)k0<6B>y<EFBFBD>R
ObjSpriteList2D_AddVertex(obj); //<00>c;u<>[a<><61><EFBFBD><EFBFBD>R
//2d0<64>0<1A><>c;uCQ(81, 117)-(25, 143)<00>045<00><00>V<EFBFBD><56>02 P<>b'Yg00(200, 300)k0<6B>c;u
ObjSpriteList2D_SetSourceRect(obj, 81, 117, 125, 143); //<00>c;uCQ-<2D><>[(81, 117)-(25, 143)
ObjSpriteList2D_SetDestCenter(obj); //<02><>p<EFBFBD>0(0, 0)-N<>_k0M<30>n
ObjRender_SetPosition(obj, 200, 300, 0); //(200, 300)k0<6B>y<EFBFBD>R
ObjSpriteList2D_AddVertex(obj); //<00>c;u<>[a<><61><EFBFBD><EFBFBD>R
//3d0<64>0<1A><>c;uCQ(140, 39)-(186, 86)<00>00<00><00>V<EFBFBD><56>02 P<>b'Yg00(300, 200)k0<6B>c;u
ObjSpriteList2D_SetSourceRect(obj, 140, 39, 186, 86); //<00>c;uCQ-<2D><>[(140, 39)-(186, 86)
ObjSpriteList2D_SetDestCenter(obj); //<02><>p<EFBFBD>0(0, 0)-N<>_k0M<30>n
ObjRender_SetAngleZ(obj, 0); //0<00><00>V<EFBFBD><56>
ObjRender_SetPosition(obj, 300, 200, 0); //(300, 200)k0<6B>y<EFBFBD>R
ObjSpriteList2D_AddVertex(obj); //<00>c;u<>[a<><61><EFBFBD><EFBFBD>R
//240<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>__j
loop(240){yield;}
Obj_Delete(obj); //<00>c;u<>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0<EFBFBD>0JRd<52>
//<00>0<EFBFBD>0<EFBFBD>0<EFBFBD>0B}<7D>N
CloseStgScene();
}