Go to the issues section of the repo and find an issue you'd like to work on. Comment on the ticket you'd like to work on as to not be racing other people to code it up!
After a game the characters CPS should reset, and they shouldn't be able to spam characters which will effect their CPS before the game has actually started
For some reason, the relative path for the public directory does not work on my machine. I'll put in a PR to use an absolute path for express.static(). This should work on everyone's machine.
If there are X amount of people, let's say 15 people we're going to want to split them into separate games, as a base-line we could say 6 people per race.
On the server, there should be a tonne of codey one-liners that get chosen at random โ the chosen one is then sent to all the clients as current behaviour.
When typing it would be nice to have either underneath the letter you're currently on or to the left of it to have a blinking cursor just so it's easy to track where you currently are.
We can go a number of different ways with this one.
I just think it would be awesome if we had something that gave you a brief view of how you were doing โ a history of the previous games and potentially the characters per second you were doing,
We're going to need some way to persist player information so we can store basic data like the number of Hacktoberfest badges they have earned (The number of races won).
So I've stubbed out some code for this in the UI Player.js
drawGithubImage() { imageMode(CENTER); image(this.img, this.x, this.y, 30, 30); }
We're going to auth via github, but at the moment I've just got random images in there:
I want these images to be circles and potentially fill the player circle leaving just the edging.
So all you need to do in this is do some funky stuff with p5js to not render some pixels to make it a circle!
At the moment there is no concept of a game โ there's a winner and there's other players. When a player wins there needs to be either one of the following:
The game just resets
The ability for the player to search for a new game โ this will require multiple games happening at once
It might be a good idea to do option 1. first and then move onto option 2. later.
When multiple racers race in a single game, the icon of racers who joined last gets drawn on top of the terminal.
Possible Solution
We can fix this by showing the racer's own car on top of the screen. So on every screen, the order of cars will be different. But the racer's car will be at the top.
Now when more number of players join the game, we can simply decrease the size of their race icons, to accommodate more players.
We can also set a restricting number which restricts more than a certain number of people joining a single game.