• R/O
  • HTTP
  • SSH
  • HTTPS

提交

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Violet Vreath is Shooter Game for Windows XP+(個人制作シューティングゲーム)


Commit MetaInfo

修订版d0910fe88b2e6cd0d2571c20cc96a43759c2a652 (tree)
时间2024-12-09 21:29:26
作者gecchi <gecchi@boch...>
Commitergecchi

Log Message

フェードアウトが無音にならないバグ調査中

更改概述

差异

--- a/GgafDx/src/jp/ggaf/dx/sound/Bgm.cpp
+++ b/GgafDx/src/jp/ggaf/dx/sound/Bgm.cpp
@@ -90,6 +90,12 @@ void Bgm::stop() {
9090 void Bgm::setVolume(int prm_volume) {
9191 _volume = prm_volume;
9292 //マスターBGM音量率を考慮
93+ if (_volume > GGAF_MAX_VOLUME) {
94+ _volume = GGAF_MAX_VOLUME;
95+ }
96+ if (_volume < GGAF_MIN_VOLUME) {
97+ _volume = GGAF_MIN_VOLUME;
98+ }
9399 int v = (int)(_volume * Sound::_pBgmManager->getBgmMasterVolumeRate());
94100 if (v > GGAF_MAX_VOLUME) {
95101 v = GGAF_MAX_VOLUME;
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/ViewPointGuide.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/ViewPointGuide.cpp
@@ -3,8 +3,6 @@
33 #include "jp/ggaf/dx/actor/camera/CameraViewPoint.h"
44 #include "jp/gecchi/VioletVreath/Caretaker.h"
55
6-
7-
86 using namespace GgafLib;
97 using namespace VioletVreath;
108
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Ortuna/FormationOrtuna001a.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Ortuna/FormationOrtuna001a.cpp
@@ -4,8 +4,6 @@
44 #include "jp/gecchi/VioletVreath/Caretaker.h"
55 #include "jp/gecchi/VioletVreath/actor/enemy/Ortuna/EnemyOrtuna.h"
66
7-
8-
97 using namespace GgafLib;
108 using namespace VioletVreath;
119
@@ -25,9 +23,8 @@ void FormationOrtuna001a::onSummonOrtuna(EnemyOrtuna* prm_pOrtuna, int prm_index
2523 static coord r = PX_C(200);
2624 coord ang = UTIL::getAngle2D(z - pMyShip->_z, y - pMyShip->_y);
2725 prm_pOrtuna->stagnating_pos_.set( x,
28- y + (ANG_SIN(ang) * r),
29- z + (ANG_COS(ang) * r));
30-
26+ y + (ANG_SIN(ang) * r),
27+ z + (ANG_COS(ang) * r) );
3128 }
3229
3330 FormationOrtuna001a::~FormationOrtuna001a() {
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Ortuna/FormationOrtuna001b.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Ortuna/FormationOrtuna001b.cpp
@@ -4,8 +4,6 @@
44 #include "jp/gecchi/VioletVreath/scene/Spacetime/World/GameScene/MyShipScene.h"
55 #include "jp/gecchi/VioletVreath/Caretaker.h"
66
7-
8-
97 using namespace GgafLib;
108 using namespace VioletVreath;
119
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Ortuna/FormationOrtuna001b.h
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Ortuna/FormationOrtuna001b.h
@@ -2,7 +2,6 @@
22 #define FORMATIONORTUNA001B_H_
33 #include "jp/gecchi/VioletVreath/VioletVreath.h"
44 #include "jp/gecchi/VioletVreath/actor/enemy/Ortuna/FormationOrtuna001.h"
5-#include "jp/ggaf/dx/util/GeoElem.h"
65
76 namespace VioletVreath {
87
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras.cpp
@@ -50,8 +50,8 @@ void FormationThagoras::processBehavior() {
5050 EnemyThagoras* pThagoras = (EnemyThagoras*)summonMember();
5151 if (pThagoras) {
5252 onSummon(pThagoras, cnt_summon_row_, col);
53+ pThagoras->setMaterialColor(pXpm->getColor(cnt_summon_row_, col));
5354 }
54- pThagoras->setMaterialColor(pXpm->getColor(cnt_summon_row_, col));
5555 }
5656 }
5757 cnt_summon_row_++;
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras.h
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras.h
@@ -20,9 +20,6 @@ public:
2020 int cnt_summon_row_;
2121 frame summon_interval_;
2222
23- /** [r]出現座標(シーンが設定) */
24- GgafDx::GeoElem entry_pos_;
25-
2623 GgafDx::Scaler* pScaler4Sc_;
2724 GgafLib::DefaultGeometricActor* pActor4Sc_;
2825
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras001.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras001.cpp
@@ -31,9 +31,9 @@ void FormationThagoras001::onSummon(GgafDx::FigureActor* prm_pActor, int prm_row
3131 } else {
3232 pThagoras->pVehicleLeader_ = pThagoras->createCurveVehicleLeader(papCurveManufConn_[prm_col]->peek());
3333 }
34- pThagoras->pVehicleLeader_->setStartPosition(entry_pos_.x ,
35- entry_pos_.y + (prm_col*PX_C(30)) ,
36- entry_pos_.z );
34+ pThagoras->pVehicleLeader_->setStartPosition(_x ,
35+ _y + (prm_col*PX_C(30)) ,
36+ _z );
3737
3838 pThagoras->setPosition( RND(PX_C(-2600), PX_C(2600)),
3939 RND(PX_C(-2600), PX_C(2600)),
--- a/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras002.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/actor/enemy/Thagoras/FormationThagoras002.cpp
@@ -33,9 +33,9 @@ void FormationThagoras002::onSummon(GgafDx::FigureActor* prm_pActor, int prm_row
3333 } else {
3434 pThagoras->pVehicleLeader_ = pThagoras->createCurveVehicleLeader(papCurveManufConn_[prm_col]->peek());
3535 }
36- pThagoras->pVehicleLeader_->setStartPosition(entry_pos_.x ,
37- entry_pos_.y + (prm_col*PX_C(30)) ,
38- entry_pos_.z );
36+ pThagoras->pVehicleLeader_->setStartPosition(_x ,
37+ _y + (prm_col*PX_C(30)) ,
38+ _z );
3939
4040 pThagoras->setPosition( RND(PX_C(-2600), PX_C(2600)),
4141 RND(PX_C(-2600), PX_C(2600)),
--- a/VioletVreath/src/jp/gecchi/VioletVreath/scene/Spacetime/World/GameScene.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/scene/Spacetime/World/GameScene.cpp
@@ -19,7 +19,7 @@
1919 #include "GameScene/GamePreTitleScene.h"
2020 #include "GameScene/GameTitleScene.h"
2121 #include "GameScene/MyShipScene.h"
22-
22+#include "GameScene/GameMainScene/StageWorld/RankUpStageController.h"
2323
2424 using namespace GgafLib;
2525 using namespace VioletVreath;
@@ -275,6 +275,11 @@ void GameScene::processBehavior() {
275275 pChildScene->inactivateDelay(FADE_FRAMES+10);
276276 }
277277 }
278+ if (pRANKUP_CONTROLLER->pNowRankUpStage_) {
279+ _TRACE_(FUNC_NAME << " pRANKUP_CONTROLLER->sayonaraRankUpStages()");
280+ pRANKUP_CONTROLLER->sayonaraRankUpStages();
281+ pRANKUP_CONTROLLER->pNowRankUpStage_ = nullptr;
282+ }
278283 }
279284 if (pPhase->hasArrivedFrameAt(FADE_FRAMES+20)) {
280285 reset(); //リセット(最初のフェーズに戻る)
--- a/VioletVreath/src/jp/gecchi/VioletVreath/scene/Spacetime/World/GameScene/GameMainScene/StageWorld/RankUpStageController.cpp
+++ b/VioletVreath/src/jp/gecchi/VioletVreath/scene/Spacetime/World/GameScene/GameMainScene/StageWorld/RankUpStageController.cpp
@@ -144,15 +144,16 @@ void RankUpStageController::onCatchEvent(eventval prm_event_val, void* prm_pSour
144144
145145 void RankUpStageController::sayonaraRankUpStages() {
146146 if (getChildFirst()) {
147- GgafCore::Scene* pRankUpStage = getChildFirst()->getPrev();//last
147+ RankUpStage* pRankUpStage = (RankUpStage*)getChildFirst()->getPrev();//last
148148 if (pRankUpStage) {
149149 while (1) {
150150 _TRACE_(FUNC_NAME<<" pRankUpStage("<<pRankUpStage->getName()<<")->sayonara()");
151- pRankUpStage->sayonara();
151+ pRankUpStage->fadeoutSceneWithBgmTree(10);
152+ pRankUpStage->sayonara(10);
152153 if (pRankUpStage == getChildFirst()) {
153154 break;
154155 } else {
155- pRankUpStage = pRankUpStage->getPrev();
156+ pRankUpStage = (RankUpStage*)pRankUpStage->getPrev();
156157 }
157158 }
158159 }