@@ -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 () {
@@ -104,7 +107,7 @@ public void render(Screen screen) {
104107 int waterColour = 0 ;
105108 yOffset += 4 ;
106109
107- colour = Colours .get (-1 , 111 , -1 , 310 );
110+ colour = Colours .get (-1 , 111 , -1 , faceCol );
108111
109112 if (tickCount % 60 < 15 ) {
110113 waterColour = Colours .get (-1 , -1 , swimColour [0 ], -1 );
@@ -135,7 +138,7 @@ public void render(Screen screen) {
135138 screen .render ((xOffset + modifier - (modifier * flipBottom )),
136139 (yOffset + modifier ), ((xTile + 1 ) + (yTile + 1 ) * 32 ),
137140 colour , flipBottom , scale );
138- colour = Colours .get (-1 , 111 , 240 , 310 );
141+ colour = Colours .get (-1 , 111 , shirtCol , faceCol );
139142 ;
140143 }
141144
0 commit comments