Skip to content

Commit 09648ac

Browse files
committed
Projectile Colour and accuracy change
1 parent c680658 commit 09648ac

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ sourceSets.main.resources.srcDirs 'res'
1010
dependencies{
1111
compile 'org.apache.commons:commons-lang3:3.4'
1212
compile 'javazoom:jlayer:1.0.1'
13-
compile 'junit:junit:4.12'
13+
testCompile 'junit:junit:4.12'
1414
compile files('res/jars/JSplashScreen.jar')
1515
}
1616

src/com/redomar/game/Game.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ public void render() {
478478
g.drawString(
479479
"Welcome "
480480
+ WordUtils.capitalizeFully(player
481-
.getSantizedUsername()), 3, getHeight() - 17);
481+
.getSanitisedUsername()), 3, getHeight() - 17);
482482
g.setColor(Color.ORANGE);
483483

484484
if (context.getLocale().getCountry().equals("BE")

src/com/redomar/game/InputHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private void quitGame() {
130130
e.printStackTrace();
131131
}
132132
Game.getLevel().removeEntity(
133-
Game.getPlayer().getSantizedUsername());
133+
Game.getPlayer().getSanitisedUsername());
134134
Game.setRunning(false);
135135
Game.getFrame().dispose();
136136
System.exit(1);

src/com/redomar/game/entities/Player.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public void setUsername(String name) {
213213
this.userName = name;
214214
}
215215

216-
public String getSantizedUsername() {
216+
public String getSanitisedUsername() {
217217
if (this.getUsername() == null || this.userName.isEmpty()) {
218218
setUsername(guestPlayerName);
219219
return guestPlayerName;

src/com/redomar/game/entities/projectiles/Projectile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public Projectile(LevelHandler level, int x, int y, double dir) {
2020
super(level);
2121
xOrigin = x;
2222
yOrigin = y;
23-
angle = dir;
23+
angle = dir + (Math.random() * (dir + 0.2));
2424
this.x = x;
2525
this.y = y;
2626
}

src/com/redomar/game/entities/projectiles/Small.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected void move(){
3333
}
3434

3535
public void render(Screen screen) {
36-
screen.render((int)x,(int)y, 8 * 32, Colours.get(-1, 222, 333, 555), 0x00, 1);
36+
screen.render((int)x,(int)y, 8 * 32, Colours.get(-1, 522, 540, 555), 0x00, 1);
3737
}
3838

3939
}

src/com/redomar/game/objects/Items.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ public enum Items {
44
Stick,
55
Torch,
66
Sword,
7-
Apple;
7+
Apple
88
}

0 commit comments

Comments
 (0)