Commit Graph

3107 Commits

Author SHA1 Message Date
Thanos paravantis
ea6219984a Add missing Spleef challenge to removed package 2016-04-09 11:06:46 +03:00
Thanos paravantis
0b780c8e99 Fix teleport delay and incorrect win placement.
Players that die during a challenge have the ability to fly
around as spectators. Although, once the challenge was ended
their fly mode was removed and they would fall for a very short
amount of time, which was noticeable. With that fix, players
now get reset once they are teleported to the spawn locations
of the next challenge. That happened because during the player
reset and spawn teleportation, the map would be generated, as a
result, causing a very small notable delay.

Moreover, win placement was fixed. In the previous version, the
third player would appear as second and the second player would
appear as the third one. The cause of this issue was that, after
the second and the third player is added to the winner list, the
last player that is remaining alive is added as first. To fix that,
I've implemented a swap method that changes the location of the
second with the third player.
2016-04-09 11:04:23 +03:00
Thanos paravantis
cc68b7087a Change wool color on Wave Crush challenge
During map generation, the wool color is now predetermined and not
random.
2016-04-03 17:15:20 +03:00
Thanos paravantis
18ff9c23f7 Modify block removal from Wave Crush challenge
The removeExtraBlocks() method was changed, in order to include all
arena blocks. The previous version did not remove all extra blocks,
as it was using the getArenaSize() method inside the for-loop, which
returns a different integer depending on the challengers.

To fix that, I've implemented the '_arenaStartSize' field to store the
starting arena size value that is used in the map generation method.
2016-04-03 16:53:14 +03:00
Thanos paravantis
114fac2655 Refactor Red Light Green Light challenge
Separated functionality into different methods in order to improve
readability and maintainability. All four abstract methods were
updated, in order to make sure they work as intended without any
second thoughts.

Moreover, a PlayerQuitEvent listener was added to remove players from
the '_cooldown' array list and a null check in the onEnd method, to
prevent any null pointer exceptions.

Also, there were some minor display changes, regarding titles and chat
messages on the moveTextAndSound() and cannotMoveTextAndSound() methods.

Lastly, the bedrock layer was removed from map generation.
2016-04-03 16:49:31 +03:00
Thanos paravantis
f454a6de81 Comment game classes and remove unnecessary checks
Added comments on game classes, except challenges
and statistics trackers.

Removed challenge validity checks from onCollide method in Anvil Dance
and Falling Blocks, since that is now handled on the Collide method
located in the main game class.
2016-04-02 22:49:56 +03:00
Thanos paravantis
12b90501e2 Refactor Wave Crush challenge
Separated functionality into different methods in order to improve
readability and maintainability. All four abstract methods were
updated, in order to make sure they work as intended without any
second thoughts.

Also, a new PlayerQuitEvent listener is added, in order to remove
players from the '_survivedWaves' hash map, which keeps track of
the waves every player survived.

