ScarletBlackMarket/sample/SampleRB01.txt

37 lines
1.3 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#東方弾幕風[Stage]
#ScriptVersion[3]
#Title["SampleRB01"]
#Text["SampleRB01矩形(長方形)画像の描画"]
@Initialize
{
TSample();
}
@MainLoop
{
yield;
}
task TSample
{
//画像パス設定
let dir = GetCurrentScriptDirectory();
let path = dir ~ "Effect01.png";
let obj = ObjPrim_Create(OBJ_SPRITE_2D); //2Dスプライトオブジェクト生成
Obj_SetRenderPriorityI(obj, 21); //描画優先度を設定
ObjPrim_SetTexture(obj, path); //テクスチャを設定
ObjSprite2D_SetSourceRect(obj, 44, 54, 71, 105); //描画元設定(44, 54)-(71,105)
ObjSprite2D_SetDestRect(obj, 100, 150, 127, 201); //描画先設定(100, 150)-(127, 201)
//240フレーム待機
loop(240){yield;}
Obj_Delete(obj); //描画オブジェクト削除
//ステージ終了
CloseStgScene();
}