Compare commits

..

No commits in common. "v0.6.0" and "v0.5.0" have entirely different histories.

4 changed files with 5 additions and 65 deletions

View File

@ -6,23 +6,7 @@ lignée du jeu amont (0.2.2 en 2017, abandonné).
## [Non publié] ## [Non publié]
## [0.5.0] — 2026-11-15
La mission Exterminate devient un vrai combat (spawner autour du joueur,
ennemis qui chassent), le premier boss — Ambulas — apparaît en Défense et en
Exterminate, et le gameplay Warframe arrive sur Android : glisse murale,
saut mural, pouvoirs et tir en boutons dédiés.
### Ajouté ### Ajouté
- **Serveur de matchmaking configurable + testé end-to-end** : le client se
connecte désormais à un serveur self-hosté (`LS_MP_HOST`/`LS_MP_PORT` en
env pour desktop, PlayerPrefs `mp_host`/`mp_port` pour Android, défaut =
serveur d'origine mort) — le serveur matchmaker 2017 (repo
`Matchmaking-Server`, Node/UDP) fonctionne toujours : test desktop local
réussi (matchmaking_join → game_create → niveau "multiplayer" chargé)
- **Override de niveau au démarrage** : `LS_LEVEL=<nom>` (env) charge
directement un niveau (pattern du map.tmx override de `Main.java`) —
réservé au test multi (exige `LS_MP_HOST`)
- **Spawner d'ennemis Exterminate** (style Warframe : les ennemis apparaissent - **Spawner d'ennemis Exterminate** (style Warframe : les ennemis apparaissent
autour du joueur, 3 max vivants, jusqu'à 15 — "no more, no less", TODO autour du joueur, 3 max vivants, jusqu'à 15 — "no more, no less", TODO
2017 résolu pour de bon) 2017 résolu pour de bon)

View File

