diff --git a/src/sig/JavaProjectTemplate.java b/src/sig/JavaProjectTemplate.java index 6525e9e..6d76c1d 100644 --- a/src/sig/JavaProjectTemplate.java +++ b/src/sig/JavaProjectTemplate.java @@ -2,16 +2,12 @@ package sig; import sig.engine.AnimatedSprite; import sig.engine.Color; -import sig.engine.Font; import sig.engine.Key; -import sig.engine.Mouse; import sig.engine.Panel; -import sig.engine.Point; import sig.engine.Sprite; -import sig.engine.Transform; -import sig.engine.PolygonStructure; import java.awt.event.KeyEvent; +import java.util.ArrayList; import java.util.List; class Player{ @@ -20,6 +16,23 @@ class Player{ double animationFrame=0; double animationSpd=2; //Animation Speed will be 2 frames per second + int TAIL_SPACING=32; + + List tail = new ArrayList(); + List path = new ArrayList(); +} + +class Tail{ + double x,y; + Tail(List tailTrail,int TAIL_SPACING){ + for (int i=0;i(600d,400d), - new Point(600d,550d), - new Point(750d,550d), - new Point(750d,0d) - ), - List.of( - new Point(0d,0d), - new Point(0d,1d), - new Point(1d,1d), - new Point(1d,0d) - ), - List.of( - new Color(0,0,0,255), - Color.WHITE, - Color.RED, - Color.WHITE - ), bookSpr, PolygonStructure.FAN); + for (int i=0;i