-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample3_アイテムを追う.hsp
executable file
·73 lines (62 loc) · 1.28 KB
/
sample3_アイテムを追う.hsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
; sample.hsp
address = "127.0.0.1" ;IPアドレス
port = 2009 ;ポート番号の設定
socknum = 0 ;ソケットID番号
teamname = "Cool" ;チーム名
#include "hspsock.as"
#include "root/Connect.hsp"
#include "root/method.hsp"
#include "root/connectwindow.hsp"
#include "root/playwindow.hsp"
mode = "up"
*main
Connect ;サーバーに接続します
checkgame = checkEnd()
repeat
if system_check == 1 : break
wait 10
loop
wait 200
while (checkgame == 1 ) ;ゲームが続いている間回り続ける
getReady
;================
if (mode == "up" && [email protected] == 2){
mode = "left"
}
if (mode == "left" && [email protected] == 2){
mode = "down"
}
if (mode == "down" && [email protected] == 2){
mode = "right"
}
if (mode == "right" && [email protected] == 2){
mode = "up"
}
if (mode == "up" && [email protected] == 2){
mode = "left"
}
if ([email protected] == 3){
mode = "up"
}
if ([email protected] == 3){
mode = "left"
}
if ([email protected] == 3){
mode = "right"
}
if ([email protected] == 3){
mode = "down"
}
if (mode == "up"){
walkUp
}else : if(mode == "left"){
walkLeft
}else : if(mode == "down"){
walkDown
}else : if(mode == "right"){
walkRight
}
;================
checkgame = checkEnd()
wend
endGame