diff --git a/app/src/main/java/sma/rhythmtapper/framework/Graphics.java b/app/src/main/java/sma/rhythmtapper/framework/Graphics.java index a39763a..10c8710 100644 --- a/app/src/main/java/sma/rhythmtapper/framework/Graphics.java +++ b/app/src/main/java/sma/rhythmtapper/framework/Graphics.java @@ -1,6 +1,7 @@ package sma.rhythmtapper.framework; import android.graphics.Paint; +import android.graphics.Path; /** * Created by Peter on 23.01.2017. @@ -14,6 +15,8 @@ public static enum ImageFormat { public void clearScreen(int color); + public void DrawPath(Path path); + public void drawLine(int x, int y, int x2, int y2, int color, int stroke); public void drawLine(int x, int y, int x2, int y2, int color); diff --git a/app/src/main/java/sma/rhythmtapper/framework/Impl/RTGraphics.java b/app/src/main/java/sma/rhythmtapper/framework/Impl/RTGraphics.java index b11d406..74e11da 100644 --- a/app/src/main/java/sma/rhythmtapper/framework/Impl/RTGraphics.java +++ b/app/src/main/java/sma/rhythmtapper/framework/Impl/RTGraphics.java @@ -88,6 +88,12 @@ public void clearScreen(int color) { (color & 0xff)); } + @Override + public void DrawPath(Path path) + { + canvas.drawPath(path,paint); + } + @Override public void drawLine(int x, int y, int x2, int y2, int color, int stroke) { paint.setColor(color); @@ -95,7 +101,6 @@ public void drawLine(int x, int y, int x2, int y2, int color, int stroke) { canvas.drawLine(x, y, x2, y2, paint); } - @Override public void drawLine(int x, int y, int x2, int y2, int color) { drawLine(x, y, x2, y2, color, 10); diff --git a/app/src/main/java/sma/rhythmtapper/game/NoteFile/TWxFile.java b/app/src/main/java/sma/rhythmtapper/game/NoteFile/TWxFile.java index 6a23ec1..5878b98 100644 --- a/app/src/main/java/sma/rhythmtapper/game/NoteFile/TWxFile.java +++ b/app/src/main/java/sma/rhythmtapper/game/NoteFile/TWxFile.java @@ -65,7 +65,7 @@ public static List Read(File file) throws FileNotFoundException, JSONExcep Log.v(TAG,"connect "+id+" with"+prevMap.get(id)); Ball ba = id2Ball.get(id); //formar ba.nextBall = id2Ball.get(prevMap.get(id)); //next - if(ba.isSlideNote()||ba.isLongNote()) + if((ba.isSlideNote()||ba.isLongNote()) && (ba.nextBall.isSlideNote() || ba.nextBall.isLongNote())) { ba.connector= new Tail(ba, ba.nextBall); } else{ diff --git a/app/src/main/java/sma/rhythmtapper/game/models/Connector.java b/app/src/main/java/sma/rhythmtapper/game/models/Connector.java index 23feae3..f99aafb 100644 --- a/app/src/main/java/sma/rhythmtapper/game/models/Connector.java +++ b/app/src/main/java/sma/rhythmtapper/game/models/Connector.java @@ -1,5 +1,6 @@ package sma.rhythmtapper.game.models; +import android.graphics.Color; import android.util.Log; import sma.rhythmtapper.framework.Impl.*; @@ -39,7 +40,7 @@ public void Paint(Graphics g) { UpdateGhosts(); // } - g.drawLine(ghost1x, ghost1y, ghost2x, ghost2y,ball1.color,40); + g.drawLine(ghost1x, ghost1y, ghost2x, ghost2y, Color.LTGRAY,40); /*if(ghost1y > EnvVar.HITBOX_CENTER && ghost2y EnvVar.HITBOX_CENTER && prevy EnvVar.HITBOX_CENTER && prevy EnvVar.HITBOX_CENTER && prevy EnvVar.HITBOX_CENTER && prevy EnvVar.HITBOX_CENTER && ghost2y