[過去ログ]
HSPでシミュレーションRPG (195レス)
HSPでシミュレーションRPG http://peace.5ch.net/test/read.cgi/gamedev/1036923414/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
レス栞
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
159: 名前は開発中のものです。 [sage] 03/09/21 19:47 ID:7ICIaGZ9 void subroutine(){ unit blueunit,redunit; if(hex(blueunit,redunit)){ battle(blueunit,redunit); } display(blueunit,redunit); } struct unit{ int HP; int x; int y; int attack_maingun; int attack_subgun; int defence; int fuel; int maingun; int sungun; }; void battle(unit* blue,unit* red){ if(red->attack_maingun >= blue->defence) ....... } ↑HSPでどう書くの? http://peace.5ch.net/test/read.cgi/gamedev/1036923414/159
160: 名前は開発中のものです。 [sage] 03/09/23 20:06 ID:QT+ONBGz >>159 #module UNIT #define HP 0 #define x 1 #define y 2 #define attack_maingun 3 #define attack_subgun 4 #define defence 5 #define fuel 6 #define maingun 7 #define sungun 8 #deffunc battle val, val mref blue, 48 : mref red, 49 if red.attack_maingun >= blue.defence { ...... } return #deffunc hex ...... return #deffunc display ...... return #global *SUBROUTINE hex blueunit, redunit battle blueunit, redunit display blueunit, redunit return http://peace.5ch.net/test/read.cgi/gamedev/1036923414/160
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.009s