akolgano / ft_transcendence

ft_transcendence 42 school
0 stars 0 forks source link

Tests game customisation #86

Open barbayjuliette opened 3 days ago

barbayjuliette commented 3 days ago

Test in branch game-custom or in master once it is merged. Modal end of game: if you lose against AI, it is a different modal. Game customizations for simple games, AI, and tournaments. Game customizations:

Power-ups: You can slow down the ball for 3 seconds. Key A and Key O. (let me know if those keys are easy to use for players, cause my keyboard is different) 3 power-ups each. You can see how many are left at the bottom of the game board. Only one power-up can be activated at the time If someone scores, the power-up stops. When testing you can see when the speed of the ball in the console. AI also uses its power-ups. Check if the frequency of using power-ups is okay (not too fast, etc). AI uses power-ups only once the ball reaches a certain speed.

Paddle size: You can choose between 3 sizes of paddle. Default is medium

Practice mode: The ball doesn't increase speed after every paddle hit. Constant slow speed.

Default game

All the options can be combined, except the default game.

Data is stored in localStorage. So if you refresh during the game, you do not lose the game session, but you lose the score. I will add the score to localStorage, but not the ball position. localStorage cleared only after the game / logout

Try navigating once you have already started a game session. Back and forward buttons. Links. Check tooltips, with translations.

Test many games, AI, and tournaments with different combinations of game customizations. Everything in both browsers.

Read the description in the subject and let me know what you think of the game customizations and if you think that's okay. At first, I was thinking of doing an attack or option to choose how many points to win, but I think what we have might be enough

I still need to do:

Translations for the game I will redo the design of the registrations, to have more detailed explanations on how to play. Up and Down arrows: change to something else

chinwenkai commented 3 days ago

image there are times the paddle does not show when choosing small. But it is not repeatable. most of the time, it shows.

chinwenkai commented 3 days ago

Whenever I select and deselect "default game", and choose another options and play. The game will not have paddle visible

chinwenkai commented 3 days ago

Screencast from 25-10-2024 13:59:08.webm

barbayjuliette commented 3 days ago

image there are times the paddle does not show when choosing small. But it is not repeatable. most of the time, it shows.

Was this also when you chose default, then deselected default? Or a separate issue? If yes, only with AI?

chinwenkai commented 3 days ago

Whenever I select and deselect default, and choose any other option, IA or power up or practice. It will have the no paddle issue when I press Play

barbayjuliette commented 3 days ago

@chinwenkai I just fixed it, let me know if it is okay now; Check if you can find any other case where the paddle is not showing.

chinwenkai commented 2 days ago

Whenever I close and open new window to login. The play button will not work on the starting play page. But it will work when I go to another tab such as dashboard or friends, and go back to play.

chinwenkai commented 2 days ago

The paddle issue has been resolved :)

barbayjuliette commented 2 days ago

Whenever I close and open new window to login. The play button will not work on the starting play page. But it will work when I go to another tab such as dashboard or friends, and go back to play.

This should be fixed. Now the default option should grey out other field when navigating the first time / to home and play button should work

chinwenkai commented 2 days ago

Ok. it is fixed

chinwenkai commented 2 days ago

I think the customisation is sufficient. The power ups, paddle size and practice speed maintains and works ok.