Skip to content

Commit

Permalink
draw Bosses's name
Browse files Browse the repository at this point in the history
  • Loading branch information
PacharaphonP committed May 20, 2023
1 parent 8a57d61 commit a1269e6
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 2 deletions.
Binary file modified bin/logic/entity/EyeOfQwifot.class
Binary file not shown.
Binary file modified bin/logic/entity/LlaristicKnight.class
Binary file not shown.
Binary file modified bin/logic/entity/Mole.class
Binary file not shown.
Binary file modified bin/logic/entity/Player.class
Binary file not shown.
2 changes: 2 additions & 0 deletions src/logic/entity/EyeOfQwifot.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import logic.game.GameLogic;
import sharedObject.RenderableHolder;

Expand Down Expand Up @@ -36,6 +37,7 @@ public void draw(GraphicsContext gc) {
}
gc.drawImage(image,screenX,screenY);
gc.setFill(Color.BLACK);
gc.setFont(new Font(15));
gc.fillText("Eye Of Qwifot", screenX+70, screenY-10);
// TODO Auto-generated method stub
// drawHitbox(gc);
Expand Down
2 changes: 2 additions & 0 deletions src/logic/entity/LlaristicKnight.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import logic.game.GameLogic;
import sharedObject.RenderableHolder;

Expand Down Expand Up @@ -61,6 +62,7 @@ public void draw(GraphicsContext gc) {

gc.drawImage(image, screenX, screenY);
gc.setFill(Color.BLACK);
gc.setFont(new Font(15));
gc.fillText("LlaristicKnight", screenX, screenY);
// drawHitbox(gc);
// drawAttackBlock(gc);
Expand Down
2 changes: 2 additions & 0 deletions src/logic/entity/Mole.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import javafx.scene.image.Image;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.scene.text.Font;
import logic.game.GameLogic;
import sharedObject.RenderableHolder;

Expand Down Expand Up @@ -42,6 +43,7 @@ public void draw(GraphicsContext gc) {
if(currentState=="attacking") {
if(rank=="DerKaiser") {
gc.setFill(Color.BLACK);
gc.setFont(new Font(15));
gc.fillText("MoleDerKaiser", screenX, screenY);
}
if( coolDown<20)
Expand Down
4 changes: 2 additions & 2 deletions src/logic/entity/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ public void draw(GraphicsContext gc) {
drawUI(gc);

// Debugging
drawHitbox(gc);
drawAttackBlock(gc);
// drawHitbox(gc);
// drawAttackBlock(gc);
}

public void drawHitbox(GraphicsContext gc) {
Expand Down

0 comments on commit a1269e6

Please sign in to comment.