Avalanche fonctionnel (4e pouvoir Frost) + licence MIT

- Player : état CASTING enregistré dans la StateMachine (NPE sinon), ability4Check décommenté (50 énergie, au sol)
- Frost.ability4 : suppression du play("cast_avalanche") (animation jamais existante), l'état CASTING joue "cast"
- Avalanche : animations "background"/"foreground" (les noms avalanche_bg/fg n'existaient pas)
- LICENSE : MIT, note de provenance (projet amont abandonné sans licence publiée, décision du mainteneur)
This commit is contained in:
Siphonight 2026-11-15 14:04:58 +01:00
parent 7af74680e9
commit 8de17b9d9a
6 changed files with 70 additions and 10 deletions

35
LICENSE Normal file
View File

@ -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.

View File

@ -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 |

View File

@ -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

View File

@ -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() {

View File

@ -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));
}
}

View File

@ -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");
}
}
}