|
No. |
分類 / category |
API名 / API name |
|
01 |
蛇関連 / snake |
SW_API_GetSnakePos |
|
説明 / description |
||
| 蛇の現在の頭の位置を取得する。 / Get the current head position of snake. | ||
|
引数 / Parameters |
||
|
(out) B: X position (0-39) (out) C: Y position (0-24) |
||
|
No. |
分類 / category |
API名 / API name |
|
02 |
蛇関連 / snake |
SW_API_GetSnakeLen |
|
説明 / description |
||
| 蛇の現在の長さを取得する。 / Get the current length of snake. | ||
|
引数 / Parameters |
||
| (out) A: Length (1-) | ||
|
No. |
分類 / category |
API名 / API name |
|
03 |
蛇関連 / snake |
SW_API_GetSnakeState |
|
説明 / description |
||
| 蛇の現在の状態を取得する。 / Get the current state of snake. | ||
|
引数 / Parameters |
||
| (out) A: State (bit0:In speed up, bit1:In power up, bit2:Power up is about to end) | ||
|
No. |
分類 / category |
API名 / API name |
|
04 |
蛇関連 / snake |
SW_API_GetSnakeEnergy |
|
説明 / description |
||
| 蛇の現在のエネルギー残量を取得する。 / Get the current remaining energy of snake. | ||
|
引数 / Parameters |
||
| (out) A: Energy (1-255) | ||
|
No. |
分類 / category |
API名 / API name |
|
05 |
蛇関連 / snake |
SW_API_GetSnakeDir |
|
説明 / description |
||
| 蛇の現在の進行方向を取得する。 / Get the current direction of snake. | ||
|
引数 / Parameters |
||
| (out) A: Direction (2,4,6 or 8) | ||
|
No. |
分類 / category |
API名 / API name |
|
06 |
蛇関連 / snake |
SW_API_SetSnakeDir |
|
説明 / description |
||
|
蛇の新しい進行方向を設定する。 / Set new direction of snake. ※現在の進行方向と逆の方向を設定した場合は無視される。 * It will be ignored if you set the direction opposite to the current. |
||
|
引数 / Parameters |
||
| (in) A: Direction (2,4,6 or 8) | ||
|
No. |
分類 / category |
API名 / API name |
|
07 |
蛇関連 / snake |
SW_API_SetSnakeDirR |
|
説明 / description |
||
| 蛇を右に方向転換する。 / Turn snake to the right. | ||
|
引数 / Parameters |
||
| - | ||
|
No. |
分類 / category |
API名 / API name |
|
08 |
蛇関連 / snake |
SW_API_SetSnakeDirL |
|
説明 / description |
||
| 蛇を左に方向転換する。 / Turn snake to the left. | ||
|
引数 / Parameters |
||
| - | ||
|
No. |
分類 / category |
API名 / API name |
|
09 |
蛇関連 / snake |
SW_API_GetSnakeAheadChar |
|
説明 / description |
||
| 蛇の現在位置から指定方向に一歩先のキャラクタを取得する。 / Get the character one step ahead from the current position of snake in the specified direction. | ||
|
引数 / Parameters |
||
|
(in) A: Direction (2,4,6 or 8, 0 is the current direction, 1 is left of the current, 3 is right of the current) (out) D: Character code (ASCII code) (out) E: Color code (0 1 2 3 4 5 6 7) |
||
|
No. |
分類 / category |
API名 / API name |
|
10 |
フィールド関連 / field |
SW_API_GetTargetPos |
|
説明 / description |
||
| 現在のエサの位置と色を取得する。 / Get current food position and color. | ||
|
引数 / Parameters |
||
|
(out) B: X position (0-39) (out) C: Y position (0-24) (out) A: Color code (0 1 2 3 4 5 6 7) |
||
|
No. |
分類 / category |
API名 / API name |
|
11 |
フィールド関連 / field |
SW_API_GetFieldChar |
|
説明 / description |
||
| 指定座標のキャラクタを取得する。 / Get character of specified coordinates. | ||
|
引数 / Parameters |
||
|
(in) B: X position (0-39) (in) C: Y position (0-24) (out) D: Character code (ASCII code) (out) E: Color code (0 1 2 3 4 5 6 7) |
||
|
No. |
分類 / category |
API名 / API name |
|
12 |
その他 / other |
SW_API_SetSpeed |
|
説明 / description |
||
|
ゲームスピード設定 / Set speed of the game. ※v1.1.0で追加。 * Added in v1.1.0. |
||
|
引数 / Parameters |
||
| (in) A: Speed (0-2, 2 is the fastest, 1 is the dafault) | ||
|
No. |
分類 / category |
API名 / API name |
|
13 |
その他 / other |
SW_API_Random |
|
説明 / description |
||
| 乱数値生成 / Generate a random value. | ||
|
引数 / Parameters |
||
|
(in) C: Maximum value (1-255) (out) A: Random value (0-Maximum value) |
||