Skip to content

Commit

Permalink
--add-search-path src/box2d is no longer required
Browse files Browse the repository at this point in the history
and add test to compile all sources
  • Loading branch information
gfx committed Feb 16, 2013
1 parent f0de8da commit 8e5a2ed
Show file tree
Hide file tree
Showing 45 changed files with 328 additions and 387 deletions.
2 changes: 1 addition & 1 deletion sample/Makefile
Expand Up @@ -2,5 +2,5 @@
JSX = jsx

all:
$(JSX) --executable web --add-search-path ../src/box2d --release --output box2d-sample.jsx.js box2d-sample.jsx
$(JSX) --executable web --release --output box2d-sample.jsx.js box2d-sample.jsx

14 changes: 7 additions & 7 deletions sample/box2d-sample.jsx
@@ -1,17 +1,17 @@
import "common/*.jsx";
import "common/math/*.jsx";
import "collision/*.jsx";
import "collision/shapes/*.jsx";
import "dynamics/*.jsx";
import "dynamics/contacts/*.jsx";
import "../src/box2d/common/*.jsx";
import "../src/box2d/common/math/*.jsx";
import "../src/box2d/collision/*.jsx";
import "../src/box2d/collision/shapes/*.jsx";
import "../src/box2d/dynamics/*.jsx";
import "../src/box2d/dynamics/contacts/*.jsx";

import 'js/web.jsx';
import "console.jsx";


class _Main {
static const PROFILER_URL = "http://localhosrt:5001/post-profile";


static var seed = 0;
static function random(): number {
_Main.seed = (_Main.seed * 713 + 17) & 0xFF;
Expand Down

0 comments on commit 8e5a2ed

Please sign in to comment.