Initaler Commit
This commit is contained in:
0
.metadata/.lock
Normal file
0
.metadata/.lock
Normal file
5
.metadata/.lock_info
Normal file
5
.metadata/.lock_info
Normal file
@@ -0,0 +1,5 @@
|
||||
#Thu May 07 06:27:32 CEST 2026
|
||||
display=\:0
|
||||
host=mario-mint
|
||||
process-id=5833
|
||||
user=mario
|
||||
BIN
.metadata/.mylyn/repositories.xml.zip
Normal file
BIN
.metadata/.mylyn/repositories.xml.zip
Normal file
Binary file not shown.
8288
.metadata/.plugins/org.eclipse.buildship.core/gradle/versions.json
Normal file
8288
.metadata/.plugins/org.eclipse.buildship.core/gradle/versions.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,14 @@
|
||||
/*******************************************************************************
|
||||
* Copyright (c) 2023 Gradle Inc. and others
|
||||
*
|
||||
* This program and the accompanying materials are made
|
||||
* available under the terms of the Eclipse Public License 2.0
|
||||
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||
*
|
||||
* SPDX-License-Identifier: EPL-2.0
|
||||
******************************************************************************/
|
||||
initscript {
|
||||
allprojects {
|
||||
apply plugin: "eclipse"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<section name="Workbench">
|
||||
<section name="org.eclipse.buildship.ui.wizard.project.import">
|
||||
<item key="project_location" value="/home/mario/Workspaces/blight/blight-game"/>
|
||||
<section name="ProjectImportWizard.dialogBounds">
|
||||
<item key="DIALOG_X_ORIGIN" value="1018"/>
|
||||
<item key="DIALOG_Y_ORIGIN" value="363"/>
|
||||
<item key="DIALOG_WIDTH" value="525"/>
|
||||
<item key="DIALOG_HEIGHT" value="761"/>
|
||||
<item key="DIALOG_FONT_NAME" value="1|Ubuntu|10.0|0|GTK|1|"/>
|
||||
</section>
|
||||
</section>
|
||||
</section>
|
||||
@@ -0,0 +1,12 @@
|
||||
arguments=
|
||||
auto.sync=false
|
||||
build.scans.enabled=false
|
||||
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
|
||||
eclipse.preferences.version=1
|
||||
gradle.user.home=
|
||||
java.home=
|
||||
jvm.arguments=
|
||||
offline.mode=false
|
||||
override.workspace.settings=false
|
||||
show.console.view=false
|
||||
show.executions.view=false
|
||||
@@ -0,0 +1,35 @@
|
||||
package de.blight.game;
|
||||
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.system.AppSettings;
|
||||
import de.blight.game.scene.WorldScene;
|
||||
|
||||
public class BlightApp extends SimpleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
BlightApp app = new BlightApp();
|
||||
|
||||
AppSettings settings = new AppSettings(true);
|
||||
settings.setTitle("Blight");
|
||||
settings.setResolution(1280, 720);
|
||||
settings.setFrameRate(60);
|
||||
settings.setVSync(true);
|
||||
settings.setSamples(4);
|
||||
|
||||
app.setSettings(settings);
|
||||
app.setShowSettings(false);
|
||||
app.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleInitApp() {
|
||||
// Standard-FlyCamera deaktivieren — wir steuern die Kamera selbst
|
||||
flyCam.setEnabled(false);
|
||||
|
||||
stateManager.attach(new WorldScene());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleUpdate(float tpf) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package de.blight.game;
|
||||
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.system.AppSettings;
|
||||
import de.blight.game.scene.WorldScene;
|
||||
|
||||
public class BlightApp extends SimpleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
BlightApp app = new BlightApp();
|
||||
|
||||
AppSettings settings = new AppSettings(true);
|
||||
settings.setTitle("Blight");
|
||||
settings.setResolution(1280, 720);
|
||||
settings.setVSync(true);
|
||||
settings.setSamples(4);
|
||||
|
||||
app.setSettings(settings);
|
||||
app.setShowSettings(false);
|
||||
app.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleInitApp() {
|
||||
// Standard-FlyCamera deaktivieren — wir steuern die Kamera selbst
|
||||
flyCam.setEnabled(false);
|
||||
|
||||
stateManager.attach(new WorldScene());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleUpdate(float tpf) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,307 @@
|
||||
package de.blight.game.config;
|
||||
|
||||
import com.jme3.app.Application;
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.app.state.BaseAppState;
|
||||
import com.jme3.font.BitmapFont;
|
||||
import com.jme3.font.BitmapText;
|
||||
import com.jme3.input.KeyInput;
|
||||
import com.jme3.input.MouseInput;
|
||||
import com.jme3.input.RawInputListener;
|
||||
import com.jme3.input.controls.ActionListener;
|
||||
import com.jme3.input.controls.MouseButtonTrigger;
|
||||
import com.jme3.input.event.*;
|
||||
import com.jme3.input.event.KeyInputEvent;
|
||||
import com.jme3.input.event.MouseButtonEvent;
|
||||
import com.jme3.input.event.MouseMotionEvent;
|
||||
import com.jme3.input.event.JoyAxisEvent;
|
||||
import com.jme3.input.event.JoyButtonEvent;
|
||||
import com.jme3.input.event.TouchEvent;
|
||||
import com.jme3.material.Material;
|
||||
import com.jme3.material.RenderState;
|
||||
import com.jme3.math.ColorRGBA;
|
||||
import com.jme3.math.Vector2f;
|
||||
import com.jme3.renderer.queue.RenderQueue;
|
||||
import com.jme3.scene.Geometry;
|
||||
import com.jme3.scene.Node;
|
||||
import com.jme3.scene.shape.Quad;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Overlay-AppState der die Tastenbelegungs-Maske anzeigt.
|
||||
*
|
||||
* ESC → Schließen (ohne Speichern)
|
||||
* Klick auf Row → wartet auf neue Taste
|
||||
* ESC während Warten → bricht nur die Zuweisung ab
|
||||
* Speichern → schreibt JSON, ruft onSave-Callback
|
||||
*/
|
||||
public class ConfigScreen extends BaseAppState implements RawInputListener {
|
||||
|
||||
// Farben
|
||||
private static final ColorRGBA COL_BG = new ColorRGBA(0.05f, 0.05f, 0.08f, 0.88f);
|
||||
private static final ColorRGBA COL_PANEL = new ColorRGBA(0.10f, 0.10f, 0.16f, 1.00f);
|
||||
private static final ColorRGBA COL_ROW = new ColorRGBA(0.18f, 0.18f, 0.28f, 1.00f);
|
||||
private static final ColorRGBA COL_ROW_HOVER = new ColorRGBA(0.25f, 0.25f, 0.40f, 1.00f);
|
||||
private static final ColorRGBA COL_ROW_WAIT = new ColorRGBA(0.50f, 0.30f, 0.10f, 1.00f);
|
||||
private static final ColorRGBA COL_BTN_SAVE = new ColorRGBA(0.15f, 0.40f, 0.15f, 1.00f);
|
||||
private static final ColorRGBA COL_BTN_CANCEL = new ColorRGBA(0.40f, 0.15f, 0.15f, 1.00f);
|
||||
private static final ColorRGBA COL_TEXT = ColorRGBA.White;
|
||||
private static final ColorRGBA COL_TEXT_KEY = new ColorRGBA(0.85f, 0.85f, 0.50f, 1.00f);
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
private SimpleApplication app;
|
||||
private Node guiNode;
|
||||
private BitmapFont font;
|
||||
|
||||
private KeyBindings liveBindings; // geteilt mit der ganzen App
|
||||
private KeyBindings editCopy; // wird beim Öffnen geklont
|
||||
|
||||
private Runnable onSave; // Callback → PlayerInputControl.reloadBindings
|
||||
|
||||
private Node panel;
|
||||
private List<Row> rows = new ArrayList<>();
|
||||
private int waitingRow = -1; // -1 = keine Zuweisung aktiv
|
||||
|
||||
// UI-Elemente für Buttons (Bounds in Screen-Koordinaten)
|
||||
private float saveBtnX, saveBtnY, saveBtnW, saveBtnH;
|
||||
private float cancelBtnX, cancelBtnY;
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
private static class Row {
|
||||
String field;
|
||||
String label;
|
||||
BitmapText keyText;
|
||||
Geometry bg;
|
||||
float x, y, w, h; // Button-Bounds
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
public ConfigScreen(KeyBindings liveBindings, Runnable onSave) {
|
||||
this.liveBindings = liveBindings;
|
||||
this.onSave = onSave;
|
||||
}
|
||||
|
||||
public boolean isWaiting() { return waitingRow >= 0; }
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Lifecycle
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
protected void initialize(Application app) {
|
||||
this.app = (SimpleApplication) app;
|
||||
this.guiNode = this.app.getGuiNode();
|
||||
this.font = app.getAssetManager().loadFont("Interface/Fonts/Default.fnt");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onEnable() {
|
||||
editCopy = liveBindings.copy();
|
||||
waitingRow = -1;
|
||||
buildUI();
|
||||
app.getInputManager().setCursorVisible(true);
|
||||
app.getInputManager().addRawInputListener(this);
|
||||
app.getInputManager().addMapping("_CfgClick", new MouseButtonTrigger(MouseInput.BUTTON_LEFT));
|
||||
app.getInputManager().addListener(clickListener, "_CfgClick");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onDisable() {
|
||||
if (panel != null) { guiNode.detachChild(panel); panel = null; }
|
||||
rows.clear();
|
||||
waitingRow = -1;
|
||||
app.getInputManager().removeRawInputListener(this);
|
||||
app.getInputManager().deleteMapping("_CfgClick");
|
||||
app.getInputManager().setCursorVisible(false);
|
||||
}
|
||||
|
||||
@Override protected void cleanup(Application app) {}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// UI aufbauen
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
private void buildUI() {
|
||||
float sw = app.getCamera().getWidth();
|
||||
float sh = app.getCamera().getHeight();
|
||||
|
||||
panel = new Node("cfg-panel");
|
||||
|
||||
// Halbdurchsichtiger Overlay über dem Spiel
|
||||
addQuad(panel, 0, 0, sw, sh, COL_BG, -2);
|
||||
|
||||
float pw = 720, ph = 440;
|
||||
float px = (sw - pw) / 2f, py = (sh - ph) / 2f;
|
||||
addQuad(panel, px, py, pw, ph, COL_PANEL, -1);
|
||||
|
||||
// Titel
|
||||
BitmapText title = text("TASTENBELEGUNG", 20, COL_TEXT);
|
||||
centerText(title, px, py + ph - 40, pw);
|
||||
panel.attachChild(title);
|
||||
|
||||
BitmapText hint = text("Klicke eine Taste um sie neu zu belegen", 14, new ColorRGBA(0.7f, 0.7f, 0.7f, 1f));
|
||||
centerText(hint, px, py + ph - 70, pw);
|
||||
panel.attachChild(hint);
|
||||
|
||||
// Reihen
|
||||
float rowX = px + 30;
|
||||
float keyX = px + pw - 220;
|
||||
float rowW = 180;
|
||||
float rowH = 36;
|
||||
float startY = py + ph - 110;
|
||||
float stepY = 48;
|
||||
|
||||
for (int i = 0; i < KeyBindings.ENTRIES.length; i++) {
|
||||
String[] entry = KeyBindings.ENTRIES[i];
|
||||
float ry = startY - i * stepY;
|
||||
|
||||
BitmapText lbl = text(entry[1], 16, COL_TEXT);
|
||||
lbl.setLocalTranslation(rowX, ry + rowH - 8, 0);
|
||||
panel.attachChild(lbl);
|
||||
|
||||
Geometry bg = addQuad(panel, keyX, ry, rowW, rowH, COL_ROW, 0);
|
||||
|
||||
BitmapText kt = text(KeyNames.of(editCopy.get(entry[0])), 16, COL_TEXT_KEY);
|
||||
kt.setLocalTranslation(keyX + 10, ry + rowH - 8, 1);
|
||||
panel.attachChild(kt);
|
||||
|
||||
Row row = new Row();
|
||||
row.field = entry[0];
|
||||
row.label = entry[1];
|
||||
row.keyText = kt;
|
||||
row.bg = bg;
|
||||
row.x = keyX; row.y = ry; row.w = rowW; row.h = rowH;
|
||||
rows.add(row);
|
||||
}
|
||||
|
||||
// Buttons
|
||||
float btnW = 160, btnH = 42;
|
||||
float btnY = py + 25;
|
||||
saveBtnX = px + pw / 2f - btnW - 15;
|
||||
saveBtnY = btnY;
|
||||
saveBtnW = btnW;
|
||||
saveBtnH = btnH;
|
||||
cancelBtnX = px + pw / 2f + 15;
|
||||
cancelBtnY = btnY;
|
||||
|
||||
addQuad(panel, saveBtnX, saveBtnY, btnW, btnH, COL_BTN_SAVE, 0);
|
||||
BitmapText saveLabel = text("Speichern", 16, COL_TEXT);
|
||||
centerText(saveLabel, saveBtnX, saveBtnY + btnH - 10, btnW);
|
||||
panel.attachChild(saveLabel);
|
||||
|
||||
addQuad(panel, cancelBtnX, cancelBtnY, btnW, btnH, COL_BTN_CANCEL, 0);
|
||||
BitmapText cancelLabel = text("Abbrechen", 16, COL_TEXT);
|
||||
centerText(cancelLabel, cancelBtnX, cancelBtnY + btnH - 10, btnW);
|
||||
panel.attachChild(cancelLabel);
|
||||
|
||||
guiNode.attachChild(panel);
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Mausklick
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
private final ActionListener clickListener = (name, isPressed, tpf) -> {
|
||||
if (!isPressed) return;
|
||||
Vector2f cursor = app.getInputManager().getCursorPosition();
|
||||
|
||||
// Reihen prüfen
|
||||
for (int i = 0; i < rows.size(); i++) {
|
||||
Row r = rows.get(i);
|
||||
if (hits(cursor, r.x, r.y, r.w, r.h)) {
|
||||
waitingRow = i;
|
||||
r.bg.getMaterial().setColor("Color", COL_ROW_WAIT);
|
||||
r.keyText.setText("...");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Speichern
|
||||
if (hits(cursor, saveBtnX, saveBtnY, saveBtnW, saveBtnH)) {
|
||||
liveBindings.copyFrom(editCopy);
|
||||
KeyBindingStore.save(liveBindings);
|
||||
if (onSave != null) onSave.run();
|
||||
setEnabled(false);
|
||||
return;
|
||||
}
|
||||
|
||||
// Abbrechen
|
||||
if (hits(cursor, cancelBtnX, cancelBtnY, saveBtnW, saveBtnH)) {
|
||||
setEnabled(false);
|
||||
}
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Tastendruck beim Warten auf Zuweisung (RawInputListener)
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
@Override
|
||||
public void onKeyEvent(KeyInputEvent evt) {
|
||||
if (!evt.isPressed() || waitingRow < 0) return;
|
||||
|
||||
if (evt.getKeyCode() == KeyInput.KEY_ESCAPE) {
|
||||
// Zuweisung abbrechen, Maske offen lassen
|
||||
resetRowColor(waitingRow);
|
||||
waitingRow = -1;
|
||||
return;
|
||||
}
|
||||
|
||||
Row r = rows.get(waitingRow);
|
||||
editCopy.set(r.field, evt.getKeyCode());
|
||||
r.keyText.setText(KeyNames.of(evt.getKeyCode()));
|
||||
resetRowColor(waitingRow);
|
||||
waitingRow = -1;
|
||||
}
|
||||
|
||||
private void resetRowColor(int idx) {
|
||||
rows.get(idx).bg.getMaterial().setColor("Color", COL_ROW);
|
||||
}
|
||||
|
||||
// RawInputListener-Pflichtmethoden
|
||||
@Override public void beginInput() {}
|
||||
@Override public void endInput() {}
|
||||
@Override public void onMouseMotionEvent(MouseMotionEvent evt) {}
|
||||
@Override public void onMouseButtonEvent(MouseButtonEvent evt) {}
|
||||
@Override public void onJoyAxisEvent(JoyAxisEvent evt) {}
|
||||
@Override public void onJoyButtonEvent(JoyButtonEvent evt) {}
|
||||
@Override public void onTouchEvent(TouchEvent evt) {}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Hilfsmethoden
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
private Geometry addQuad(Node parent, float x, float y, float w, float h, ColorRGBA color, float z) {
|
||||
Geometry geo = new Geometry("q", new Quad(w, h));
|
||||
Material mat = new Material(app.getAssetManager(), "Common/MatDefs/Misc/Unshaded.j3md");
|
||||
mat.setColor("Color", color.clone());
|
||||
if (color.a < 1f) {
|
||||
mat.getAdditionalRenderState().setBlendMode(RenderState.BlendMode.Alpha);
|
||||
geo.setQueueBucket(RenderQueue.Bucket.Transparent);
|
||||
}
|
||||
geo.setMaterial(mat);
|
||||
geo.setLocalTranslation(x, y, z);
|
||||
parent.attachChild(geo);
|
||||
return geo;
|
||||
}
|
||||
|
||||
private BitmapText text(String content, int size, ColorRGBA color) {
|
||||
BitmapText t = new BitmapText(font, false);
|
||||
t.setSize(size);
|
||||
t.setColor(color);
|
||||
t.setText(content);
|
||||
return t;
|
||||
}
|
||||
|
||||
private void centerText(BitmapText t, float x, float y, float width) {
|
||||
t.setLocalTranslation(x + (width - t.getLineWidth()) / 2f, y, 1);
|
||||
}
|
||||
|
||||
private boolean hits(Vector2f p, float x, float y, float w, float h) {
|
||||
return p.x >= x && p.x <= x + w && p.y >= y && p.y <= y + h;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package de.blight.game.control;
|
||||
|
||||
import com.jme3.input.InputManager;
|
||||
import com.jme3.input.KeyInput;
|
||||
import com.jme3.input.MouseInput;
|
||||
import com.jme3.input.controls.*;
|
||||
import com.jme3.math.*;
|
||||
import com.jme3.renderer.Camera;
|
||||
import com.jme3.scene.Spatial;
|
||||
|
||||
/**
|
||||
* Bewegt einen Charakter relativ zur Kamera-Horizontal-Richtung
|
||||
* und dreht ihn in Bewegungsrichtung.
|
||||
*/
|
||||
public class CharacterControl {
|
||||
|
||||
private static final float MOVE_SPEED = 8f;
|
||||
private static final float ROTATE_SPEED = 5f;
|
||||
|
||||
private final InputManager inputManager;
|
||||
private final Camera cam;
|
||||
|
||||
private Spatial character;
|
||||
|
||||
// Eingabezustand
|
||||
private boolean forward, backward, left, right;
|
||||
|
||||
public CharacterControl(InputManager inputManager, Camera cam) {
|
||||
this.inputManager = inputManager;
|
||||
this.cam = cam;
|
||||
registerMappings();
|
||||
}
|
||||
|
||||
public void setCharacter(Spatial character) {
|
||||
this.character = character;
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Eingabe-Registrierung
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
private void registerMappings() {
|
||||
inputManager.addMapping("Forward", new KeyTrigger(KeyInput.KEY_W), new KeyTrigger(KeyInput.KEY_UP));
|
||||
inputManager.addMapping("Backward", new KeyTrigger(KeyInput.KEY_S), new KeyTrigger(KeyInput.KEY_DOWN));
|
||||
inputManager.addMapping("Left", new KeyTrigger(KeyInput.KEY_A), new KeyTrigger(KeyInput.KEY_LEFT));
|
||||
inputManager.addMapping("Right", new KeyTrigger(KeyInput.KEY_D), new KeyTrigger(KeyInput.KEY_RIGHT));
|
||||
|
||||
ActionListener listener = (name, isPressed, tpf) -> {
|
||||
switch (name) {
|
||||
case "Forward" -> forward = isPressed;
|
||||
case "Backward" -> backward = isPressed;
|
||||
case "Left" -> left = isPressed;
|
||||
case "Right" -> right = isPressed;
|
||||
}
|
||||
};
|
||||
|
||||
inputManager.addListener(listener, "Forward", "Backward", "Left", "Right");
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
// Update pro Frame
|
||||
// -----------------------------------------------------------------------
|
||||
|
||||
public void update(float tpf) {
|
||||
if (character == null) return;
|
||||
|
||||
// Kamerahorizontale Vorwärtsrichtung (Y ignorieren)
|
||||
Vector3f camDir = cam.getDirection().clone().setY(0).normalizeLocal();
|
||||
Vector3f camLeft = cam.getLeft().clone().setY(0).normalizeLocal();
|
||||
|
||||
Vector3f moveDir = Vector3f.ZERO.clone();
|
||||
if (forward) moveDir.addLocal(camDir);
|
||||
if (backward) moveDir.subtractLocal(camDir);
|
||||
if (left) moveDir.addLocal(camLeft);
|
||||
if (right) moveDir.subtractLocal(camLeft);
|
||||
|
||||
if (moveDir.lengthSquared() > 0.001f) {
|
||||
moveDir.normalizeLocal();
|
||||
character.move(moveDir.mult(MOVE_SPEED * tpf));
|
||||
|
||||
// Charakter zur Bewegungsrichtung drehen
|
||||
Quaternion targetRot = new Quaternion();
|
||||
targetRot.lookAt(moveDir, Vector3f.UNIT_Y);
|
||||
|
||||
Quaternion current = character.getLocalRotation();
|
||||
current.slerp(targetRot, ROTATE_SPEED * tpf);
|
||||
character.setLocalRotation(current);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package de.blight.game;
|
||||
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.system.AppSettings;
|
||||
import de.blight.game.scene.WorldScene;
|
||||
|
||||
public class BlightApp extends SimpleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
BlightApp app = new BlightApp();
|
||||
|
||||
AppSettings settings = new AppSettings(true);
|
||||
settings.setTitle("Blight");
|
||||
settings.setResolution(1280, 720);
|
||||
settings.setSamples(4);
|
||||
|
||||
app.setSettings(settings);
|
||||
app.setShowSettings(true);
|
||||
app.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleInitApp() {
|
||||
// Standard-FlyCamera deaktivieren — wir steuern die Kamera selbst
|
||||
flyCam.setEnabled(false);
|
||||
|
||||
stateManager.attach(new WorldScene());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleUpdate(float tpf) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
rootProject.name = 'blight'
|
||||
@@ -0,0 +1,26 @@
|
||||
package de.blight.game;
|
||||
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.system.AppSettings;
|
||||
import de.blight.game.scene.WorldScene;
|
||||
|
||||
public class BlightApp extends SimpleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
BlightApp app = new BlightApp();
|
||||
|
||||
app.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleInitApp() {
|
||||
// Standard-FlyCamera deaktivieren — wir steuern die Kamera selbst
|
||||
flyCam.setEnabled(false);
|
||||
|
||||
stateManager.attach(new WorldScene());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleUpdate(float tpf) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package de.blight.game;
|
||||
|
||||
import com.jme3.app.SimpleApplication;
|
||||
import com.jme3.system.AppSettings;
|
||||
import de.blight.game.scene.WorldScene;
|
||||
|
||||
public class BlightApp extends SimpleApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
BlightApp app = new BlightApp();
|
||||
|
||||
AppSettings settings = new AppSettings(true);
|
||||
settings.setTitle("Blight");
|
||||
settings.setResolution(1280, 720);
|
||||
settings.setSamples(4);
|
||||
|
||||
app.setSettings(settings);
|
||||
app.setShowSettings(false);
|
||||
app.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleInitApp() {
|
||||
// Standard-FlyCamera deaktivieren — wir steuern die Kamera selbst
|
||||
flyCam.setEnabled(false);
|
||||
|
||||
stateManager.attach(new WorldScene());
|
||||
}
|
||||
|
||||
@Override
|
||||
public void simpleUpdate(float tpf) {
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
|
||||
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.core.resources/.root/2.tree
Normal file
BIN
.metadata/.plugins/org.eclipse.core.resources/.root/2.tree
Normal file
Binary file not shown.
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.core.resources/2.snap
Normal file
BIN
.metadata/.plugins/org.eclipse.core.resources/2.snap
Normal file
Binary file not shown.
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchHistory>
|
||||
<launchGroup id="org.eclipse.debug.ui.launchGroup.debug">
|
||||
<mruHistory>
|
||||
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="BlightApp"/> "/>
|
||||
</mruHistory>
|
||||
<favorites/>
|
||||
</launchGroup>
|
||||
<launchGroup id="org.eclipse.debug.ui.launchGroup.profile">
|
||||
<mruHistory/>
|
||||
<favorites/>
|
||||
</launchGroup>
|
||||
<launchGroup id="org.eclipse.eclemma.ui.launchGroup.coverage">
|
||||
<mruHistory>
|
||||
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="BlightApp"/> "/>
|
||||
</mruHistory>
|
||||
<favorites/>
|
||||
</launchGroup>
|
||||
<launchGroup id="org.eclipse.ui.externaltools.launchGroup">
|
||||
<mruHistory/>
|
||||
<favorites/>
|
||||
</launchGroup>
|
||||
<launchGroup id="org.eclipse.debug.ui.launchGroup.run">
|
||||
<mruHistory>
|
||||
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="BlightApp"/> "/>
|
||||
<launch memento="<?xml version="1.0" encoding="UTF-8" standalone="no"?> <launchConfiguration local="true" path="blight-game - eclipse"/> "/>
|
||||
</mruHistory>
|
||||
<favorites/>
|
||||
</launchGroup>
|
||||
</launchHistory>
|
||||
2764
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
Normal file
2764
.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
Normal file
File diff suppressed because it is too large
Load Diff
BIN
.metadata/.plugins/org.eclipse.jdt.core/1007707583.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1007707583.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/104128081.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/104128081.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1124510679.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1124510679.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1136998059.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1136998059.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1305835383.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1305835383.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1309346846.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1309346846.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1317406562.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1317406562.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1350656539.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1350656539.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1351491558.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1351491558.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1462452114.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1462452114.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1490162601.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1490162601.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1545642898.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1545642898.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1550771283.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1550771283.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1578672902.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1578672902.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1585095811.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1585095811.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1608883781.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1608883781.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/16257995.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/16257995.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1703316476.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1703316476.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1738064530.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1738064530.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1865797976.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1865797976.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/1989349782.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/1989349782.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2356684838.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2356684838.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2392911294.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2392911294.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/24151692.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/24151692.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2479985475.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2479985475.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2497820567.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2497820567.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/262304292.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/262304292.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2696219173.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2696219173.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2722916612.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2722916612.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2783277246.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2783277246.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2865784985.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2865784985.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/2893713661.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/2893713661.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3011908894.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3011908894.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3040618168.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3040618168.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3075372551.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3075372551.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3096076814.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3096076814.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3190887717.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3190887717.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3282007833.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3282007833.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3331268705.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3331268705.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3390708485.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3390708485.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3432172071.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3432172071.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3534421922.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3534421922.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3591837599.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3591837599.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3791361740.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3791361740.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3901683754.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3901683754.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3945373644.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3945373644.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3950534511.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3950534511.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/3965639856.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/3965639856.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/4153997317.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/4153997317.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/4255926859.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/4255926859.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/436234689.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/436234689.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/458837781.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/458837781.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/606255621.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/606255621.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/734632761.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/734632761.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/797385254.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/797385254.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/860469874.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/860469874.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/890886771.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/890886771.index
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/900586112.index
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/900586112.index
Normal file
Binary file not shown.
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/externalFilesCache
Normal file
Binary file not shown.
BIN
.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps
Normal file
BIN
.metadata/.plugins/org.eclipse.jdt.core/externalLibsTimeStamps
Normal file
Binary file not shown.
@@ -0,0 +1 @@
|
||||
INDEX VERSION 1.134
|
||||
@@ -0,0 +1 @@
|
||||
java
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user