Skip to content

Commit

Permalink
VistaJuego2 con la actualizacion de puntaje de player aun con fallas …
Browse files Browse the repository at this point in the history
…al serializar
  • Loading branch information
joangie committed Sep 3, 2019
1 parent da1333a commit 946ecb6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions TyperBalloons/src/Vistas/VistaJuego2.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ public VistaJuego2(Juego pd){
this.pd=pd;
}

/**
* Metodo que crea un scrollpane para las letras que tendra el usuario
* @return ScrollPane con las letras y el stock del jugador
*/
private ScrollPane createSP(){
ScrollPane sp = new ScrollPane(); //Para facilitar la visualizacion crearemos un scrollpane
playerLetters= new VBox();
Expand Down Expand Up @@ -177,7 +181,6 @@ private Pane elementos(Juego pd){
/**
* Inicia el juego para que el usuario pueda dar enter al escribir una palabra
* @param player_word palabra que ingresa el usuario en text field
* @param player_unique set de palabras que ha ingresado el usuario
* @param l2 Label que indicará al jugador si está ingresando palabras correctas
*/
public void iniciarJuego(TextField player_word, Label l2){
Expand Down Expand Up @@ -325,7 +328,8 @@ public TreeMap<Dificultad,TreeSet<Score>> leerArchivo() throws FileNotFoundExcep

}catch (IOException ex) {
Logger.getLogger(VistaJuego2.class.getName()).log(Level.SEVERE, null, ex);
Utilities.reportError(ex);
escribir1();

}catch (ClassNotFoundException ex){
Logger.getLogger(VistaJuego2.class.getName()).log(Level.SEVERE, null, ex);
Utilities.reportError(ex);
Expand Down

0 comments on commit 946ecb6

Please sign in to comment.