Browse Source

added config file

main
Miteruzo 1 year ago
parent
commit
4f712330f5
4 changed files with 7 additions and 5 deletions
  1. +3
    -1
      .gitignore
  2. +2
    -0
      config.sample.hsp
  3. +1
    -3
      main.hsp
  4. +1
    -1
      modules/chat.mod.hsp

+ 3
- 1
.gitignore View File

@@ -6,4 +6,6 @@
/obj
/modules/obj
/modules/hscl.ini
/hsp3dish.js
/hsp3dish.js
/config.hsp


+ 2
- 0
config.sample.hsp View File

@@ -0,0 +1,2 @@
#define global CONFIG_SERVER_URL ("http://localhost/goatoh_training_server")


+ 1
- 3
main.hsp View File

@@ -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


+ 1
- 1
modules/chat.mod.hsp View File

@@ -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 \


Loading…
Cancel
Save