-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a07332
commit 279b537
Showing
73 changed files
with
614 additions
and
304 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file renamed
BIN
+2.12 KB
bin/Chicknight/ChicknightLeftWalk2.png → bin/MoleDerKaiser/moleDerKaiser1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed
BIN
+2.12 KB
res/Chicknight/ChicknightLeftWalk2.png → bin/MoleDerKaiser/normalMole1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package Object; | ||
|
||
import javafx.scene.canvas.GraphicsContext; | ||
import javafx.scene.shape.Rectangle; | ||
import logic.game.GameLogic; | ||
import sharedObject.RenderableHolder; | ||
|
||
public class Ball extends Projectile{ | ||
|
||
public Ball(double worldX, double worldY, double angle, GameLogic gameLogic) { | ||
super(worldX, worldY, angle, gameLogic); | ||
speed = 3; | ||
xspeed = Math.cos(angle) * speed; | ||
yspeed = Math.sin(angle) * speed; | ||
dmg = 10; | ||
solidArea = new Rectangle(0, 0, 8, 8); | ||
solidScreen = new Rectangle(screenX+solidArea.getX(),screenY+solidArea.getY(),solidArea.getWidth(),solidArea.getHeight()); | ||
RenderableHolder.shootSound.play(0.1); | ||
image = RenderableHolder.ball; | ||
} | ||
|
||
@Override | ||
public void draw(GraphicsContext gc) { | ||
// TODO Auto-generated method stub | ||
gc.drawImage(image, screenX, screenY); | ||
// drawHitbox(gc); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package Object; | ||
|
||
import javafx.scene.SnapshotParameters; | ||
import javafx.scene.canvas.GraphicsContext; | ||
import javafx.scene.image.ImageView; | ||
import javafx.scene.paint.Color; | ||
import javafx.scene.shape.Rectangle; | ||
import logic.game.GameLogic; | ||
import sharedObject.RenderableHolder; | ||
|
||
public class SwordBeam extends Projectile{ | ||
ImageView rotatedImage; | ||
SnapshotParameters params; | ||
public SwordBeam(double worldX, double worldY, double angle, GameLogic gameLogic) { | ||
super(worldX, worldY, angle, gameLogic); | ||
speed = 5; | ||
xspeed = Math.cos(angle) * speed; | ||
yspeed = Math.sin(angle) * speed; | ||
dmg = 20; | ||
image = RenderableHolder.beamRight; | ||
rotatedImage = new ImageView(image); | ||
rotatedImage.setRotate(angle*180/Math.PI); | ||
params = new SnapshotParameters(); | ||
params.setFill(Color.TRANSPARENT); | ||
if(Math.abs(xspeed)>Math.abs(yspeed)) { | ||
solidArea = new Rectangle(0, -32, 32, 128); | ||
} | ||
else { | ||
solidArea = new Rectangle(-32,0,128,32); | ||
} | ||
solidScreen = new Rectangle(screenX+solidArea.getX(),screenY+solidArea.getY(),solidArea.getWidth(),solidArea.getHeight()); | ||
RenderableHolder.shootSound.play(0.1); | ||
} | ||
|
||
@Override | ||
public void draw(GraphicsContext gc) { | ||
// TODO Auto-generated method stub | ||
gc.drawImage(rotatedImage.snapshot(params, null), screenX, screenY); | ||
|
||
// drawHitbox(gc); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.