-
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.
Added more weapons, on hit you'll loose weapons, decreased droprates,
changed raw of drops, changed the way ammo works, changed shoot rates of player, changed drop rate of special monsters
- Loading branch information
1 parent
1cd8ea1
commit f096db5
Showing
12 changed files
with
312 additions
and
18 deletions.
There are no files selected for viewing
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,38 @@ | ||
package me.game.pack; | ||
|
||
|
||
public class DualsWeapon extends PlayerWeapon{ | ||
|
||
double bulletW = 3.0, | ||
bulletH = 3.0; | ||
|
||
public DualsWeapon(Player Besitzer, int damage, int delay, int bulletSpeed) { | ||
super(Besitzer, 25, 14, 4); | ||
typ = WaffenTyp.DUALS; | ||
} | ||
|
||
public DualsWeapon(Player Besitzer, int ammo) { | ||
super(Besitzer, 25, 14, 4); | ||
typ = WaffenTyp.DUALS; | ||
this.ammo = ammo; | ||
} | ||
|
||
@Override | ||
public void shoot(double playerX, double playerY) { | ||
if(ammo > 0) { | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
ammo--; | ||
kugeln.add(new PlayerBullet(this, playerX-6, playerY, bulletH+4, bulletW+4, bulletSpeed, damage+10, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX+6, playerY, bulletH+4, bulletW+4, bulletSpeed, damage+10, 0)); | ||
} | ||
}else{ | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
kugeln.add(new PlayerBullet(this, playerX-6, playerY, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX+6, playerY, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
} | ||
} | ||
} | ||
|
||
} |
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,42 @@ | ||
package me.game.pack; | ||
|
||
|
||
public class FiveWeapon extends PlayerWeapon{ | ||
double bulletW = 3.0, | ||
bulletH = 3.0; | ||
|
||
public FiveWeapon(Player Besitzer, int damage, int delay, int bulletSpeed) { | ||
super(Besitzer, 35, 20, 7); | ||
typ = WaffenTyp.FIVE; | ||
} | ||
|
||
public FiveWeapon(Player Besitzer, int ammo) { | ||
super(Besitzer, 35, 20, 7); | ||
typ = WaffenTyp.FIVE; | ||
this.ammo = ammo; | ||
} | ||
|
||
@Override | ||
public void shoot(double playerX, double playerY) { | ||
if(ammo > 0) { | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
ammo--; | ||
kugeln.add(new PlayerBullet(this, playerX+2, playerY, bulletH+4, bulletW+4, bulletSpeed, damage+15, 16)); | ||
kugeln.add(new PlayerBullet(this, playerX+1, playerY, bulletH+4, bulletW+4, bulletSpeed, damage+15, 10)); | ||
kugeln.add(new PlayerBullet(this, playerX, playerY, bulletH+4, bulletW+4, bulletSpeed, damage+15, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX+1, playerY, bulletH+4, bulletW+4, bulletSpeed, damage+15, -10)); | ||
kugeln.add(new PlayerBullet(this, playerX+2, playerY, bulletH+4, bulletW+4, bulletSpeed, damage+15, -16)); | ||
} | ||
}else{ | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
kugeln.add(new PlayerBullet(this, playerX+2, playerY, bulletH, bulletW, bulletSpeed, damage, 16)); | ||
kugeln.add(new PlayerBullet(this, playerX+1, playerY, bulletH, bulletW, bulletSpeed, damage, 10)); | ||
kugeln.add(new PlayerBullet(this, playerX, playerY, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX-1, playerY, bulletH, bulletW, bulletSpeed, damage, -10)); | ||
kugeln.add(new PlayerBullet(this, playerX-2, playerY, bulletH, bulletW, bulletSpeed, damage, -16)); | ||
} | ||
} | ||
} | ||
} |
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,46 @@ | ||
package me.game.pack; | ||
|
||
|
||
public class MaxWeapon extends PlayerWeapon{ | ||
double bulletW = 3.0, | ||
bulletH = 3.0; | ||
|
||
public MaxWeapon(Player Besitzer, int damage, int delay, int bulletSpeed) { | ||
super(Besitzer, 60, 25, 9); | ||
typ = WaffenTyp.MAX; | ||
} | ||
|
||
public MaxWeapon(Player Besitzer, int ammo) { | ||
super(Besitzer, 60, 25, 9); | ||
typ = WaffenTyp.MAX; | ||
this.ammo = ammo; | ||
} | ||
|
||
@Override | ||
public void shoot(double playerX, double playerY) { | ||
if(ammo > 0) { | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
ammo--; | ||
kugeln.add(new PlayerBullet(this, playerX+12, playerY+6, bulletH+3, bulletW+3, bulletSpeed, damage+15, 40)); | ||
kugeln.add(new PlayerBullet(this, playerX+8, playerY+4, bulletH+3, bulletW+3, bulletSpeed, damage+15, 15)); | ||
kugeln.add(new PlayerBullet(this, playerX+4, playerY+2, bulletH+3, bulletW+3, bulletSpeed, damage+15, 10)); | ||
kugeln.add(new PlayerBullet(this, playerX, playerY, bulletH+3, bulletW+3, bulletSpeed, damage+15, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX-4, playerY+2, bulletH+3, bulletW+3, bulletSpeed, damage+15, -10)); | ||
kugeln.add(new PlayerBullet(this, playerX-8, playerY+4, bulletH+3, bulletW+3, bulletSpeed, damage+15, -15)); | ||
kugeln.add(new PlayerBullet(this, playerX-12, playerY+6, bulletH+3, bulletW+3, bulletSpeed, damage+15, -40)); | ||
} | ||
}else{ | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
kugeln.add(new PlayerBullet(this, playerX+12, playerY+6, bulletH, bulletW, bulletSpeed, damage, 40)); | ||
kugeln.add(new PlayerBullet(this, playerX+8, playerY+4, bulletH, bulletW, bulletSpeed, damage, 15)); | ||
kugeln.add(new PlayerBullet(this, playerX+4, playerY+2, bulletH, bulletW, bulletSpeed, damage, 10)); | ||
kugeln.add(new PlayerBullet(this, playerX, playerY, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX-4, playerY+2, bulletH, bulletW, bulletSpeed, damage, -10)); | ||
kugeln.add(new PlayerBullet(this, playerX-8, playerY+4, bulletH, bulletW, bulletSpeed, damage, -15)); | ||
kugeln.add(new PlayerBullet(this, playerX-12, playerY+6, bulletH, bulletW, bulletSpeed, damage, -40)); | ||
} | ||
} | ||
} | ||
} |
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
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 me.game.pack; | ||
|
||
|
||
public class QuadWeapon extends PlayerWeapon{ | ||
|
||
double bulletW = 3.0, | ||
bulletH = 3.0; | ||
|
||
public QuadWeapon(Player Besitzer, int damage, int delay, int bulletSpeed) { | ||
super(Besitzer, 30, 18, 6); | ||
typ = WaffenTyp.QUAD; | ||
} | ||
|
||
public QuadWeapon(Player Besitzer, int ammo) { | ||
super(Besitzer, 30, 18, 6); | ||
typ = WaffenTyp.QUAD; | ||
this.ammo = ammo; | ||
} | ||
|
||
@Override | ||
public void shoot(double playerX, double playerY) { | ||
if(ammo > 0) { | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
ammo--; | ||
kugeln.add(new PlayerBullet(this, playerX-12, playerY, bulletH+3, bulletW+3, bulletSpeed, damage+10, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX+12, playerY, bulletH+3, bulletW+3, bulletSpeed, damage+10, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX-7, playerY-6, bulletH+3, bulletW+3, bulletSpeed, damage+10, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX+7, playerY-6, bulletH+3, bulletW+3, bulletSpeed, damage+10, 0)); | ||
} | ||
} | ||
else{ | ||
if(delay <= 0){ | ||
delay = INIT_DELAY; | ||
kugeln.add(new PlayerBullet(this, playerX-12, playerY, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX+12, playerY, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX-7, playerY-6, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
kugeln.add(new PlayerBullet(this, playerX+7, playerY-6, bulletH, bulletW, bulletSpeed, damage, 0)); | ||
} | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.