忍者ブログ

DTXManiaXG(ver.K)開発日誌

「-真のX-Gradeを見るまで俺は止まらない-」 DTXManiaXG(verK)の開発ブログです。

[PR]

×

[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。

シャッター

12/12/2:完了。
○XGではリアルタイム操作可。
 ・テンキーにでも割り当てる。
  ・num2、8でINSIDE、num4、6でOUTSIDE。
○数値はIN、OUT共に最大100。
 ・つまりVのシャッターが細かく操作できるようになったといっても変わりはないということ。
 ・干渉するようだったらその値以下に補正するロジックも必要

追記
・nShutter??Pos →百分率
・出力される値 →百分率

・Config.iniに出力時にMaxPosから現在のPosを引いた数を出力している
 ・これが元凶なのか?


以下、コードの一部
○CStage演奏画面共通
 ・On活性化 ※一部
this.nJudgeLinePosY = CDTXMania.ConfigIni.nJudgeLine;
this.nShutterInPosY = CDTXMania.ConfigIni.nShutterInSide;
this.nShutterOutPosY = CDTXMania.ConfigIni.nShutterOutSide;
 ・tキー入力 ※一部
if (keyboard.bキーが押されている( (int) SlimDX.DirectInput.Key.PageUp))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nJudgeLinePosY > nJudgeLineMinPosY)
{
this.nJudgeLinePosY--;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nJudgeLinePosY > nJudgeLineMinPosY)
{
this.nJudgeLinePosY--;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nJudgeLine = (nJudgeLineMaxPosY - this.nJudgeLinePosY);
CDTXMania.stage演奏ドラム画面.tJudgeLineMovingUpandDown();
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.PageDown))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nJudgeLinePosY < nJudgeLineMaxPosY)
{
this.nJudgeLinePosY++;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nJudgeLinePosY < nJudgeLineMaxPosY)
{
this.nJudgeLinePosY++;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nJudgeLine = nJudgeLineMaxPosY - this.nJudgeLinePosY;
CDTXMania.stage演奏ドラム画面.tJudgeLineMovingUpandDown();
}

if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad8))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterInPosY > 0)
{
this.nShutterInPosY--;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterInPosY > -100)
{
this.nShutterInPosY--;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterInSide = nShutterInMaxPosY - this.nShutterInPosY;
CDTXMania.stage演奏ドラム画面.tJudgeLineMovingUpandDown();
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad2))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterInPosY < 100)
{
this.nShutterInPosY++;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterInPosY < 100)
{
this.nShutterInPosY++;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterInSide = nShutterInMaxPosY - this.nShutterInPosY;
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad4))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterOutPosY < 100)
{
this.nShutterOutPosY++;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterOutPosY < 100)
{
this.nShutterOutPosY++;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterOutSide = nShutterInMaxPosY - this.nShutterOutPosY;
}
if (keyboard.bキーが押されている((int)SlimDX.DirectInput.Key.NumberPad6))
{
if (!this.sw.IsRunning)
{
this.sw2 = Stopwatch.StartNew();
this.sw = Stopwatch.StartNew();
if (this.nShutterOutPosY > 0)
{
this.nShutterOutPosY--;
}
}
else if (this.sw.ElapsedMilliseconds > 10L)
{
if (this.sw2.IsRunning)
{
if (this.sw2.ElapsedMilliseconds > 100L)
{
this.sw2.Reset();
}
}
else if (this.nShutterOutPosY > 0)
{
this.nShutterOutPosY--;
}
this.sw.Reset();
this.sw.Start();
}
CDTXMania.ConfigIni.nShutterOutSide = nShutterInMaxPosY - this.nShutterOutPosY;
}
PR

コメント

現在、新しいコメントを受け付けない設定になっています。

プロフィール

HN:
kairera0467
年齢:
26
性別:
男性
誕生日:
1997/08/11
自己紹介:
DTXManiaの新人開発スタッフ。
Maill:gennsou76573●gmail.com
(●を@に変えてくださいね。)

最新リリース

ブログ内検索