Skip to content

Commit

Permalink
commented out some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisj42 committed May 9, 2017
1 parent 231f98c commit d0b0654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/minicraft/entity/Creeper.java
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ public void render(Screen screen) {
}
else
super.lvlcols[lvl-1] = Creeper.lvlcols[lvl-1];

//if(fuseLit) System.out.println("fuseTime%6==0: " + (fuseTime % 6 == 0));
/*if (level.dirtColor == 322) {
if (lvl == 2) col = Color.get(-1, 200, 262, 232);
Expand Down
4 changes: 2 additions & 2 deletions src/minicraft/gfx/Screen.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public class Screen {
private static java.util.Random random = new java.util.Random();

private static final int MAXDARK = 128;
private static final int MAXLIGHT = 20;
//private static final int MAXLIGHT = 20;

/// x and y offset of screen:
public int xOffset;
Expand Down Expand Up @@ -107,7 +107,7 @@ public void overlay(Screen screen2, int xa, int ya) {
if(Game.currentLevel == 4) tintFactor -= tintFactor < 10 ? tintFactor : 10;
tintFactor *= -1; // all previous operations were assumping this was a darkening factor.
tintFactor += 20;
if(tintFactor > MAXLIGHT) tintFactor = MAXLIGHT;
//if(tintFactor > MAXLIGHT) tintFactor = MAXLIGHT;
//if(random.nextInt((int)(Game.normSpeed/Game.gamespeed))==0) System.out.println("rendering dark factor " + tintFactor);

int[] oPixels = screen2.pixels; // The Integer array of pixels to overlay the screen with.
Expand Down

0 comments on commit d0b0654

Please sign in to comment.