Browse Source

Example updates

Josh Engebretson 9 years ago
parent
commit
77a4c8237f
51 changed files with 228 additions and 457 deletions
  1. 3 0
      AtomicNET/Basic2D/.gitignore
  2. 0 0
      AtomicNET/Basic2D/Basic2D.atomic
  3. 5 0
      AtomicNET/Basic2D/Resources.asset
  4. 5 0
      AtomicNET/Basic2D/Resources/Components.asset
  5. 15 0
      AtomicNET/Basic2D/Resources/Components/Spinner.cs
  6. 5 0
      AtomicNET/Basic2D/Resources/Components/Spinner.cs.asset
  7. 5 0
      AtomicNET/Basic2D/Resources/Scenes.asset
  8. 63 0
      AtomicNET/Basic2D/Resources/Scenes/Scene.scene
  9. 8 0
      AtomicNET/Basic2D/Resources/Scenes/Scene.scene.asset
  10. 5 0
      AtomicNET/Basic2D/Resources/Scripts.asset
  11. 16 0
      AtomicNET/Basic2D/Resources/Scripts/Program.cs
  12. 5 0
      AtomicNET/Basic2D/Resources/Scripts/Program.cs.asset
  13. 5 0
      AtomicNET/Basic2D/Resources/Sprites.asset
  14. BIN
      AtomicNET/Basic2D/Resources/Sprites/star.png
  15. 7 0
      AtomicNET/Basic2D/Resources/Sprites/star.png.asset
  16. 2 5
      AtomicNET/Basic3D/.gitignore
  17. 0 9
      AtomicNET/Basic3D/Basic3D.atomic
  18. 0 37
      AtomicNET/Basic3D/BuildSettings.json
  19. 1 1
      AtomicNET/Basic3D/Resources.asset
  20. 0 5
      AtomicNET/Basic3D/Resources/Assemblies.asset
  21. BIN
      AtomicNET/Basic3D/Resources/Assemblies/Basic3D.dll
  22. 0 37
      AtomicNET/Basic3D/Resources/Assemblies/Basic3D.dll.asset
  23. 5 0
      AtomicNET/Basic3D/Resources/Components.asset
  24. 15 0
      AtomicNET/Basic3D/Resources/Components/Spinner.cs
  25. 5 0
      AtomicNET/Basic3D/Resources/Components/Spinner.cs.asset
  26. 1 1
      AtomicNET/Basic3D/Resources/Models.asset
  27. 2 1
      AtomicNET/Basic3D/Resources/Models/Chest.fbx.asset
  28. 1 1
      AtomicNET/Basic3D/Resources/Models/Materials.asset
  29. 2 2
      AtomicNET/Basic3D/Resources/Models/Materials/DefaultMaterial.material
  30. 1 1
      AtomicNET/Basic3D/Resources/Models/Materials/DefaultMaterial.material.asset
  31. 1 1
      AtomicNET/Basic3D/Resources/Scenes.asset
  32. 10 8
      AtomicNET/Basic3D/Resources/Scenes/Scene.scene
  33. 5 2
      AtomicNET/Basic3D/Resources/Scenes/Scene.scene.asset
  34. 1 1
      AtomicNET/Basic3D/Resources/Scripts.asset
  35. 16 0
      AtomicNET/Basic3D/Resources/Scripts/Program.cs
  36. 5 0
      AtomicNET/Basic3D/Resources/Scripts/Program.cs.asset
  37. 0 3
      AtomicNET/Basic3D/Resources/Scripts/main.js
  38. 0 7
      AtomicNET/Basic3D/Resources/Scripts/main.js.asset
  39. 1 1
      AtomicNET/Basic3D/Resources/Textures.asset
  40. 7 0
      AtomicNET/Basic3D/Resources/Textures/Chest.png.asset
  41. BIN
      AtomicNET/Basic3D/Resources/Textures/chest.png
  42. 0 5
      AtomicNET/Basic3D/Resources/Textures/chest.png.asset
  43. 0 52
      AtomicNET/Basic3D/Source/Basic3D/Basic3D.csproj
  44. 0 22
      AtomicNET/Basic3D/Source/Basic3D/Basic3D.sln
  45. 0 36
      AtomicNET/Basic3D/Source/Basic3D/Properties/AssemblyInfo.cs
  46. 0 22
      AtomicNET/Basic3D/Source/Basic3D/Spinner.cs
  47. 0 70
      AtomicNET/Butterflies/Resources/Components/Butterfly.js
  48. 0 7
      AtomicNET/Butterflies/Resources/Components/Butterfly.js.asset
  49. 0 52
      AtomicNET/Butterflies/Resources/Components/Spawner.js
  50. 0 7
      AtomicNET/Butterflies/Resources/Components/Spawner.js.asset
  51. 0 61
      AtomicNET/Butterflies/Resources/Scripts/main.js

