diff --git a/.gitignore b/.gitignore index e631853..ec60098 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,6 @@ /obj /modules/obj /modules/hscl.ini -/hsp3dish.js \ No newline at end of file +/hsp3dish.js +/config.hsp + diff --git a/config.sample.hsp b/config.sample.hsp new file mode 100644 index 0000000..d91348d --- /dev/null +++ b/config.sample.hsp @@ -0,0 +1,2 @@ +#define global CONFIG_SERVER_URL ("http://localhost/goatoh_training_server") + diff --git a/main.hsp b/main.hsp index 59dbd02..037748b 100644 --- a/main.hsp +++ b/main.hsp @@ -1,4 +1,5 @@ #include "hsp3dish.as" +#include "config.hsp" ; 画面サイズ #const global DISPLAY_WIDTH 1080 @@ -67,9 +68,6 @@ ; ゴートうインスタンス生成 Goatoh = New@Goatoh (960, 800, DIRECTION_LEFT) - Chat = New@Chat (1) - Send@Chat Chat, "test" - ; サウンド読込み MMLoad "mumumumu.wav", SOUND_MUMUMUMU MMLoad "MusMus-BGM-097.mp3", SOUND_BGM, MM_REPEAT diff --git a/modules/chat.mod.hsp b/modules/chat.mod.hsp index 040b902..2c09ae0 100644 --- a/modules/chat.mod.hsp +++ b/modules/chat.mod.hsp @@ -1,7 +1,7 @@ #module \ Chat -#define URL ("https://miteruzo.ml/goatoh_training/chat.php") +#define URL (CONFIG_SERVER_URL + "/chat.php") #defcfunc local \ New \