소스 검색

minor fixes

Nicolas Cannasse 11 년 전
부모
커밋
feae306539
6개의 변경된 파일16개의 추가작업 그리고 18개의 파일을 삭제
  1. 0 9
      engine.hxml
  2. 2 1
      haxelib.json
  3. 2 2
      samples/basic/Main.hx
  4. 6 0
      samples/basic/basic.hxml
  5. 5 5
      samples/basic/basic.hxproj
  6. 1 1
      samples/basic/index.html

+ 0 - 9
engine.hxml

@@ -1,9 +0,0 @@
--cp samples/basic
--js engine.js
--main Test
--lib format
--lib hxsl3
--D h3d
--D resourcesPath=samples/res
--D source-map-content
--dce full

+ 2 - 1
haxelib.json

@@ -5,5 +5,6 @@
     "description" : "The GPU Game Framework",
     "description" : "The GPU Game Framework",
     "version" : "0.0.1",
     "version" : "0.0.1",
 	"releasenote" : "",
 	"releasenote" : "",
-	"contributors" : ["ncannasse"]
+	"contributors" : ["ncannasse"],
+	"dependencies" : { "format" : "" }
 }
 }

+ 2 - 2
samples/basic/Test.hx → samples/basic/Main.hx

@@ -1,6 +1,6 @@
 import h3d.scene.*;
 import h3d.scene.*;
 
 
-class Test {
+class Main {
 	
 	
 	var engine : h3d.Engine;
 	var engine : h3d.Engine;
 	var time : Float;
 	var time : Float;
@@ -60,7 +60,7 @@ class Test {
 		haxe.Log.setColor(0xFF0000);
 		haxe.Log.setColor(0xFF0000);
 		#end
 		#end
 		hxd.Res.initEmbed();
 		hxd.Res.initEmbed();
-		new Test();
+		new Main();
 	}
 	}
 	
 	
 }
 }

+ 6 - 0
samples/basic/basic.hxml

@@ -0,0 +1,6 @@
+-js main.js
+-main Main
+-lib heaps
+-D resourcesPath=../res
+-D source-map-content
+-dce full

+ 5 - 5
engine.hxproj → samples/basic/basic.hxproj

@@ -4,7 +4,7 @@
   <output>
   <output>
     <movie outputType="Application" />
     <movie outputType="Application" />
     <movie input="" />
     <movie input="" />
-    <movie path="engine.js" />
+    <movie path="main.js" />
     <movie fps="60" />
     <movie fps="60" />
     <movie width="800" />
     <movie width="800" />
     <movie height="600" />
     <movie height="600" />
@@ -15,15 +15,15 @@
   </output>
   </output>
   <!-- Other classes to be compiled into your SWF -->
   <!-- Other classes to be compiled into your SWF -->
   <classpaths>
   <classpaths>
-    <class path="samples\basic" />
+    <!-- example: <class path="..." /> -->
   </classpaths>
   </classpaths>
   <!-- Build options -->
   <!-- Build options -->
   <build>
   <build>
     <option directives="" />
     <option directives="" />
-    <option flashStrict="True" />
-    <option mainClass="Test" />
+    <option flashStrict="False" />
+    <option mainClass="Main" />
     <option enabledebug="False" />
     <option enabledebug="False" />
-    <option additional="-lib format&#xA;-lib hxsl3&#xA;-D h3d&#xA;-D resourcesPath=samples/res&#xA;-D source-map-content&#xA;-dce full" />
+    <option additional="-lib heaps&#xA;-D resourcesPath=../res&#xA;-D source-map-content&#xA;-dce full" />
   </build>
   </build>
   <!-- haxelib libraries -->
   <!-- haxelib libraries -->
   <haxelib>
   <haxelib>

+ 1 - 1
index.html → samples/basic/index.html

@@ -2,7 +2,7 @@
 <body style="margin:0;padding:0;background-color:black">
 <body style="margin:0;padding:0;background-color:black">
 	
 	
 	<canvas id="webgl" style="width:100%;height:100%"></canvas>
 	<canvas id="webgl" style="width:100%;height:100%"></canvas>
-	<script type="text/javascript" src="engine.js"></script>
+	<script type="text/javascript" src="main.js"></script>
 	
 	
 </body>
 </body>
 </html>
 </html>