+ 3 - 0
AtomicNET/Basic2D/.gitignore

@@ -0,0 +1,3 @@
+Cache/*
+AtomicNET/*
+Resources/AtomicProject.*

+ 0 - 0
AtomicNET/Basic2D/Basic2D.atomic


+ 5 - 0
AtomicNET/Basic2D/Resources.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "72b27651670fb1798237dcd6de58c1d7",
+	"FolderImporter": {}
+}

+ 5 - 0
AtomicNET/Basic2D/Resources/Components.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "8e4948716673689ac9b95043ab9261f9",
+	"FolderImporter": {}
+}

+ 15 - 0
AtomicNET/Basic2D/Resources/Components/Spinner.cs

@@ -0,0 +1,15 @@
+using System;
+using AtomicEngine;
+
+public class Spinner : CSComponent
+{
+
+    [Inspector]
+    float speed = 1.0f;    
+
+    void Update(float timeStep)
+    {
+        Node.Roll(speed * timeStep * 75.0f);
+    }
+
+}

+ 5 - 0
AtomicNET/Basic2D/Resources/Components/Spinner.cs.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "7d2197a4d7e117426aefe04d33c041bc",
+	"CSharpImporter": null
+}

+ 5 - 0
AtomicNET/Basic2D/Resources/Scenes.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "7e25c3af32aff49fead80fa4a299747a",
+	"FolderImporter": {}
+}

+ 63 - 0
AtomicNET/Basic2D/Resources/Scenes/Scene.scene

@@ -0,0 +1,63 @@
+<?xml version="1.0"?>
+<scene id="1">
+	<attribute name="Name" value="" />
+	<attribute name="Time Scale" value="1" />
+	<attribute name="Smoothing Constant" value="50" />
+	<attribute name="Snap Threshold" value="5" />
+	<attribute name="Elapsed Time" value="0" />
+	<attribute name="Next Replicated Node ID" value="371" />
+	<attribute name="Next Replicated Component ID" value="1989" />
+	<attribute name="Next Local Node ID" value="16778496" />
+	<attribute name="Next Local Component ID" value="16777216" />
+	<attribute name="Variables" />
+	<attribute name="Variable Names" value="" />
+	<component type="PhysicsWorld" id="1" />
+	<component type="Octree" id="2" />
+	<component type="DebugRenderer" id="3" />
+	<component type="Renderer2D" id="1980" />
+	<node id="2">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Zone" />
+		<attribute name="Position" value="0 0 0" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="Zone" id="4">
+			<attribute name="Bounding Box Min" value="-10000 -10000 -10000" />
+			<attribute name="Bounding Box Max" value="10000 10000 10000" />
+			<attribute name="Ambient Color" value="0.4 0.4 0.4 1" />
+		</component>
+	</node>
+	<node id="361">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Camera" />
+		<attribute name="Position" value="0 0 0" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="Camera" id="1973">
+			<attribute name="Near Clip" value="0" />
+			<attribute name="Orthographic" value="true" />
+			<attribute name="Orthographic Size" value="5" />
+		</component>
+	</node>
+	<node id="363">
+		<attribute name="Is Enabled" value="true" />
+		<attribute name="Name" value="Star" />
+		<attribute name="Position" value="0 0 3.4" />
+		<attribute name="Rotation" value="1 0 0 0" />
+		<attribute name="Scale" value="1 1 1" />
+		<attribute name="Variables" />
+		<component type="StaticSprite2D" id="1979">
+			<attribute name="Layer" value="-100" />
+			<attribute name="Sprite" value="Sprite2D;Sprites/star.png" />
+		</component>
+		<component type="CSComponent" id="1988">
+			<attribute name="FieldValues">
+				<variant hash="273365031" type="Float" value="3" />
+			</attribute>
+			<attribute name="Assembly" value="CSComponentAssembly;AtomicProject.dll" />
+			<attribute name="Class" value="Spinner" />
+		</component>
+	</node>
+</scene>

+ 8 - 0
AtomicNET/Basic2D/Resources/Scenes/Scene.scene.asset

@@ -0,0 +1,8 @@
+{
+	"version": 1,
+	"guid": "2a57513e778e118da7da6c222caf4d66",
+	"SceneImporter": {
+		"sceneCamRotation": "1 0 0 0",
+		"sceneCamPosition": "0 0 0"
+	}
+}

+ 5 - 0
AtomicNET/Basic2D/Resources/Scripts.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "22e750e272590c3e36d3064155e3bdae",
+	"FolderImporter": {}
+}

+ 16 - 0
AtomicNET/Basic2D/Resources/Scripts/Program.cs

@@ -0,0 +1,16 @@
+using AtomicEngine;
+using AtomicPlayer;
+
+public static class AtomicMain
+{
+    /// <summary>
+    /// The main entry point for the application.
+    /// </summary>
+    static void Main(string[] args)
+    {
+
+        AtomicNET.GetSubsystem<Player>().LoadScene("Scenes/Scene.scene");
+
+    }
+    
+}

+ 5 - 0
AtomicNET/Basic2D/Resources/Scripts/Program.cs.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "c7b1ed8a45b7704ba0fdffc94b582b55",
+	"CSharpImporter": null
+}

+ 5 - 0
AtomicNET/Basic2D/Resources/Sprites.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "b6daf9100f62ca42cd17441b5ab15360",
+	"FolderImporter": {}
+}

BIN
AtomicNET/Basic2D/Resources/Sprites/star.png


+ 7 - 0
AtomicNET/Basic2D/Resources/Sprites/star.png.asset

@@ -0,0 +1,7 @@
+{
+	"version": 1,
+	"guid": "0ad8b6ab530ef23caf7b95294a3b094d",
+	"TextureImporter": {
+		"compressionSize": 0
+	}
+}

+ 2 - 5
AtomicNET/Basic3D/.gitignore

@@ -1,6 +1,3 @@
-UserPrefs.json
-*.pdb
 Cache/*
-Source/Basic3D/.vs
-Source/Basic3D/bin
-Source/Basic3D/obj
+AtomicNET/*
+Resources/AtomicProject.*

+ 0 - 9
AtomicNET/Basic3D/Basic3D.atomic

@@ -1,9 +0,0 @@
-{
-   "version": 1,
-   "project": {
-      "version": "1.0.0"
-   },
-   "platforms": [
-      "mac", "windows"
-   ]
-}

+ 0 - 37
AtomicNET/Basic3D/BuildSettings.json

@@ -1,37 +0,0 @@
-{
-   "MacBuildSettings": {
-      "appName": "",
-      "packageName": "",
-      "companyName": "",
-      "productName": ""
-   },
-   "WindowsBuildSettings": {
-      "appName": "",
-      "packageName": "",
-      "companyName": "",
-      "productName": ""
-   },
-   "WebBuildSettings": {
-      "appName": "",
-      "packageName": "",
-      "companyName": "",
-      "productName": ""
-   },
-   "AndroidBuildSettings": {
-      "appName": "",
-      "packageName": "",
-      "companyName": "",
-      "productName": "",
-      "targetSDKVersion": "",
-      "minSDKVersion": "",
-      "activityName": ""
-   },
-   "IOSBuildSettings": {
-      "appName": "",
-      "packageName": "",
-      "companyName": "",
-      "productName": "",
-      "provisionFile": "",
-      "appIDPrefix": ""
-   }
-}

+ 1 - 1
AtomicNET/Basic3D/Resources.asset

@@ -1,5 +1,5 @@
 {
 	"version": 1,
-	"guid": "8b49c25ca8bcdf0fb11ea8bd906e9c60",
+	"guid": "d993c8831d986aa91ccc0ffcf42f5ec2",
 	"FolderImporter": {}
 }

+ 0 - 5
AtomicNET/Basic3D/Resources/Assemblies.asset

@@ -1,5 +0,0 @@
-{
-	"version": 1,
-	"guid": "b6dd3280dc3a8dba2d752e61546c43d4",
-	"FolderImporter": {}
-}

BIN
AtomicNET/Basic3D/Resources/Assemblies/Basic3D.dll


+ 0 - 37
AtomicNET/Basic3D/Resources/Assemblies/Basic3D.dll.asset

@@ -1,37 +0,0 @@
-{
-	"version": 1,
-	"guid": "3245844d97444425580f5c0ed275e125",
-	"NETAssemblyImporter": {
-		"AssemblyJSON": {
-			"enums": [],
-			"components": [
-				{
-					"name": "Spinner",
-					"namespace": "Basic3D",
-					"fields": [
-						{
-							"isEnum": false,
-							"typeName": "Single",
-							"name": "speed",
-							"defaultValue": "1",
-							"caPos": [
-								""
-							],
-							"caNamed": {}
-						},
-						{
-							"isEnum": false,
-							"typeName": "Single",
-							"name": "pitchSpeed",
-							"defaultValue": "0",
-							"caPos": [
-								""
-							],
-							"caNamed": {}
-						}
-					]
-				}
-			]
-		}
-	}
-}

+ 5 - 0
AtomicNET/Basic3D/Resources/Components.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "0bfe8fd8881254c031ba26524266b479",
+	"FolderImporter": {}
+}

+ 15 - 0
AtomicNET/Basic3D/Resources/Components/Spinner.cs

@@ -0,0 +1,15 @@
+using System;
+using AtomicEngine;
+
+public class Spinner : CSComponent
+{
+
+    [Inspector]
+    float speed = 1.0f;    
+
+    void Update(float timeStep)
+    {
+        Node.Yaw(speed * timeStep * 75.0f);
+    }
+
+}

+ 5 - 0
AtomicNET/Basic3D/Resources/Components/Spinner.cs.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "7d2197a4d7e117426aefe04d33c041bc",
+	"CSharpImporter": null
+}

+ 1 - 1
AtomicNET/Basic3D/Resources/Models.asset

@@ -1,5 +1,5 @@
 {
 	"version": 1,
-	"guid": "859450fc1d20b9dd7e1e3da995cbdbd3",
+	"guid": "3d6496b1c5d54db2dd15ea1cce4870ca",
 	"FolderImporter": {}
 }

+ 2 - 1
AtomicNET/Basic3D/Resources/Models/Chest.fbx.asset

@@ -1,9 +1,10 @@
 {
 	"version": 1,
-	"guid": "b00f01294b1cc469d4db9f862c9296b7",
+	"guid": "2788364e8ff6f81f4b566a9d58e3fb5b",
 	"ModelImporter": {
 		"scale": 0.01,
 		"importAnimations": false,
+		"importMaterials": true,
 		"animInfo": []
 	}
 }

+ 1 - 1
AtomicNET/Basic3D/Resources/Models/Materials.asset

@@ -1,5 +1,5 @@
 {
 	"version": 1,
-	"guid": "6314dcdd026d028868140a1dde113f6d",
+	"guid": "559f1af7d01cd9026add700a8511d4ff",
 	"FolderImporter": {}
 }

+ 2 - 2
AtomicNET/Basic3D/Resources/Models/Materials/DefaultMaterial.material

@@ -1,13 +1,13 @@
 <?xml version="1.0"?>
 <material>
 	<technique name="Techniques/Diff.xml" quality="0" loddistance="0" />
-	<texture unit="diffuse" name="Textures/chest.png" />
+	<texture unit="diffuse" name="Textures/Chest.png" />
 	<parameter name="UOffset" value="1 0 0 0" />
 	<parameter name="VOffset" value="0 1 0 0" />
 	<parameter name="MatDiffColor" value="0.8 0.8 0.8 1" />
 	<parameter name="MatEmissiveColor" value="0 0 0 1" />
 	<parameter name="MatEnvMapColor" value="1 1 1" />
-	<parameter name="MatSpecColor" value="0.1 0.1 0.1 16" />
+	<parameter name="MatSpecColor" value="0.5 0.5 0.5 16" />
 	<cull value="ccw" />
 	<shadowcull value="ccw" />
 	<fill value="solid" />

+ 1 - 1
AtomicNET/Basic3D/Resources/Models/Materials/DefaultMaterial.material.asset

@@ -1,5 +1,5 @@
 {
 	"version": 1,
-	"guid": "3c0204d84c70d3c07c032dd8fbe84662",
+	"guid": "679947505549e7318dbb3023b777e909",
 	"MaterialImporter": {}
 }

+ 1 - 1
AtomicNET/Basic3D/Resources/Scenes.asset

@@ -1,5 +1,5 @@
 {
 	"version": 1,
-	"guid": "650634c8bf1c932ee41641c71d81de6f",
+	"guid": "919dd3fc156a139fe502f7093ef2bb57",
 	"FolderImporter": {}
 }

+ 10 - 8
AtomicNET/Basic3D/Resources/Scenes/Scene.scene

@@ -5,8 +5,8 @@
 	<attribute name="Smoothing Constant" value="50" />
 	<attribute name="Snap Threshold" value="5" />
 	<attribute name="Elapsed Time" value="0" />
-	<attribute name="Next Replicated Node ID" value="379" />
-	<attribute name="Next Replicated Component ID" value="1993" />
+	<attribute name="Next Replicated Node ID" value="365" />
+	<attribute name="Next Replicated Component ID" value="1979" />
 	<attribute name="Next Local Node ID" value="16778496" />
 	<attribute name="Next Local Component ID" value="16777216" />
 	<attribute name="Variables" />
@@ -56,20 +56,22 @@
 	<node id="363">
 		<attribute name="Is Enabled" value="true" />
 		<attribute name="Name" value="Chest" />
-		<attribute name="Position" value="0 -0.374877 0" />
+		<attribute name="Position" value="0 -0.374877 2" />
 		<attribute name="Rotation" value="1 0 0 0" />
 		<attribute name="Scale" value="1 1 1" />
 		<attribute name="Variables" />
 		<component type="StaticModel" id="1975">
-			<attribute name="Model" value="Model;b00f01294b1cc469d4db9f862c9296b7.mdl" />
+			<attribute name="Model" value="Model;2788364e8ff6f81f4b566a9d58e3fb5b.mdl" />
 			<attribute name="Material" value="Material;Models/Materials/DefaultMaterial.material" />
+			<attribute name="Geometry Enabled">
+				<variant type="Bool" value="true" />
+			</attribute>
 		</component>
-		<component type="CSComponent" id="1981">
+		<component type="CSComponent" id="1978">
 			<attribute name="FieldValues">
-				<variant hash="273365031" type="Float" value="1" />
-				<variant hash="4101335591" type="Float" value="4" />
+				<variant hash="273365031" type="Float" value="3" />
 			</attribute>
-			<attribute name="Assembly" value="NETAssemblyFile;Assemblies/Basic3D.dll" />
+			<attribute name="Assembly" value="CSComponentAssembly;AtomicProject.dll" />
 			<attribute name="Class" value="Spinner" />
 		</component>
 	</node>

+ 5 - 2
AtomicNET/Basic3D/Resources/Scenes/Scene.scene.asset

@@ -1,5 +1,8 @@
 {
 	"version": 1,
-	"guid": "09945dd5d85bcaedfd1a2751aefc738b",
-	"SceneImporter": {}
+	"guid": "98e007a9cb157345b1887ea30fa9cd06",
+	"SceneImporter": {
+		"sceneCamRotation": "1 0 0 0",
+		"sceneCamPosition": "0 0 0"
+	}
 }

+ 1 - 1
AtomicNET/Basic3D/Resources/Scripts.asset

@@ -1,5 +1,5 @@
 {
 	"version": 1,
-	"guid": "d64fec1650e6d0c76d855ba7e5720eb4",
+	"guid": "62761faf704958094e7e92f99ffaa198",
 	"FolderImporter": {}
 }

+ 16 - 0
AtomicNET/Basic3D/Resources/Scripts/Program.cs

@@ -0,0 +1,16 @@
+using AtomicEngine;
+using AtomicPlayer;
+
+public static class AtomicMain
+{
+    /// <summary>
+    /// The main entry point for the application.
+    /// </summary>
+    static void Main(string[] args)
+    {
+
+        AtomicNET.GetSubsystem<Player>().LoadScene("Scenes/Scene.scene");
+
+    }
+    
+}

+ 5 - 0
AtomicNET/Basic3D/Resources/Scripts/Program.cs.asset

@@ -0,0 +1,5 @@
+{
+	"version": 1,
+	"guid": "c7b1ed8a45b7704ba0fdffc94b582b55",
+	"CSharpImporter": null
+}

+ 0 - 3
AtomicNET/Basic3D/Resources/Scripts/main.js

@@ -1,3 +0,0 @@
-// This script is the main entry point of the game
-//Load scene
-Atomic.player.loadScene("Scenes/Scene.scene");

+ 0 - 7
AtomicNET/Basic3D/Resources/Scripts/main.js.asset

@@ -1,7 +0,0 @@
-{
-	"version": 1,
-	"guid": "b26472030333c06522cb499311fbb1be",
-	"JavascriptImporter": {
-		"IsComponentFile": false
-	}
-}

+ 1 - 1
AtomicNET/Basic3D/Resources/Textures.asset

@@ -1,5 +1,5 @@
 {
 	"version": 1,
-	"guid": "9ec8556a2f8b8bb06eeef7d1ae560a22",
+	"guid": "de7e305e96be9fbd997a431e5830bef2",
 	"FolderImporter": {}
 }

+ 7 - 0
AtomicNET/Basic3D/Resources/Textures/Chest.png.asset

@@ -0,0 +1,7 @@
+{
+	"version": 1,
+	"guid": "08af317ec6dd4900b7bbe24f271d800e",
+	"TextureImporter": {
+		"compressionSize": 0
+	}
+}

BIN
AtomicNET/Basic3D/Resources/Textures/chest.png


+ 0 - 5
AtomicNET/Basic3D/Resources/Textures/chest.png.asset

@@ -1,5 +0,0 @@
-{
-	"version": 1,
-	"guid": "6cfc1364a9a11584ea54f3384387e250",
-	"TextureImporter": {}
-}

+ 0 - 52
AtomicNET/Basic3D/Source/Basic3D/Basic3D.csproj

@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProjectGuid>{E414232C-7886-473D-A0F0-A891A3935A78}</ProjectGuid>
-    <OutputType>Library</OutputType>
-    <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>Basic3D</RootNamespace>
-    <AssemblyName>Basic3D</AssemblyName>
-    <TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
-    <FileAlignment>512</FileAlignment>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <Optimize>false</Optimize>
-    <OutputPath>..\..\Resources\Assemblies\</OutputPath>
-    <DefineConstants>DEBUG;TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <Optimize>true</Optimize>
-    <OutputPath>..\..\Resources\Assemblies\</OutputPath>
-    <DefineConstants>TRACE</DefineConstants>
-    <ErrorReport>prompt</ErrorReport>
-    <WarningLevel>4</WarningLevel>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="AtomicNETEngine">
-      <HintPath>..\..\..\..\..\AtomicGameEngine\Artifacts\AtomicNET\AtomicNETEngine.dll</HintPath>
-      <Private>False</Private>
-    </Reference>
-    <Reference Include="System" />
-    <Reference Include="System.Core" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="Spinner.cs" />
-    <Compile Include="Properties\AssemblyInfo.cs" />
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
-</Project>

+ 0 - 22
AtomicNET/Basic3D/Source/Basic3D/Basic3D.sln

@@ -1,22 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 14
-VisualStudioVersion = 14.0.23107.0
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basic3D", "Basic3D.csproj", "{E414232C-7886-473D-A0F0-A891A3935A78}"
-EndProject
-Global
-	GlobalSection(SolutionConfigurationPlatforms) = preSolution
-		Debug|Any CPU = Debug|Any CPU
-		Release|Any CPU = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(ProjectConfigurationPlatforms) = postSolution
-		{E414232C-7886-473D-A0F0-A891A3935A78}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-		{E414232C-7886-473D-A0F0-A891A3935A78}.Debug|Any CPU.Build.0 = Debug|Any CPU
-		{E414232C-7886-473D-A0F0-A891A3935A78}.Release|Any CPU.ActiveCfg = Release|Any CPU
-		{E414232C-7886-473D-A0F0-A891A3935A78}.Release|Any CPU.Build.0 = Release|Any CPU
-	EndGlobalSection
-	GlobalSection(SolutionProperties) = preSolution
-		HideSolutionNode = FALSE
-	EndGlobalSection
-EndGlobal

+ 0 - 36
AtomicNET/Basic3D/Source/Basic3D/Properties/AssemblyInfo.cs

@@ -1,36 +0,0 @@
-using System.Reflection;
-using System.Runtime.CompilerServices;
-using System.Runtime.InteropServices;
-
-// General Information about an assembly is controlled through the following 
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
-[assembly: AssemblyTitle("Basic3D")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
-[assembly: AssemblyProduct("Basic3D")]
-[assembly: AssemblyCopyright("Copyright ©  2015")]
-[assembly: AssemblyTrademark("")]
-[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible 
-// to COM components.  If you need to access a type in this assembly from 
-// COM, set the ComVisible attribute to true on that type.
-[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("e414232c-7886-473d-a0f0-a891a3935a78")]
-
-// Version information for an assembly consists of the following four values:
-//
-//      Major Version
-//      Minor Version 
-//      Build Number
-//      Revision
-//
-// You can specify all the values or you can default the Build and Revision Numbers 
-// by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]

+ 0 - 22
AtomicNET/Basic3D/Source/Basic3D/Spinner.cs

@@ -1,22 +0,0 @@
-
-using AtomicEngine;
-using System;
-
-namespace Basic3D
-{
-    public class Spinner : CSComponent
-    {
-        [Inspector]
-        float speed = 1.0f;
-
-        [Inspector]
-        float pitchSpeed = 0.0f;
-
-        public override void Update(float timeStep)
-        {
-            Node.Yaw(timeStep * speed * 75.0f);
-            Node.Pitch(timeStep * pitchSpeed * 75.0f);
-        }
-    }
-
-}

+ 0 - 70
AtomicNET/Butterflies/Resources/Components/Butterfly.js

@@ -1,70 +0,0 @@
-'atomic component';
-
-var halfWidth = Atomic.graphics.width * Atomic.PIXEL_SIZE * 0.5;
-var halfHeight = Atomic.graphics.height * Atomic.PIXEL_SIZE * 0.5;
-
-var animationSet = Atomic.cache.getResource("AnimationSet2D", "Sprites/butterfly.scml");
-
-exports.component = function(self) {
-
-    var node = self.node;
-    self.speed = 1 + 2 * Math.random();
-    self.rotationSpeed = 10;
-    self.direction = Math.random() * Math.PI * 2;
-    self.time = 0.0;
-
-    //start function calls once, when component attached to the node
-    self.start = function() {
-        //pos is a array with 2 elements, the first is X, the second is Y
-        self.pos = node.getPosition2D();
-
-        //create AnimatedSprite2D component
-        self.spr = node.createComponent("AnimatedSprite2D");
-        self.spr.animationSet = animationSet;
-        self.spr.setAnimation("idle");
-        self.spr.color = [.1 + Math.random() * .9, .1 + Math.random() * .9, .1 + Math.random() * .9, 1];
-        self.spr.blendMode = Atomic.BLEND_ALPHA;
-    };
-
-    self.update = function(timeStep) {
-
-        self.time += timeStep;
-        if (self.time % 1000 / 1000 < 0.5) self.desiredDirection = Math.random() * Math.PI * 2;
-        self.direction = self.circWrapTo(self.direction, self.desiredDirection, self.rotationSpeed * timeStep);
-        self.pos[0] += Math.cos(self.direction) * self.speed * timeStep;
-        self.pos[1] += Math.sin(self.direction) * self.speed * timeStep;
-        node.position2D = self.pos;
-        node.rotation2D = (self.direction + Math.PI * 3 / 2) * (180 / Math.PI);
-        //check if our butterfly is out of bounds
-        if (self.pos[0] < -halfWidth || self.pos[1] < -halfHeight || self.pos[0] > halfWidth || self.pos[1] > halfHeight)
-            node.remove();
-    };
-    //just a maths functions, nothing really interesting
-    self.circWrapTo = function(value, target, step) {
-        if (value == target) return target;
-        var max = Math.PI * 2;
-        var result = value;
-        var d = self.wrappedDistance(value, target, max);
-        if (Math.abs(d) < step) return target;
-        result += (d < 0 ? -1 : 1) * step;
-        if (result > max) result = result - max;
-        else if (result < 0) result = max + result;
-        return result;
-    };
-    self.wrappedDistance = function(a, b, max) {
-        if (a == b) return 0;
-        var l;
-        var r;
-        if (a < b) {
-            l = -a - max + b;
-            r = b - a;
-        } else {
-            l = b - a;
-            r = max - a + b;
-        }
-        if (Math.abs(l) > Math.abs(r)) return r;
-        else return l;
-    };
-
-
-};

+ 0 - 7
AtomicNET/Butterflies/Resources/Components/Butterfly.js.asset

@@ -1,7 +0,0 @@
-{
-	"version": 1,
-	"guid": "95b3015b5a33af615714a15daac1cd8d",
-	"JavascriptImporter": {
-		"IsComponentFile": true
-	}
-}

+ 0 - 52
AtomicNET/Butterflies/Resources/Components/Spawner.js

@@ -1,52 +0,0 @@
-'atomic component';
-
-var viewport = Atomic.renderer.getViewport(0);
-
-//cache resource
-var particleEffect = Atomic.cache.getResource("ParticleEffect2D", "Particles/particle.pex");
-
-exports.component = function(self) {
-
-    self.start = function() {
-        //touch control
-        self.subscribeToEvent("TouchMove", function(event) {
-            createButterflyNode([event.x, event.y]);
-        });
-        self.subscribeToEvent("MultiGesture", function(event) {
-            if(event.numFingers >= 2) {
-                createButterflyParticle([event.centerX, event.centerY]);
-            }
-        });
-    };
-
-    self.update = function(timeStep) {
-        //if Left mouse button is pressed
-        if (Atomic.input.getMouseButtonDown(Atomic.MOUSEB_LEFT)) {
-            var mousePos = Atomic.input.getMousePosition();
-            createButterflyNode(mousePos);
-        //if Right mouse button WAS pressed once
-        } else if (Atomic.input.getMouseButtonPress(Atomic.MOUSEB_RIGHT)) {
-            var mousePos = Atomic.input.getMousePosition();
-            createButterflyParticle(mousePos);
-        }
-    };
-
-    function createButterflyNode(pos) {
-      //project mouse screen position to the world position
-      pos = viewport.screenToWorldPoint(pos[0], pos[1], 0);
-      //create butterfly node
-      var butterfly = self.scene.createChild("Butterfly");
-      butterfly.position2D = pos;
-      butterfly.createJSComponent("Components/Butterfly.js");
-    }
-
-    function createButterflyParticle(pos) {
-      //create particle emitter
-      var emitter = self.scene.createChild("ButterflyEmitter");
-      //project mouse screen position to the world position
-      pos = viewport.screenToWorldPoint(pos[0], pos[1], 0);
-      emitter.position2D = pos;
-      var pex = emitter.createComponent("ParticleEmitter2D");
-      pex.effect = particleEffect;
-    }
-};

+ 0 - 7
AtomicNET/Butterflies/Resources/Components/Spawner.js.asset

@@ -1,7 +0,0 @@
-{
-	"version": 1,
-	"guid": "45592974555d02de64d8f3637f3802cc",
-	"JavascriptImporter": {
-		"IsComponentFile": true
-	}
-}

+ 0 - 61
AtomicNET/Butterflies/Resources/Scripts/main.js

@@ -4,64 +4,3 @@
 var scene = Atomic.player.loadScene("Scenes/TheScene.scene");
 var camera = scene.getChild("Camera").getComponent("Camera");
 camera.setOrthoSize(Atomic.graphics.height * .7 * Atomic.PIXEL_SIZE);
-
-/*
-
-// create a scene
-var scene = new Atomic.Scene();
-
-// create an octree component
-scene.createComponent("Octree");
-
-// create out camera
-var cameraNode = scene.createChild("Camera");
-var camera = cameraNode.createComponent("Camera");
-
-// setup as 2D
-camera.setOrthographic(true);
-//Atomic.PIXEL_SIZE / 2 means that our pixels are doubled up
-camera.setOrthoSize(Atomic.graphics.height * Atomic.PIXEL_SIZE / 2);
-
-// create a viewport
-var viewport = new Atomic.Viewport(scene, camera);
-Atomic.renderer.setViewport(0, viewport);
-
-// create our spawner component
-scene.createJSComponent("Components/Spawner.js");
-
-createInstructions();
-
-function createInstructions() {
-
-    var view = new Atomic.UIView();
-
-    // Create a layout, otherwise child widgets won't know how to size themselves
-    // and would manually need to be sized
-    var layout = new Atomic.UILayout();
-
-    // specify the layout region
-    layout.rect = view.rect;
-
-    view.addChild(layout);
-
-    // we're laying out on the X axis so "position" controls top and bottom alignment
-    layout.layoutPosition = Atomic.UI_LAYOUT_POSITION_RIGHT_BOTTOM;
-    // while "distribution" handles the Y axis
-    layout.layoutDistributionPosition = Atomic.UI_LAYOUT_DISTRIBUTION_POSITION_RIGHT_BOTTOM;
-
-    var fd = new Atomic.UIFontDescription();
-    fd.id = "Vera";
-    fd.size = 18;
-
-    var scoreText = new Atomic.UIEditField();
-    scoreText.fontDescription = fd;
-    scoreText.readOnly = true;
-    scoreText.multiline = true;
-    scoreText.adaptToContentSize = true;
-    scoreText.text = "Atomic Butterflies\nLeft Mouse - Spawn Butterflies\nRight Click - Spawn Particles";
-    layout.addChild(scoreText);
-
-
-}
-
-*/