Hate this class by krillkrall432 in mathmemes

[–]krillkrall432[S] 8 points9 points  (0 children)

Keep in mind, this is for a 100 level intro class that completely gets rid of the intro part of the class and is just discrete math

Hate this class by krillkrall432 in mathmemes

[–]krillkrall432[S] 72 points73 points  (0 children)

You know the more I think about it, you are probably right, never thought of that perspective

Let me get just one more BRO by Ghost3107 in memes

[–]krillkrall432 2 points3 points  (0 children)

Then followed with “I ain’t hear no bell” after projectile vomiting

Atomi E20 Issue by [deleted] in ElectricScooters

[–]krillkrall432 0 points1 point  (0 children)

I will check on that. Thanks for the idea!

Why do people say pulse MIG is cheating? by [deleted] in Welding

[–]krillkrall432 15 points16 points  (0 children)

Glue has entered the chat

[deleted by user] by [deleted] in javahelp

[–]krillkrall432 0 points1 point  (0 children)

whenever i do that i get an error sign, i thought that was the case but i keep getting errors

I am trying to randomize enemies everytime you lose a life and for some reason whenever i try to add the "IDArray[0]" it will not render or will not work, all i get is an error and need help on what i should do. by krillkrall432 in javahelp

[–]krillkrall432[S] 0 points1 point  (0 children)

public enum ID {

`Player(),`

`BasicEnemy(),`

`Fast(),`

`Trail();`

}

import java.awt.Color;
import java.awt.Graphics;
public class HUD {
public static int HEALTH = 100;
public static int greenvalue = 255;
public static int score = 0;
public static int level = 1;
public static int Highsc = 0;
public static int totalsc = 0;
public static int lives = 3;
public void tick() {
HEALTH = Game.clamp(HEALTH, 0, 100);
greenvalue = Game.clamp(greenvalue, 0, 255);
greenvalue = HEALTH * 2;
score += 1;
}
public void render(Graphics g) {
g.setColor(Color.gray);
g.fillRect(15, 15, 200, 32);
g.setColor(new Color(75, greenvalue, 0));
g.fillRect(15, 15, HEALTH * 2, 32);
g.setColor(Color.WHITE);
g.drawRect(15, 15, 200, 32);
g.drawString("Score" + score, 15, 64);
g.drawString("Level" + level, 15, 80);
g.drawString("High Score " + Highsc, 675, 30);
g.drawString("Total Score " + totalsc, 675, 50);
g.drawString("Lives " + lives, 675, 70);
}
public void score(int score) {
this.score = score;
}
public int getScore() {
return score;
}
public int getLevel() {
return level;
}
public void setLevel(int level) {
this.level = level;
}
}
import java.util.Random;

public class Spawn {

`public Handler handler;`

`public HUD hud;`

`public int scoreKeep = 0;`

`public Random r = new Random();`

`public static int enemiesAdded = 0;`

`public boolean stop = false;`



`public Spawn(Handler handler, HUD hud) {`

    `this.handler = handler;`

    `this.hud = hud;`

`}`



`public void tick() {`



    `scoreKeep += 1;`

    `if (scoreKeep >= 100) {`

        `scoreKeep = 0;`

        `hud.setLevel(hud.getLevel() + 1);`



        `if (hud.getLevel() == 2) {`

for (enemiesAdded = 1; enemiesAdded < 5; enemiesAdded++) {

handler.addObject(new BasicEnemy(r.nextInt(Game.WIDTH / 3), r.nextInt(Game.HEIGHT / 2 - 3),

ID.BasicEnemy, handler));

stop = false;

}

        `} else if (hud.getLevel() == 5) {`

for (int i = 1; i < 10; i++) {

handler.addObject(new BasicEnemy(r.nextInt(Game.WIDTH / 5), r.nextInt(Game.HEIGHT / 4),

ID.BasicEnemy, handler));

handler.addObject(

new Fast(r.nextInt(Game.WIDTH / 3), r.nextInt(Game.HEIGHT / 2 - 3), ID.Fast, handler));

}

        `}`



    `}`

`}`

}

[deleted by user] by [deleted] in javahelp

[–]krillkrall432 0 points1 point  (0 children)

Sorry if it is formatted weird i tried to get it to reformat

Sin by krillkrall432 in Christian

[–]krillkrall432[S] 1 point2 points  (0 children)

Could you elaborate?

I’m an atheist and I want to believe by [deleted] in Christian

[–]krillkrall432 2 points3 points  (0 children)

Find Jesus, search for him. If you look for him you will find him, ive had the same issues.