- Notifications: - Valeur par défaut pour l'activation des notifications mise à 'false'. - L'utilisateur doit maintenant activer explicitement les notifications via les paramètres. - Son: - Ajout de la structure pour les effets sonores via SoundPool. - Création du dossier 'res/raw' (si nécessaire) pour les fichiers audio (placeholders: move, merge, win, game_over). - Initialisation de SoundPool et chargement des sons dans MainActivity.onCreate. - Ajout méthode playSound() pour jouer les effets (vérifie si chargé et activé). - Déclenchement des sons 'move' et 'merge' dans handleSwipe. - Déclenchement des sons 'win' et 'game_over' à l'affichage des dialogues correspondants. - Activation du switch 'Son' dans les paramètres, sauvegarde/chargement de la préférence 'sound_enabled'. - Libération de SoundPool dans MainActivity.onDestroy.
96 lines
6.7 KiB
XML
96 lines
6.7 KiB
XML
<resources>
|
|
<string name="app_name">Best 2048</string>
|
|
<string name="name_2048">2048</string>
|
|
<string name="score">Score :</string>
|
|
<string name="score_placeholder">Score :\n%d</string>
|
|
<string name="high_score_placeholder">High Score :\n%d</string>
|
|
<string name="high_score">High Score :</string>
|
|
<string name="restart">Restart</string>
|
|
<string name="stats">Stats</string>
|
|
<string name="menu">Menu</string>
|
|
<string name="multiplayer">Multiplayer</string>
|
|
<string name="restart_confirm_title">Restart ?</string>
|
|
<string name="restart_confirm_message">Are you sure you want to restart the game ?</string>
|
|
<string name="cancel">Cancel</string>
|
|
<string name="confirm">Confirm</string>
|
|
<string name="high_score_stats">High Score: %d</string>
|
|
<string name="total_games_played">Total Games Played: %d</string>
|
|
<string name="total_games_started">Total Games Started: %d</string>
|
|
<string name="win_percentage">Win Percentage: %s</string>
|
|
<string name="total_play_time">Total Play Time: %s</string>
|
|
<string name="total_moves">Total Moves: %d</string>
|
|
<string name="current_moves">Current Moves: %d</string>
|
|
<string name="current_game_time">Current Game Time: %s</string>
|
|
<string name="merges_this_game_label">Merges: %d</string>
|
|
<string name="average_time_per_game">Average Game Time: %s</string>
|
|
<string name="best_winning_time">Best Winning Time: %s</string>
|
|
<string name="worst_winning_time">Worst Winning Time: %s</string>
|
|
<string name="total_merges">Total Merges: %d</string>
|
|
<string name="highest_tile">Highest Tile: %d</string>
|
|
<string name="number_of_time_objective_reached">Number of time objective reached: %d</string>
|
|
<string name="perfect_games">Perfect game : %d</string>
|
|
<string name="multiplayer_games_won">Multiplayer game won : %d</string>
|
|
<string name="multiplayer_games_played">Multiplayer game played : %d</string>
|
|
<string name="multiplayer_win_rate">Multiplayer win rate : %s</string>
|
|
<string name="multiplayer_best_winning_streak">Best winning streak : %d</string>
|
|
<string name="multiplayer_average_score">Multiplayer Average Score: %d</string>
|
|
<string name="average_time_per_game_label">Average time per game: %s</string>
|
|
<string name="total_multiplayer_losses">Total Multiplayer losses: %d</string>
|
|
<string name="multiplayer_high_score">Multiplayer High Score: %d</string>
|
|
<string name="stats_button_label">Stats</string>
|
|
<string name="stats_title">Statistics</string>
|
|
<string name="general_section">General</string>
|
|
<string name="current_game_section">Current Game</string>
|
|
<string name="single_player_section">Single Player</string>
|
|
<string name="multiplayer_section">Multiplayer</string>
|
|
<string name="back_button_label">Back</string>
|
|
<string name="you_won_title">You won!</string>
|
|
<string name="you_won_message">Congratulations, you\'ve reached 2048!</string>
|
|
<string name="keep_playing">Continue</string>
|
|
<string name="new_game">New Part</string>
|
|
<string name="game_over_title">Game over!</string>
|
|
<string name="game_over_message">No move possible.\nFinal score: %d</string>
|
|
<string name="quit">To leave</string>
|
|
<string name="menu_title">Main Menu</string>
|
|
<string name="menu_option_how_to_play">How to Play</string>
|
|
<string name="menu_option_settings">Settings</string>
|
|
<string name="menu_option_about">About</string>
|
|
<string name="menu_option_return">Back</string>
|
|
<string name="how_to_play_title">How to Play</string>
|
|
<string name="how_to_play_instructions">Swipe the screen (Up, Down, Left, Right) to move all the tiles.\n\nWhen two tiles with the same number touch, they merge into one!\n\nReach the 2048 tile to win.\n\nThe game is over if the board is full and no moves are possible.</string>
|
|
<string name="about_title">About Best 2048</string>
|
|
<string name="about_message">Version: 1.0 (University Project)\nDeveloped by: La Legion de Muyue\n(Leader: Muyue, Members: 2 others)\n\nBased on the popular game 2048.</string>
|
|
<string name="about_website_text">Website : legion-muyue.fr</string> <string name="about_website_url">https://legion-muyue.fr</string>
|
|
<string name="ok">OK</string>
|
|
<string name="settings_title">Settings</string>
|
|
<string name="settings_sound_label">Sound</string>
|
|
<string name="settings_notifications_label">Notifications</string>
|
|
<string name="settings_permissions_button">Manage Permissions</string>
|
|
<string name="settings_share_stats_button">Share my Statistics</string>
|
|
<string name="settings_reset_stats_button">Reset Statistics</string>
|
|
<string name="settings_quit_app_button">Quit Application</string>
|
|
<string name="settings_close_button">Close</string>
|
|
<string name="reset_stats_confirm_title">Reset Stats?</string>
|
|
<string name="reset_stats_confirm_message">Are you sure you want to erase all your saved statistics? This action is irreversible.</string>
|
|
<string name="share_stats_title">Share my stats via…</string>
|
|
<string name="share_stats_subject">My 2048 Statistics</string>
|
|
<string name="share_stats_body">Here are my stats on Best 2048:\n- Best Score: %d\n- Highest Tile: %d\n- Games Won: %d / %d\n- Total Time: %s\n- Total Moves: %d</string>
|
|
<string name="stats_reset_confirmation">Statistics reset.</string>
|
|
<string name="notification_channel_name">Game Updates</string>
|
|
<string name="notification_channel_description">Notifications related to the 2048 game</string>
|
|
<string name="notification_title_achievement">Congratulations!</string>
|
|
<string name="notification_text_achievement">You reached the %d tile!</string>
|
|
<string name="notification_title_highscore">New Challenge!</string>
|
|
<string name="notification_text_highscore">Your best score is %d. Can you do better?</string>
|
|
<string name="notification_title_inactivity">We miss you!</string>
|
|
<string name="notification_text_inactivity">How about a quick game of 2048 to relax?</string>
|
|
<string name="notifications_permission_required_title">Permission Required</string>
|
|
<string name="notifications_permission_required_message">To receive notifications (reminders, achievements), please allow the application to send notifications in the settings.</string>
|
|
<string name="go_to_settings">Go to Settings</string>
|
|
<string name="notifications_enabled">Notifications enabled.</string>
|
|
<string name="notifications_disabled">Notifications disabled.</string>
|
|
<string name="settings_test_notif_highscore">Test High Score Notif</string>
|
|
<string name="settings_test_notif_inactivity">Test Inactivity Notif</string>
|
|
<string name="sound_enabled">Sound effects enabled.</string>
|
|
<string name="sound_disabled">Sound effects disabled.</string>
|
|
</resources> |