Browse Source

Updates to new physics platformer

Josh Engebretson 10 years ago
parent
commit
b08143e25d

+ 0 - 1
PhysicsPlatformerNew/Resources/Components/Coin.js

@@ -2,7 +2,6 @@
 
 
 var inspectorFields = {
 var inspectorFields = {
 
 
-  // resource ref
   pickupSound: ["Sound", "Sounds/Pickup_Coin8.ogg"],
   pickupSound: ["Sound", "Sounds/Pickup_Coin8.ogg"],
   bounceSound: ["Sound"]
   bounceSound: ["Sound"]
 
 

+ 6 - 2
PhysicsPlatformerNew/Resources/Prefabs/Coin.prefab

@@ -1,8 +1,8 @@
 <?xml version="1.0"?>
 <?xml version="1.0"?>
-<node id="17673">
+<node id="19835">
 	<attribute name="Is Enabled" value="true" />
 	<attribute name="Is Enabled" value="true" />
 	<attribute name="Name" value="Coin" />
 	<attribute name="Name" value="Coin" />
-	<attribute name="Position" value="27.0608 28.4885 -16.6422" />
+	<attribute name="Position" value="0 0 0" />
 	<attribute name="Rotation" value="1 0 0 0" />
 	<attribute name="Rotation" value="1 0 0 0" />
 	<attribute name="Scale" value="1 1 1" />
 	<attribute name="Scale" value="1 1 1" />
 	<attribute name="Variables" />
 	<attribute name="Variables" />
@@ -11,6 +11,10 @@
 		<attribute name="Animation" value="idle" />
 		<attribute name="Animation" value="idle" />
 	</component>
 	</component>
 	<component type="JSComponent" id="22980">
 	<component type="JSComponent" id="22980">
+		<attribute name="FieldValues">
+			<variant hash="860231335" type="ResourceRef" value="Sound;Sounds/Coin_Bounce.ogg" />
+		</attribute>
 		<attribute name="ComponentFile" value="JSComponentFile;Components/Coin.js" />
 		<attribute name="ComponentFile" value="JSComponentFile;Components/Coin.js" />
 	</component>
 	</component>
+	<component type="SoundSource" id="25599" />
 </node>
 </node>

+ 5 - 5
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="17674" />
-	<attribute name="Next Replicated Component ID" value="22981" />
-	<attribute name="Next Local Node ID" value="16778678" />
-	<attribute name="Next Local Component ID" value="16777355" />
+	<attribute name="Next Replicated Node ID" value="18394" />
+	<attribute name="Next Replicated Component ID" value="23853" />
+	<attribute name="Next Local Node ID" value="16778684" />
+	<attribute name="Next Local Component ID" value="16777360" />
 	<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" />
@@ -78,7 +78,7 @@
 		<component type="DirectionalLight2D" id="18606">
 		<component type="DirectionalLight2D" id="18606">
 			<attribute name="Color" value="1 1 1 0.15" />
 			<attribute name="Color" value="1 1 1 0.15" />
 			<attribute name="Cast Shadows" value="true" />
 			<attribute name="Cast Shadows" value="true" />
-			<attribute name="Num Rays" value="1024" />
+			<attribute name="Num Rays" value="256" />
 		</component>
 		</component>
 	</node>
 	</node>
 </scene>
 </scene>