add a ground to labyrinth
This commit is contained in:
@@ -1,21 +1,24 @@
|
|||||||
PACKAGE=org.artisanlogiciel.games
|
PACKAGE=org.artisanlogiciel.games
|
||||||
PACKAGE_DIR=$(subst .,/,$(PACKAGE))
|
PACKAGE_DIR=$(subst .,/,$(PACKAGE))
|
||||||
OUT=out
|
# maps with ant build.xml
|
||||||
|
OUT=../build
|
||||||
# external libraries
|
# external libraries
|
||||||
LIBS=../libs/artgaphics-0.1.0.jar
|
LIBS=../libs/artgaphics-0.1.0.jar
|
||||||
EDITOR=emacs
|
EDITOR=emacs
|
||||||
|
|
||||||
$(OUT):
|
$(OUT):
|
||||||
mkdir -p $(OUT)
|
echo "[ERROR] Missing $(OUT)"
|
||||||
|
# mkdir -p $(OUT)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@find $(PACKAGE_DIR) -name "*.class" -type f -print0|xargs -0 rm 2>/dev/null && echo "cleaned classes in source"
|
@find $(PACKAGE_DIR) -name "*.class" -type f -print0|xargs -0 rm 2>/dev/null && echo "cleaned classes in source"
|
||||||
@find $(OUT) -name "*.class" -type f -print0|xargs -0 rm 2>/dev/null || echo "nothing to clean"
|
@find $(OUT) -name "*.class" -type f -print0|xargs -0 rm 2>/dev/null || echo "nothing to clean"
|
||||||
|
|
||||||
test:
|
test:
|
||||||
javac -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/LabyModel.java
|
echo "$(pwd)/$(PACKAGE_DIR)"
|
||||||
javac -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/Main.java
|
javac -sourcepath . -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/LabyModel.java
|
||||||
java -cp $(OUT) $(PACKAGE).Main
|
javac -sourcepath . -cp $(LIBS) -d $(OUT) $(PACKAGE_DIR)/Main.java
|
||||||
|
java -cp $(OUT):$(LIBS):../lang $(PACKAGE).Main
|
||||||
|
|
||||||
|
|
||||||
run/%: $(OUT)
|
run/%: $(OUT)
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ public class Wall3d
|
|||||||
public final static Wall3d West = new Wall3d(1, 10, 10, 0, 0, 0);
|
public final static Wall3d West = new Wall3d(1, 10, 10, 0, 0, 0);
|
||||||
public final static Wall3d North = new Wall3d(10, 1, 10, 0, 10, 0);
|
public final static Wall3d North = new Wall3d(10, 1, 10, 0, 10, 0);
|
||||||
public final static Wall3d East = new Wall3d(1, 10, 10, 10, 0, 0);
|
public final static Wall3d East = new Wall3d(1, 10, 10, 10, 0, 0);
|
||||||
|
public final static Wall3d Ground = new Wall3d(10, 10, 2, 0, 0, 0);
|
||||||
|
|
||||||
int triangle[][][] = null;
|
int triangle[][][] = null;
|
||||||
|
|
||||||
@@ -199,8 +200,10 @@ public class Wall3d
|
|||||||
{
|
{
|
||||||
stream.write(new Wall3d(East, x * xl, y * yl, 0).toString().getBytes());
|
stream.write(new Wall3d(East, x * xl, y * yl, 0).toString().getBytes());
|
||||||
}
|
}
|
||||||
|
stream.write(new Wall3d(Ground, x * xl, y * yl, 0).toString().getBytes());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stream.write("endsolid wall\n\n".getBytes());
|
stream.write("endsolid wall\n\n".getBytes());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user