@@ -16,7 +16,7 @@ public class Player extends Mob {
1616 private static Name customeName = new Name ();
1717 private Swim swim ;
1818
19- private int colour = Colours . get (- 1 , 111 , 240 , 310 ) ;
19+ private int colour , shirtCol , faceCol ;
2020 private int tickCount = 0 ;
2121 private String userName ;
2222 private boolean [] swimType ;
@@ -25,10 +25,13 @@ public class Player extends Mob {
2525 public static String guestPlayerName = customeName .setName ("Player " );
2626
2727 public Player (LevelHandler level , int x , int y , InputHandler input ,
28- String userName ) {
28+ String userName , int shirtCol , int faceCol ) {
2929 super (level , "Player" , x , y , 1 );
3030 this .input = input ;
3131 this .userName = userName ;
32+ this .faceCol = faceCol ;
33+ this .shirtCol = shirtCol ;
34+ this .colour = Colours .get (-1 , 111 , shirtCol , faceCol );
3235 }
3336
3437 public void tick () {
@@ -110,7 +113,7 @@ public void render(Screen screen) {
110113 int waterColour = 0 ;
111114 yOffset += 4 ;
112115
113- colour = Colours .get (-1 , 111 , -1 , 310 );
116+ colour = Colours .get (-1 , 111 , -1 , faceCol );
114117
115118 if (tickCount % 60 < 15 ) {
116119 waterColour = Colours .get (-1 , -1 , swimColour [0 ], -1 );
@@ -141,7 +144,7 @@ public void render(Screen screen) {
141144 screen .render ((xOffset + modifier - (modifier * flipBottom )),
142145 (yOffset + modifier ), ((xTile + 1 ) + (yTile + 1 ) * 32 ),
143146 colour , flipBottom , scale );
144- colour = Colours .get (-1 , 111 , 240 , 310 );
147+ colour = Colours .get (-1 , 111 , shirtCol , faceCol );
145148 ;
146149 }
147150
0 commit comments