{"id":18887006,"url":"https://github.com/lostjared/remember.words.javascript","last_synced_at":"2025-06-14T19:35:48.989Z","repository":{"id":110402468,"uuid":"537055499","full_name":"lostjared/Remember.Words.JavaScript","owner":"lostjared","description":"Simple game to help improve word recall and memory.","archived":false,"fork":false,"pushed_at":"2024-05-25T14:51:59.000Z","size":23,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-31T05:18:16.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://lostsidedead.biz/remember/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostjared.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-15T14:06:14.000Z","updated_at":"2024-05-25T14:52:02.000Z","dependencies_parsed_at":"2023-03-10T15:15:16.502Z","dependency_job_id":null,"html_url":"https://github.com/lostjared/Remember.Words.JavaScript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FRemember.Words.JavaScript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FRemember.Words.JavaScript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FRemember.Words.JavaScript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2FRemember.Words.JavaScript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostjared","download_url":"https://codeload.github.com/lostjared/Remember.Words.JavaScript/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859563,"owners_count":19708863,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T07:33:14.311Z","updated_at":"2025-02-20T15:12:20.791Z","avatar_url":"https://github.com/lostjared.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Word Recall Game\n\nThis is a simple word recall game implemented in JavaScript. The \nobjective is \nto correctly type the displayed words within a limited time. The game will display a word, and the player has to type it correctly to move to the next word. If the player makes a mistake, the game is over.\n\n## Features\n\n- Randomly shuffles words for each game session\n- Displays a message when the words are correctly typed or when the game is over\n- Simple and intuitive keyboard controls\n\n## How to Play\n\n1. Open the game in your browser.\n2. Press `Space` to start the game. The words are displayed\n3. Press `Enter` to start the countdown.\n4. Type the displayed words and press `Enter` to submit.\n5. If you type the word correctly, you can continue to the next words.\n6. If you type the words incorrectly, the game is over.\n7. Press `Enter` to start a new game after game over.\n\n## Controls\n\n- `Space`: Start the game\n- `Enter`: Start the countdown / Submit typed words / Start a new game after game over\n- `Backspace`: Delete the last character while typing\n\n## Code Overview\n\n### Main Components\n\n- **Words Class**: Handles the word list, shuffling, and providing the next word.\n- **Game Class**: Manages the game state, handles user input, and renders the game on the canvas.\n\n### Key Methods\n\n- `Words.shuffle()`: Randomly shuffles the word list.\n- `Words.next()`: Returns the next word in the list.\n- `Game.newGame()`: Initializes a new game session.\n- `Game.init()`: Sets up event listeners and starts the game loop.\n- `Game.handleEvent(e)`: Handles keyboard events.\n- `Game.addWord()`: Adds a new word to the current word text.\n- `Game.checkInput()`: Checks if the typed input matches the displayed word.\n- `Game.wrapText(ctx, text, x, y, maxWidth, lineHeight)`: Wraps text within a specified width for display on the canvas.\n- `Game.draw()`: Renders the game elements on the canvas.\n- `Game.loop()`: The game loop that keeps the game running.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fremember.words.javascript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostjared%2Fremember.words.javascript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fremember.words.javascript/lists"}