Ver código fonte

Spawnpoint update

Josh Engebretson 10 anos atrás
pai
commit
216f7928fc

+ 1 - 1
ToonTown/Resources/Components/AvatarController.js

@@ -22,7 +22,7 @@ var INAIR_THRESHOLD_TIME = 0.1;
 
 var cameraMode = 0;
 
-var yaw = 0;
+var yaw = 75;
 var pitch = 0;
 
 var moveForward = false;

+ 0 - 6
ToonTown/Resources/Components/RoboMan.js

@@ -22,9 +22,6 @@ function start() {
     model.castShadows = true;
     
     animCtrl.playExclusive("Models/RoboMan_Normal_Idle.ani", 0, true, 0.0);
-
-    game.cameraNode.position = [0, 5.5, -10];
-    game.cameraNode.pitch(20);
     
 }
 
@@ -39,10 +36,7 @@ function update(timeStep) {
             animCtrl.playExclusive("Models/RoboMan_Normal_Idle.ani", 0, true, 0.1);
         else
             animCtrl.playExclusive("Models/RoboMan_Normal_Run.ani", 0, true, 0.1);
-        
     
     }
-
     
-
 }

+ 8 - 1
ToonTown/Resources/Components/Scene.js

@@ -29,9 +29,16 @@ function start() {
     */
 
     // add the roboman
+    
+    var spawnPoint = scene.getChild("PlayerInfoStart", true);
+    
+    
     var roboman = node.createChild("TheRoboMan");
     roboman.createJSComponent("RoboMan");
-    roboman.position = [0, 40, 0];
+    if (spawnPoint)
+    {
+        roboman.position = spawnPoint.position;
+    }
 
 }
 

+ 2 - 2
ToonTown/Resources/Scenes/ToonTown.scene

@@ -37,8 +37,8 @@
 		<node id="4">
 			<attribute name="Is Enabled" value="true" />
 			<attribute name="Name" value="PlayerInfoStart" />
-			<attribute name="Position" value="-58.2598 41.1565 -9.93667" />
-			<attribute name="Rotation" value="-0.842552 -0.00405369 -0.538593 0.00259137" />
+			<attribute name="Position" value="-58.2598 38.8 -9.93667" />
+			<attribute name="Rotation" value="0.82 0 0.56 0" />
 			<attribute name="Scale" value="1 1 1" />
 			<attribute name="Variables" />
 		</node>