• R/O
  • SSH

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

Revisiond8713c914cfccd6179098b2418fcf7f802398302 (tree)
Zeit2021-05-11 04:13:51
Autorsebastian_bugiu
Commitersebastian_bugiu

Log Message

Fixed bug where ship hit animation would change the skybox as the value always defaulted to skybox 0.

Ändern Zusammenfassung

Diff

diff -r 1d5efe609456 -r d8713c914cfc .DS_Store
Binary file .DS_Store has changed
diff -r 1d5efe609456 -r d8713c914cfc android/.DS_Store
Binary file android/.DS_Store has changed
diff -r 1d5efe609456 -r d8713c914cfc android/src/.DS_Store
Binary file android/src/.DS_Store has changed
diff -r 1d5efe609456 -r d8713c914cfc android/src/main/jni/blackholedarksunmain.cpp
--- a/android/src/main/jni/blackholedarksunmain.cpp Thu May 06 22:04:27 2021 +0300
+++ b/android/src/main/jni/blackholedarksunmain.cpp Mon May 10 22:13:51 2021 +0300
@@ -2241,6 +2241,7 @@
22412241 long long int compositorWorkspacePtr = bufferReadLong.read(&buf);
22422242 Ogre::CompositorWorkspace* compositorWorkspace = (Ogre::CompositorWorkspace*) compositorWorkspacePtr;
22432243 unsigned char enabled = bufferReadChar.read(&buf);
2244+ // LOGI("compositor ptr: %s, enabled: %s \n", SSTR(compositorWorkspacePtr).c_str(), SSTR(enabled ? 1 : 0).c_str());
22442245 compositorWorkspace->setEnabled((bool) enabled);
22452246 }
22462247 break;
diff -r 1d5efe609456 -r d8713c914cfc core/src/headwayent/blackholedarksun/APP_Game.java
--- a/core/src/headwayent/blackholedarksun/APP_Game.java Thu May 06 22:04:27 2021 +0300
+++ b/core/src/headwayent/blackholedarksun/APP_Game.java Mon May 10 22:13:51 2021 +0300
@@ -1369,15 +1369,19 @@
13691369 }
13701370
13711371 public void exitGame() {
1372- exitLock.lock();
1373- try {
1374- MainApp.getGame().setExiting();
1375- // Get rid of everything in the level and show the main menu
1376- // for next time when we come in
1377- Gdx.app.exit();
1372+ if (MainApp.PLATFORM == MainApp.Platform.DESKTOP) {
1373+ exitLock.lock();
1374+ try {
1375+ MainApp.getGame().setExiting();
1376+ // Get rid of everything in the level and show the main menu
1377+ // for next time when we come in
1378+ Gdx.app.exit();
13781379 // MainActivity.getInstance().finish();
1379- } finally {
1380- exitLock.unlock();
1380+ } finally {
1381+ exitLock.unlock();
1382+ }
1383+ } else {
1384+ throw new IllegalStateException("You are not supposed to close applications on mobile platforms");
13811385 }
13821386 }
13831387
diff -r 1d5efe609456 -r d8713c914cfc core/src/headwayent/blackholedarksun/animations/PlayerShipDeathCamAnimation.java
--- a/core/src/headwayent/blackholedarksun/animations/PlayerShipDeathCamAnimation.java Thu May 06 22:04:27 2021 +0300
+++ b/core/src/headwayent/blackholedarksun/animations/PlayerShipDeathCamAnimation.java Mon May 10 22:13:51 2021 +0300
@@ -53,7 +53,7 @@
5353 // Utility.lookAt(entityProperties.getNode(), cameraProperties.getNode());
5454 } else {
5555 // Continue to look at the projection of the position vector to follow the explosion trails.
56- // To be done in the future version.
56+ // TODO To be done in the future version.
5757 }
5858 // camera.lookAt(positionToLookAt);
5959
@@ -62,10 +62,10 @@
6262 @Override
6363 public void animationFinished() {
6464 destroyResources();
65- CameraProperties cameraProperties = WorldManager.getSingleton().getCameraPropertiesComponentMapper().getSafe(playerShip);
66- if (cameraProperties != null) {
67- cameraProperties.setAnimatedCamera(false);
68- }
65+// CameraProperties cameraProperties = WorldManager.getSingleton().getCameraPropertiesComponentMapper().getSafe(playerShip);
66+// if (cameraProperties != null) {
67+// cameraProperties.setAnimatedCamera(false);
68+// }
6969 }
7070
7171 @Override
diff -r 1d5efe609456 -r d8713c914cfc core/src/headwayent/blackholedarksun/compositor/SceneCompositor.java
--- a/core/src/headwayent/blackholedarksun/compositor/SceneCompositor.java Thu May 06 22:04:27 2021 +0300
+++ b/core/src/headwayent/blackholedarksun/compositor/SceneCompositor.java Mon May 10 22:13:51 2021 +0300
@@ -132,10 +132,12 @@
132132 currentWorkspace = new Workspace(CompositorEnum.MENU, DEFAULT_COMP, 0);
133133 }
134134
135- public void setInGameCompositor(String name) {
135+ public void setInGameCompositor(String workspaceName) {
136136 disableCurrentCompositor();
137- ENG_CompositorManager2.getSingleton().setCompositorEnabled(name, true);
138- currentWorkspace = new Workspace(CompositorEnum.MENU, name, 0);
137+ ENG_CompositorManager2.getSingleton().setCompositorEnabled(workspaceName, true);
138+ String skyboxNumStr = workspaceName.substring(workspaceName.indexOf(SKYBOX_WORKSPACE) + SKYBOX_WORKSPACE.length());
139+ int skyboxWorkspaceNum = Integer.parseInt(skyboxNumStr);
140+ currentWorkspace = new Workspace(CompositorEnum.MENU, workspaceName, skyboxWorkspaceNum);
139141 }
140142
141143 public void setShipHitCompositor(boolean enabled) {
diff -r 1d5efe609456 -r d8713c914cfc core/src/headwayent/blackholedarksun/effects/MovementFlare.java
--- a/core/src/headwayent/blackholedarksun/effects/MovementFlare.java Thu May 06 22:04:27 2021 +0300
+++ b/core/src/headwayent/blackholedarksun/effects/MovementFlare.java Mon May 10 22:13:51 2021 +0300
@@ -127,6 +127,7 @@
127127 // necessarily the latest one so if we send this one to check
128128 // for visibility we may get a false response since the camera may have
129129 // advanced with the player beyond the worldaabb point.
130+ // TODO find a nicer solution.
130131 rayTarget.z -= camera.getNearClipDistance() + 15.0f;
131132 // System.out.println("rayTarget pos after z update: " + rayTarget);
132133 // System.out.println("billboard set worldaabb: " + set.getWorldAABB());
diff -r 1d5efe609456 -r d8713c914cfc ios_ogre_build/build/CMakeCache.txt
--- a/ios_ogre_build/build/CMakeCache.txt Thu May 06 22:04:27 2021 +0300
+++ b/ios_ogre_build/build/CMakeCache.txt Mon May 10 22:13:51 2021 +0300
@@ -73,7 +73,7 @@
7373 CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
7474
7575 //iOS find search path root
76-CMAKE_FIND_ROOT_PATH:STRING=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk
76+CMAKE_FIND_ROOT_PATH:STRING=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer;/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
7777
7878 //Path to a program.
7979 CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool
@@ -124,7 +124,7 @@
124124
125125 //The product will be built against the headers and libraries located
126126 // inside the indicated SDK.
127-CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk
127+CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
128128
129129 //Value Computed by CMake
130130 CMAKE_PROJECT_DESCRIPTION:STATIC=
@@ -356,7 +356,7 @@
356356 //ADVANCED property for variable: CMAKE_STRIP
357357 CMAKE_STRIP-ADVANCED:INTERNAL=1
358358 CMAKE_SYSTEM_NAME:INTERNAL=Darwin
359-CMAKE_SYSTEM_VERSION:INTERNAL=14.3
359+CMAKE_SYSTEM_VERSION:INTERNAL=14.4
360360 //uname command
361361 CMAKE_UNAME:INTERNAL=/usr/bin/uname
362362 //ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
diff -r 1d5efe609456 -r d8713c914cfc ios_ogre_build/build/CMakeFiles/native-lib.dir/flags.make
--- a/ios_ogre_build/build/CMakeFiles/native-lib.dir/flags.make Thu May 06 22:04:27 2021 +0300
+++ b/ios_ogre_build/build/CMakeFiles/native-lib.dir/flags.make Mon May 10 22:13:51 2021 +0300
@@ -2,7 +2,7 @@
22 # Generated by "Unix Makefiles" Generator, CMake Version 3.13
33
44 # compile CXX with /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
5-CXX_FLAGS = -miphoneos-version-min=9.0 -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-abi-version=2 -fobjc-arc -arch arm64 -g -DDEBUG -std=gnu++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.3.sdk
5+CXX_FLAGS = -miphoneos-version-min=9.0 -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-abi-version=2 -fobjc-arc -arch arm64 -g -DDEBUG -std=gnu++11 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
66
77 CXX_DEFINES =
88