1
0

SPHOME,SPCLR,SPSCALE,STR,HEX実�

This commit is contained in:
otya128
2015-08-22 22:49:23 +09:00
parent 9394b853cb
commit 5ce3342dde
3 changed files with 52 additions and 9 deletions

View File

@@ -301,6 +301,15 @@ class BuiltinFunction
{
return cast(int)str[0];
}
static wstring STR(int val)
{
return val.to!wstring;
}
static wstring HEX(int val)
{
//ひどい
return val.to!string(16).to!wstring;
}
static void SPSET(PetitComputer p, int id, int defno)
{
p.sprite.spset(id, defno);
@@ -406,6 +415,14 @@ class BuiltinFunction
else
p.sprite.spclr(cast(int)i);
}
static void SPHOME(PetitComputer p, int i, int hx, int hy)
{
p.sprite.sphome(i, hx, hy);
}
static void SPSCALE(PetitComputer p, int i, int x, int y)
{
p.sprite.spscale(i, x, y);
}
static void BGMSTOP(PetitComputer p)
{
writeln("NOTIMPL:BGMSTOP");