diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..97c2887 --- /dev/null +++ b/LICENSE @@ -0,0 +1,35 @@ +MIT License + +Copyright (c) 2026 Siphonight — portage et modernisation +Copyright (c) 2015-2017 8-Bit Warframe team — code et assets d'origine + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + +--- + +Note de provenance (traduction) : + +Le jeu Lost Sector et le moteur Dethsquare ont été développés par l'équipe +8-Bit Warframe (github.com/8-Bit-Warframe) entre 2015 et 2017, puis abandonnés +sans qu'aucune licence ne soit jamais publiée dans les dépôts. Le projet étant +mort depuis près de dix ans et sans réponse des auteurs d'origine, le +portage présent ici est publié sous licence MIT conformément à la décision du +mainteneur de ce dépôt. Les droits moraux et la paternité du code et des +assets d'origine restent attribués à l'équipe 8-Bit Warframe, ce que la ligne +de copyright ci-dessus honore. diff --git a/README.md b/README.md index 14282e5..b503fcf 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,10 @@ l'application Android (`android-app/`) sont fusionnés ici (à l'origine trois dépôts GitHub séparés reliés par des submodules). Sources amont : `github.com/8-Bit-Warframe/{Lost-Sector, Dethsquare-Engine, Lost-Sector-desktop}`. +**Licence : MIT** (voir `LICENSE`) — l'équipe d'origine a abandonné le projet +sans jamais publier de licence ; la décision de publier ce portage en libre +est documentée dans le fichier LICENSE (note de provenance). + ## Fonctionnalités | Fonctionnalité | Desktop | Android | État | diff --git a/TODO.md b/TODO.md index eb4f617..0e01da5 100644 --- a/TODO.md +++ b/TODO.md @@ -119,8 +119,9 @@ reste du portage Android. ## 7. Décisions à prendre -- [ ] Licence : contacter l'équipe d'origine (repo dormant, aucune LICENSE) - avant toute publication (Play Store inclus) +- [x] Licence : l'équipe d'origine (dormante depuis 2017) n'a jamais publié de + licence ; le mainteneur a tranché — publication sous MIT avec note de + provenance (`LICENSE`), paternité upstream honorée - [ ] Distribution desktop : réintégrer shadowJar si besoin de distribuer - [ ] Kotlin ou pas (carte Trello #44) — recommandation : non, rester Java - [ ] Multi : self-host du matchmaker (2 joueurs, P2P) — faisable, mais diff --git a/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/Player.java b/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/Player.java index 7fd9491..610d2cd 100644 --- a/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/Player.java +++ b/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/Player.java @@ -76,6 +76,11 @@ public class Player extends Script { new Transition<>(State.IDLE, () -> warframe.getMeleeWeapon().isStowed()), jumping, melee, shooting); stateMachine.addState(State.SHOOTING, new Transition<>(State.IDLE, () -> !warframe.getPrimaryWeapon().isShooting())); + // CASTING : utilisé par le 4ᵉ pouvoir (Avalanche). En 2017 l'état était + // déclaré dans l'enum mais jamais enregistré -> NPE dans StateMachine + // dès la première frame en CASTING (stateTransitions.get(state) == null). + stateMachine.addState(State.CASTING, + new Transition<>(State.IDLE, () -> gameObject.animator.isFinished())); stateMachine.init(State.IDLE); } @@ -224,12 +229,18 @@ public class Player extends Script { } private void ability4Check() { - /*if ((state == State.IDLE || state == State.RUNNING) && Input.getKeyDown(KeyCode.ALPHA_4) && - warframe.hasEnergy(50)) { + /* + * Décommenté (chantier 2017 abandonné) : 4ᵉ pouvoir Frost = Avalanche, + * coût 50 d'énergie, seulement au sol (IDLE/RUNNING). L'état CASTING + * joue l'animation "cast" (14 frames) puis repasse en IDLE quand + * l'animation est terminée (voir addState CASTING). + */ + if ((stateMachine.getState() == State.IDLE || stateMachine.getState() == State.RUNNING) && + Input.getKeyDown(KeyCode.ALPHA_4) && warframe.hasEnergy(50)) { warframe.removeEnergy(50); warframe.ability4(); - state = State.CASTING; - }*/ + stateMachine.setState(State.CASTING); + } } private boolean castCheck() { diff --git a/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/Frost.java b/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/Frost.java index 516d2ed..3a58c94 100644 --- a/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/Frost.java +++ b/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/Frost.java @@ -59,7 +59,13 @@ public class Frost extends Warframe { @Override public void ability4() { - /*gameObject.animator.play("cast_avalanche"); - GameObject.instantiate(new GameObject("Avalanche", new Avalanche()), transform.position.offset(-300, -100));*/ + /* + * Avalanche : le play("cast_avalanche") d'origine est retiré — cette + * animation n'a jamais existé dans frost/anim.json (seul "cast" y est, + * 14 frames) et c'est l'état CASTING de Player qui la joue. Reste + * l'invocation de l'effet lui-même. + */ + GameObject.instantiate(new GameObject("Avalanche", new Avalanche()), + transform.position.offset(-300, -100)); } } diff --git a/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/abilities/frost/Avalanche.java b/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/abilities/frost/Avalanche.java index aad7d63..5b0d8c3 100644 --- a/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/abilities/frost/Avalanche.java +++ b/lost-sector/src/main/java/com/ezardlabs/lostsector/objects/warframes/abilities/frost/Avalanche.java @@ -56,7 +56,10 @@ public class Avalanche extends Script { @Override public void start() { gameObject.renderer.setDepth(2); - gameObject.animator.play("avalanche_bg"); + // Noms réels des animations dans avalanche/anim.json ("background", + // "foreground") — le code d'origine jouait "avalanche_bg"/ + // "avalanche_fg" qui n'existent pas. + gameObject.animator.play("background"); } } @@ -65,7 +68,7 @@ public class Avalanche extends Script { @Override public void start() { gameObject.renderer.setDepth(5); - gameObject.animator.play("avalanche_fg"); + gameObject.animator.play("foreground"); } } }