FLOOR,IF THEN @LABEL,ボタン入力を実�

This commit is contained in:
otya128 committed 2015-08-20 16:13:27 +09:00
1 parent e02fd58838
commit 86eee04de3
4 files changed
+69 -22

No files matched your search

+5 -1
View File
@@ -108,7 +108,7 @@ class BuiltinFunction
}
static int BUTTON(PetitComputer p, DefaultValue!(int, false) mode)
{
return 0;
return p.button;
}
static void VISIBLE(PetitComputer p, DefaultValue!(int) console, DefaultValue!(int) graphic, DefaultValue!(int) BG, DefaultValue!(int) sprite)
{
@@ -192,6 +192,10 @@ class BuiltinFunction
double val = str.to!double;
return val;
}
static double FLOOR(double val)
{
return val.floor;
}
static wstring MID(wstring str, int i, int len)
{
//挙動未定