1
0

SPANIMの挙動を変更,SPDEFの挙動を修正,GAME7が動くようになった

This commit is contained in:
otya128
2015-08-30 09:49:41 +09:00
parent 5653150a67
commit 9be57613f4
4 changed files with 60 additions and 13 deletions

View File

@@ -234,6 +234,22 @@ class BuiltinFunction
static void VISIBLE(PetitComputer p, DefaultValue!(int) console, DefaultValue!(int) graphic, DefaultValue!(int) BG, DefaultValue!(int) sprite)
{
}
static void XON(PetitComputer p, Value mode/*!?!???!?*/)
{
}
static void XOFF(PetitComputer p, Value mode/*!?!???!?*/)
{
}
static void TOUCH(PetitComputer p, DefaultValue!(int, false) id, out int tm, out int tchx, out int tchy)
{
if(!id.isDefault)
{
writeln("NOTIMPL:TOUCH MPID");
}
tm = 0;
tchx = 0;
tchy = 0;
}
static void XSCREEN(PetitComputer p, int mode, DefaultValue!(int, false) a, DefaultValue!(int, false) b)
{
a.setDefaultValue(512);
@@ -309,6 +325,12 @@ class BuiltinFunction
x = 0;
y = 0;
}
static void STICKEX(PetitComputer p, DefaultValue!(int, false) mp, out int x, out int y)
{
//JOYSTICK?
x = 0;
y = 0;
}
static int RGB(int R, int G, int B, DefaultValue!(int, false) _)
{
if(!_.isDefault)
@@ -950,8 +972,9 @@ class BuiltinFunction
{
p.sprite.getspdef(id, U, V, W, H, HX, HY, A);
}
static void SPDEF(PetitComputer p, Value[] va_args)
static void SPDEF(PetitComputer p, Value[] va_args2)
{
auto va_args = retro(va_args2);
switch(va_args.length)
{
case 0: