Dave-ee's Dodgeball for CC!
Look! It's dodgeball!
Yes it is! And it's completely working in every way (once you get catching-the-ball down pat).
The game has support for an unlimited amount of players natively. You can add more players by adding entries into the player settings table at the top of the program.
The ball changes colour based on what team threw it, so you can know whether to dodge it or try and catch it to throw it again. The ball also gets thrown in the direction you last moved, so you can do some fancy throw-it-against-the-back-wall shot. However it still bounces 1:1 in the direction it came from so no corner shots or anything like that, sadly. Might make an 8-direction play-style sometime.
The ball's speed can be adjusted in the settings at the top, just increase the frames per second.
You can change a player's team by changing the colour of a player in the player settings.
Usage:
dodj help -- displays the help text
dodj <players> -- choose the amount of players (need to setup controls for players 3 and up)
Controls:
PLAYER 1 (default):
W, A, S and D to move around, Left Shift to pickup/throw the ball, Z to stop moving when pressing a key (change direction instead of moving in a direction).
PLAYER 2 (default):
Arrow keys to move around, O to pickup/throw the ball (or catch it..) and P to stop moving.
Things you need to know if you want to be better at this game:
- You can only catch the ball if you are facing where the ball is coming from.
- Don't hold the action button after you have caught the ball, otherwise when you release it it will instantly throw the ball. Just press it right before the ball reaches you.
Spoiler
PRE-ALPHA -> ALPHA- Completely re-coded for optimisation, gameplay and customisation
- Bug fixes (well, duh, I re-wrote the whole thing)
- Players are now 2 pixels high instead of 1
- Sprites (for players and balls)
- Support for items (apart from balls - this could potentially be an API-kinda thing)
- Support for more players (virtually? infinite. physically? depends how big your keyboard is..)
- Command line arguments ('help' and <players>)
ALPHA -> BETA
- Added a scoreboard which is drawn up the top, positions are calculated based on the number of teams
- Players' speeds can now be adjusted, allowing for some..interesting..modifications
- Support for a virtually unlimited amount of teams
- Code changes here and there
- Optimisation (mostly based on code over the different 'versions' of Beta)