Weiter daran gearbeitet, die welt aus dem editor ins game zu bringen
This commit is contained in:
14
blight-map/build.gradle
Normal file
14
blight-map/build.gradle
Normal file
@@ -0,0 +1,14 @@
|
||||
// Enthält die Karten-Daten des Spiels (src/main/map/blight_map.blm).
|
||||
// Wird von blight-editor und blight-game importiert, damit beide
|
||||
// denselben kanonischen Map-Pfad verwenden.
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
resources {
|
||||
srcDirs = ['src/main/map', 'src/main/resources']
|
||||
}
|
||||
}
|
||||
}
|
||||
13
blight-map/src/main/java/de/blight/map/MapPaths.java
Normal file
13
blight-map/src/main/java/de/blight/map/MapPaths.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package de.blight.map;
|
||||
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
|
||||
/** Kanonische Pfade zur Karten-Datei, relativ zum Projekt-Root (workingDir). */
|
||||
public final class MapPaths {
|
||||
|
||||
public static final Path MAP_DIR = Paths.get("blight-map", "src", "main", "map");
|
||||
public static final Path MAP_FILE = MAP_DIR.resolve("blight_map.blm");
|
||||
|
||||
private MapPaths() {}
|
||||
}
|
||||
0
blight-map/src/main/map/.gitkeep
Normal file
0
blight-map/src/main/map/.gitkeep
Normal file
BIN
blight-map/src/main/map/blight_map.blm
Normal file
BIN
blight-map/src/main/map/blight_map.blm
Normal file
Binary file not shown.
Reference in New Issue
Block a user