Do the flashy thing
This commit is contained in:
		@ -54,7 +54,13 @@ public class Ghost extends MovableEntity {
 | 
			
		||||
        if (caught && !returned) {
 | 
			
		||||
            return null;
 | 
			
		||||
        } else if (state.frightTimer > 0 && !returned) {
 | 
			
		||||
            return sprite[0][counter % 2];
 | 
			
		||||
            if (state.frightTimer > 2) {
 | 
			
		||||
                // Render the blue scared ghost
 | 
			
		||||
                return sprite[0][counter % 2];
 | 
			
		||||
            } else {
 | 
			
		||||
                // Render the flashing white ghost
 | 
			
		||||
                return sprite[0][(int) (state.frightTimer * 5) % 2 == 0? 2 : 0 + counter % 2];
 | 
			
		||||
            }
 | 
			
		||||
        } else {
 | 
			
		||||
            return sprite[2 + (counter % 2)][spriteIndex];
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user