Добавить общую систему весовых объектов
This commit is contained in:
@@ -60,6 +60,10 @@ public final class LevelContentToolTest {
|
||||
assertTrue(svg, svg.contains("viewBox=\"0 0 1920 1080\""));
|
||||
assertTrue(svg, svg.contains("data-kind=\"spawn\""));
|
||||
assertTrue(svg, svg.contains("data-kind=\"goal\""));
|
||||
assertTrue(svg, svg.contains("data-kind=\"object-COUNTERWEIGHT\""));
|
||||
String coordinates = Files.readString(first.resolve("catalog.tsv"));
|
||||
assertTrue(coordinates, coordinates.contains("1\tobject\t0\tCOUNTERWEIGHT"));
|
||||
assertTrue(coordinates, coordinates.contains("mass=3"));
|
||||
}
|
||||
|
||||
private static void writeFixture(Path levels) throws Exception {
|
||||
@@ -76,6 +80,9 @@ public final class LevelContentToolTest {
|
||||
+ "\"spawn\":{\"x\":130,\"y\":760},"
|
||||
+ "\"goal\":{\"x\":1690,\"y\":770,\"width\":86,\"height\":110},"
|
||||
+ "\"targets\":{\"deaths\":0,\"seconds\":30},"
|
||||
+ "\"objects\":[{\"type\":\"COUNTERWEIGHT\","
|
||||
+ "\"box\":{\"x\":700,\"y\":780,\"width\":80,\"height\":100},"
|
||||
+ "\"mass\":3}],"
|
||||
+ "\"platforms\":[{\"box\":{\"x\":0,\"y\":880,\"width\":1920,\"height\":200}}],"
|
||||
+ "\"hazards\":[],\"switches\":[],\"doors\":[]}";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user