Browse Source

Working on updated Platformer

Josh Engebretson 10 years ago
parent
commit
af12bd092c

+ 5 - 5
PhysicsPlatformerNew/Resources/Components/Background.js

@@ -7,11 +7,11 @@ var component = function(self) {
 
 
     self.postUpdate = function() {
     self.postUpdate = function() {
 
 
-        var pos = cameraNode.position2D;
-        pos[1] -= 4;
-        self.node.position2D = pos;
-        var zoom = 4.0 - camera.zoom;
-        self.node.scale2D = [zoom , zoom];
+        //var pos = cameraNode.position2D;
+        //pos[1] -= 4;
+        //self.node.position2D = pos;
+        //var zoom = 4.0 - camera.zoom;
+        //self.node.scale2D = [zoom , zoom];
 
 
     }
     }
 
 

+ 0 - 4
PhysicsPlatformerNew/Resources/Components/Level.js

@@ -3,8 +3,6 @@
 
 
 var LevelParser = require("LevelParser");
 var LevelParser = require("LevelParser");
 
 
-nodes = [];
-
 var component = function (self) {
 var component = function (self) {
 
 
   self.start = function() {
   self.start = function() {
@@ -31,8 +29,6 @@ var component = function (self) {
         node.position2D = p.start;
         node.position2D = p.start;
         node.startPos = p.start;
         node.startPos = p.start;
         node.stopPos = p.stop;
         node.stopPos = p.stop;
-
-        nodes.push(node);
     }
     }
 
 
   }
   }

+ 20 - 4
PhysicsPlatformerNew/Resources/Scenes/Scene.scene

@@ -5,10 +5,10 @@
 	<attribute name="Smoothing Constant" value="50" />
 	<attribute name="Smoothing Constant" value="50" />
 	<attribute name="Snap Threshold" value="5" />
 	<attribute name="Snap Threshold" value="5" />
 	<attribute name="Elapsed Time" value="0" />
 	<attribute name="Elapsed Time" value="0" />
-	<attribute name="Next Replicated Node ID" value="4706" />
-	<attribute name="Next Replicated Component ID" value="7244" />
-	<attribute name="Next Local Node ID" value="16778564" />
-	<attribute name="Next Local Component ID" value="16777262" />
+	<attribute name="Next Replicated Node ID" value="16230" />
+	<attribute name="Next Replicated Component ID" value="21226" />
+	<attribute name="Next Local Node ID" value="16778660" />
+	<attribute name="Next Local Component ID" value="16777342" />
 	<attribute name="Variables" />
 	<attribute name="Variables" />
 	<attribute name="Variable Names" value="" />
 	<attribute name="Variable Names" value="" />
 	<component type="Octree" id="2" />
 	<component type="Octree" id="2" />
@@ -22,6 +22,9 @@
 		<attribute name="Sub Stepping" value="true" />
 		<attribute name="Sub Stepping" value="true" />
 		<attribute name="Auto Clear Forces" value="true" />
 		<attribute name="Auto Clear Forces" value="true" />
 	</component>
 	</component>
+	<component type="Zone" id="16857">
+		<attribute name="Ambient Color" value="1 1 1 1" />
+	</component>
 	<node id="361">
 	<node id="361">
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="Camera" />
 		<attribute name="Name" value="Camera" />
@@ -64,4 +67,17 @@
 			<attribute name="ComponentFile" value="JSComponentFile;Components/Level.js" />
 			<attribute name="ComponentFile" value="JSComponentFile;Components/Level.js" />
 		</component>
 		</component>
 	</node>
 	</node>
+	<node id="9748">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Node" />
+		<attribute name="Position" value="22.2822 29.6825 0" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="DirectionalLight2D" id="18606">
+			<attribute name="Color" value="1 1 1 0.15" />
+			<attribute name="Cast Shadows" value="true" />
+			<attribute name="Num Rays" value="1024" />
+		</component>
+	</node>
 </scene>
 </scene>