SPHITSP実装
This commit is contained in:
@@ -656,6 +656,37 @@ class BuiltinFunction
|
||||
{
|
||||
p.sprite.spunlink(id);
|
||||
}
|
||||
static void SPCOL(PetitComputer p, int id, DefaultValue!(int, false) scale)
|
||||
{
|
||||
scale.setDefaultValue(true);
|
||||
p.sprite.spcol(id, cast(bool)scale);
|
||||
}
|
||||
static void SPCOL(PetitComputer p, int id, DefaultValue!int scale, int mask)
|
||||
{
|
||||
scale.setDefaultValue(true);
|
||||
p.sprite.spcol(id, cast(bool)scale, mask);
|
||||
}
|
||||
static void SPCOL(PetitComputer p, int id, int x, int y, int w, int h, int scale)
|
||||
{
|
||||
p.sprite.spcol(id, cast(short)x, cast(short)y, cast(ushort)w, cast(ushort)h, cast(bool)scale, -1);
|
||||
}
|
||||
static void SPCOL(PetitComputer p, int id, int x, int y, int w, int h, DefaultValue!int scale, int mask)
|
||||
{
|
||||
scale.setDefaultValue(true);
|
||||
p.sprite.spcol(id, cast(short)x, cast(short)y, cast(ushort)w, cast(ushort)h, cast(bool)scale, mask);
|
||||
}
|
||||
static int SPHITSP(PetitComputer p, int id)
|
||||
{
|
||||
return p.sprite.sphitsp(id);
|
||||
}
|
||||
static int SPHITSP(PetitComputer p, int id, int min)
|
||||
{
|
||||
return p.sprite.sphitsp(id, min, 511);//?
|
||||
}
|
||||
static int SPHITSP(PetitComputer p, int id, int min, int max)
|
||||
{
|
||||
return p.sprite.sphitsp(id, min, max);
|
||||
}
|
||||
static void BGMSTOP(PetitComputer p)
|
||||
{
|
||||
writeln("NOTIMPL:BGMSTOP");
|
||||
|
||||
Reference in New Issue
Block a user