トップページgamedev
1001コメント303KB

HSP - Hot Soup Processor [10]

■ このスレッドは過去ログ倉庫に格納されています
0001名前は開発中のものです。2005/06/19(日) 14:56:05ID:vP/TtBn6
       (  ,,,)
        .(  ,,)      スクリプト言語 HotSoupProcessor について
        ( ,,).        ゲーム製作の視点から、また〜りと語り合うスレ。
     , -──- 、
    (,;::-──-; )-、
     .|` ̄ ̄ ̄´;;|ヽ l   * 質問する前に検索してみる事
     l;    :::;;;l-' /   * ヲチ、ネタなどはスレ違い
    ,-ヽ───.'-、´..   * 歴代スレ、関連サイトは >>2-8 あたり
    ヽ ──── '

  ONION software (本家)
   http://www.onionsoft.net/
0358ホスプロ ◆HOTsoUpxjY 2005/08/20(土) 06:13:10ID:Irlxuu0A
http://hp.vector.co.jp/authors/VA020801/lnkpg/gcroom/gcrindex.htm
ここに、「コマンド入力技」のソースが載ってる。だが俺的には垢抜けない印象。
0359ホスプロ ◆HOTsoUpxjY 2005/08/20(土) 06:15:03ID:Irlxuu0A
//(コマンド入力技の3.0用ソース): ↓→□ … ホット拳 : ↑←□ … スープ波
screen 0,640,480
font "MSゴシック",50,1
com_line=""
com_text=""
com_index=-1
*main
redraw 1 : await 10 : redraw 2 : color : boxf
gosub *command_push
gosub *command_pop
gosub *effect
goto *main
*command_push
if flag>1 : return
stick k
if k&1 : com_line+="1"
if k&2 : com_line+="2"
if k&4 : com_line+="4"
if k&8 : com_line+="8"
if k&16 : com_line+="16"
return
*command_pop
com_index=instr(com_line,0,"8416")
if com_index>-1 : com_text="ホット拳!" : flag+=30 : com_line=""
com_index=instr(com_line,0,"2116")
if com_index>-1 : com_text="スープ波!" : flag+=30 : com_line=""
*effect
if flag<1 : return
pos 200,200 : color 255 : mes com_text
flag-- : return
0360ホスプロ ◆HOTsoUpxjY 2005/08/20(土) 06:19:15ID:Irlxuu0A
邪道だが文字列を使えば楽。格闘ゲームにあるような、
フレーム単位の入力とか、多様な技連携・キャンセルとか、
本格的に作ろうとすれば、状態遷移云々になるだろうな。
■ このスレッドは過去ログ倉庫に格納されています