@ -178,10 +178,5 @@ reste du portage Android.
provenance (`LICENSE`), paternité upstream honorée provenance (`LICENSE`), paternité upstream honorée
- [ ] Distribution desktop : réintégrer shadowJar si besoin de distribuer - [ ] Distribution desktop : réintégrer shadowJar si besoin de distribuer
- [ ] Kotlin ou pas (carte Trello #44) — recommandation : non, rester Java - [ ] Kotlin ou pas (carte Trello #44) — recommandation : non, rester Java
- [x] Multi : self-host du matchmaker — FAIT (v0.6.0) : le serveur 2017 - [ ] Multi : self-host du matchmaker (2 joueurs, P2P) — faisable, mais
(repo Matchmaking-Server, Node/UDP) fonctionne tel quel ; client faible valeur tant que le solo n'est pas enrichi
configurable (env LS_MP_HOST/LS_MP_PORT desktop, PlayerPrefs
mp_host/mp_port Android, défaut = serveur d'origine mort) ; test
desktop local E2E réussi (join → game_create → niveau multi chargé).
Restant : test coop à 2 clients réels (émulateur zombie au moment du
test) + déploiement serveur au choix de l'utilisateur

View File

@ -21,7 +21,6 @@ import com.ezardlabs.lostsector.levels.DefenseLevel;
import com.ezardlabs.lostsector.levels.ExterminateLevel; import com.ezardlabs.lostsector.levels.ExterminateLevel;
import com.ezardlabs.lostsector.levels.ExploreLevel; import com.ezardlabs.lostsector.levels.ExploreLevel;
import com.ezardlabs.lostsector.levels.MainMenuLevel; import com.ezardlabs.lostsector.levels.MainMenuLevel;
import com.ezardlabs.dethsquare.util.GameLog;
import com.ezardlabs.lostsector.levels.MultiplayerLevel; import com.ezardlabs.lostsector.levels.MultiplayerLevel;
import com.ezardlabs.lostsector.levels.MultiplayerLobbyLevel; import com.ezardlabs.lostsector.levels.MultiplayerLobbyLevel;
import com.ezardlabs.lostsector.levels.ProceduralLevel; import com.ezardlabs.lostsector.levels.ProceduralLevel;
@ -77,21 +76,8 @@ public class Game extends BaseGame {
registerPickupPrefabs(); registerPickupPrefabs();
registerSpawnPointPrefabs(); registerSpawnPointPrefabs();
/*
* LS_LEVEL (env) : charger un niveau précis au démarrage (pattern du
* map.tmx override de Main.java) — test automatisé du lobby/multi sans
* clic : LS_LEVEL=multiplayer_lobby gradlew run.
*/
String startLevel = System.getenv("LS_LEVEL");
if (startLevel != null && !startLevel.isEmpty() && System.getenv("LS_MP_HOST") != null) {
// Un niveau non-menu ne sert qu'au test multi (env MP_HOST requis
// pour ne pas le rendre accessible par accident aux joueurs).
GameLog.i("LS-LEVEL", "LS_LEVEL override : démarrage sur '" + startLevel + "'");
LevelManager.loadLevel(startLevel);
} else {
LevelManager.loadLevel("main_menu"); LevelManager.loadLevel("main_menu");
} }
}
private void loadSettings() { private void loadSettings() {
AudioManager.setMasterVolume(PlayerPrefs.getInt("audio_master_volume", 5) / 15f); AudioManager.setMasterVolume(PlayerPrefs.getInt("audio_master_volume", 5) / 15f);

View File

@ -3,7 +3,6 @@ package com.ezardlabs.lostsector.levels;
import com.ezardlabs.dethsquare.Camera; import com.ezardlabs.dethsquare.Camera;
import com.ezardlabs.dethsquare.GameObject; import com.ezardlabs.dethsquare.GameObject;
import com.ezardlabs.dethsquare.GuiText; import com.ezardlabs.dethsquare.GuiText;
import com.ezardlabs.dethsquare.PlayerPrefs;
import com.ezardlabs.dethsquare.Level; import com.ezardlabs.dethsquare.Level;
import com.ezardlabs.dethsquare.LevelManager; import com.ezardlabs.dethsquare.LevelManager;
import com.ezardlabs.dethsquare.Screen; import com.ezardlabs.dethsquare.Screen;
@ -12,7 +11,6 @@ import com.ezardlabs.dethsquare.Vector2;
import com.ezardlabs.dethsquare.multiplayer.Matchmaker; import com.ezardlabs.dethsquare.multiplayer.Matchmaker;
import com.ezardlabs.dethsquare.multiplayer.Matchmaker.MatchmakingListener; import com.ezardlabs.dethsquare.multiplayer.Matchmaker.MatchmakingListener;
import com.ezardlabs.dethsquare.multiplayer.MatchmakingGame; import com.ezardlabs.dethsquare.multiplayer.MatchmakingGame;
import com.ezardlabs.dethsquare.util.GameLog;
import java.net.InetAddress; import java.net.InetAddress;
import java.net.UnknownHostException; import java.net.UnknownHostException;
@ -27,36 +25,13 @@ public class MultiplayerLobbyLevel extends Level {
new Vector2(Screen.width / 2 - guiText.getWidth() / 2, Screen.height / 2 - 25)); new Vector2(Screen.width / 2 - guiText.getWidth() / 2, Screen.height / 2 - 25));
GameObject.instantiate(new GameObject("Camera", new Camera(true)), new Vector2()); GameObject.instantiate(new GameObject("Camera", new Camera(true)), new Vector2());
/*
* Serveur de matchmaking configurable : l'équipe d'origine codait en
* dur "8bitwarframe.com:3000" (serveur mort). Ordre de résolution :
* 1. variable d'environnement LS_MP_HOST / LS_MP_PORT (test desktop :
* `LS_MP_HOST=127.0.0.1 LS_MP_PORT=3000 gradlew run`) ;
* 2. PlayerPrefs mp_host / mp_port (Android : éditable via run-as,
* ou hôte du Mac = 10.0.2.2 depuis l'émulateur) ;
* 3. défaut : serveur d'origine (si un jour il revit).
*/
String host = System.getenv("LS_MP_HOST");
if (host == null || host.isEmpty()) {
host = PlayerPrefs.getString("mp_host", "8bitwarframe.com");
}
int port;
String portEnv = System.getenv("LS_MP_PORT");
if (portEnv != null && !portEnv.isEmpty()) {
port = Integer.parseInt(portEnv);
} else {
port = PlayerPrefs.getInt("mp_port", 3000);
}
GameLog.i("LS-MISSION", "Matchmaking : connexion à " + host + ":" + port);
InetAddress ip = null; InetAddress ip = null;
try { try {
ip = InetAddress.getByName(host); ip = InetAddress.getByName("8bitwarframe.com");
} catch (UnknownHostException e) { } catch (UnknownHostException e) {
GameLog.e("LS-MISSION", "Matchmaking : hôte '" + host + "' introuvable");
e.printStackTrace(); e.printStackTrace();
} }
Matchmaker matchmaker = new Matchmaker(ip, port); Matchmaker matchmaker = new Matchmaker(ip, 3000);
matchmaker.findGame(new MatchmakingListener() { matchmaker.findGame(new MatchmakingListener() {
@Override @Override
public boolean onCreateGame() { public boolean onCreateGame() {