Lastly, onCollide if-statement logic was reversed to reduce and
simplify the lines of code inside the method.
2016-04-02 22:10:43 +03:00
Thanos paravantis
51820faceb General bug fixes and minor changes. 2016-03-30 19:30:22 +03:00
Thanos paravantis
cd08e5581a Fix volley pig challenge, apply minor changes and bug fixes on Infestation, Reverse Tag. 2016-03-27 17:45:58 +03:00
Thanos paravantis
72994656dd Improve dragon egg handling. Implement chat silence during challenge description. 2016-03-21 22:06:49 +02:00
Thanos paravantis
644e7a08bb Bug fixes (detailed description below) and hit box improvements.
- Cancel teleport event to prevent the game from breaking.
- Block Lobbers: Fix falling block spawning and item drops.
- Color Change: Fix platform not spawning after first stage.
2016-03-20 23:26:55 +02:00
Thanos paravantis
f57bd37116 Rush push, cloud fall and treasure digger updates/refactoring. Added /mark command to reveal and correct misplaced spawn locations. 2016-03-20 17:20:40 +02:00
Thanos paravantis
8084897782 Rush Push: Update custom damage event listener. 2016-03-20 12:14:09 +02:00
Thanos paravantis
c080bc31ab Refactor rush push challenge, update win placement. 2016-03-20 11:10:16 +02:00
Thanos paravantis
1a51f51f60 Refactor color change, reverse tag and treasure digger challenge. 2016-03-19 17:36:27 +02:00
Thanos paravantis
115508cf72 Refactor onChallengeUpdate method. 2016-03-19 16:14:56 +02:00
Thanos paravantis
4c8292e7c9 Update color change and reverse tag challenge, changes and improvements and spawnpoints update. 2016-03-19 16:01:42 +02:00
Thanos paravantis
dd6d128b44 Rename files to match challenge name, change kit description, refactor color change challenge. 2016-03-18 18:36:32 +02:00
Thanos paravantis
2f96325f0c Challenge refactoring. 2016-03-12 11:16:37 +02:00
Thanos paravantis
1ee7a42b9c Challenge refactoring, modify challenge ending and chat messages, add generateGrass helper method. 2016-03-07 18:32:33 +02:00
Thanos paravantis
4e6ba4ebd1 Challenge refactoring. 2016-03-06 16:45:25 +02:00
Thanos paravantis
c2d5699aa8 Challenge refactoring, bug fixes, add additional helper methods. 2016-03-06 00:59:13 +02:00
Thanos paravantis
0f58c1378c Challenge refactoring. 2016-03-05 17:51:30 +02:00
Thanos paravantis
c30f6b0f96 Main class and challenge refactoring. 2016-03-05 17:06:07 +02:00
Thanos paravantis
51d4db5e46 Implement game settings and challenge list. Add isChallengeValid and isPlayerValid for event checks. 2016-03-04 20:01:08 +02:00
Thanos paravantis
9e09d8c477 Challenge refactoring. 2016-03-02 22:54:47 +02:00
Thanos paravantis
9a4f4dbd7c Merge branch 'master' into thanos-mineware 2016-03-02 18:47:30 +02:00
Thanos paravantis
60dfce4612 Challenge refactoring, move challenges to new package. 2016-03-02 18:45:27 +02:00
Thanos paravantis
cb8b180c2f Start challenge refactoring, implement helper methods. 2016-03-01 18:50:41 +02:00
Thanos paravantis
77871e3195 Implement challenge settings and data. 2016-03-01 17:09:43 +02:00
Thanos paravantis
6570adc4af Improve zombie on infestation challenge. 2016-02-29 22:40:09 +02:00
Thanos paravantis
dd538dedd5 Fix Lava Run challenge map generation. 2016-02-29 20:19:26 +02:00
Thanos paravantis
6a2f66f722 Challenge bug fixes and refactoring. 2016-02-29 15:07:33 +02:00
Thanos paravantis
2bc396dc17 General bug fixes and improvements, add map height preference. 2016-02-28 18:15:37 +02:00
Thanos paravantis
bcb489f13d Map support and parse locations. Minor changes and bug fixes. 2016-02-27 00:13:02 +02:00
Thanos paravantis
1e08e1a5db Update player death handling, add aggressive chicken behavior, minor changes and refactoring. 2016-02-26 18:17:03 +02:00
Shaun Bennett
923e51483c Remove fill line 2016-02-26 04:29:27 -06:00
Shaun Bennett
4472c52432 Fix bucket 2016-02-26 04:21:26 -06:00
William Burns
268536ce68 push 4 shaun 2016-02-26 08:13:28 +00:00
Thanos paravantis
0e697e279b Player death handling and chicken attack changes. 2016-02-25 23:35:38 +02:00
William Burns
e4ba5d9723 Fix colour targeting FINALLY! 2016-02-25 19:48:15 +00:00
William Burns
dead7a0850 Use a different method for targeting blocks. 2016-02-25 16:09:00 +00:00
William Burns
a97409b64a Adjust max distance for targeting. 2016-02-25 15:04:19 +00:00
William Burns
7f6517a823 Ignore barrier blocks when drawing. 2016-02-25 14:23:16 +00:00
William Burns
19b6c3d95f Make sure the blocks are in the canvas. 2016-02-24 21:37:22 +00:00
William Burns
a5060e014b Replace old paint bucket recursive filling. 2016-02-24 21:34:41 +00:00
Thanos paravantis
1dbf7581d2 Add missing game class. 2016-02-24 21:45:38 +02:00
Thanos paravantis
27daace524 Rename game type to Bawk Bawk Battles, change item display to Egg. 2016-02-24 21:43:10 +02:00
Thanos paravantis
f2d58bd55c Player death handling and chicken attack update, working version. 2016-02-24 20:13:23 +02:00
Thanos paravantis
a7fb1df539 Experimenting with player death and chicken attack. 2016-02-24 18:10:57 +02:00