Word Typing Game

Role Name GitHub
🧭 Lead Developer Torin Wolff GitHub

The Word Typing Game is designed to improve typing skills and hand-eye coordination. Players type words that appear on the screen as quickly and accurately as possible and try to achieve the fastest WPM with the highest accuracy. Your assignment is to change the game by adding a personal touch to the game.

This will give you practice with:


    mindmap
  root((Word Typing Game))
    Features
        Typing Speed
            WPM Calculation
        Accuracy
            Mistake Tracking
    Game Modes
        Short Strings
        Medium Strings
        Long Strings
    User Interaction
        Options Menu
            Select String Length
        Typing Input
            Real-Time Feedback
    Canvas
        Text Rendering
            Prompt Text
            User Input
        Wrapping Logic
            Multi-Line Support
    JavaScript
        Functions
            drawText
            drawUserText
            wrapText
            updateStats
            finishGame
            startGame
        Event Listeners
            Keydown for Typing
            Click for Options Menu
    Styling
        CSS
            Centered Canvas
            Styled Buttons
            Dynamic Menu Positioning

Canvas Element

The <canvas> element is a powerful HTML feature that allows you to draw graphics, animations, and other visual elements directly on a web page. In the Word Typing Game, the <canvas> is used to display the text prompt and user input dynamically, providing real-time feedback to the player.

Key Features of <canvas>:


Your Job


Steps to Add Your Feature

  1. Review the existing code to understand how the <canvas> is set up and how text is rendered.
  2. Plan your enhancements and decide how you want to implement them.
  3. Write the necessary JavaScript functions to add your features.
  4. Test your changes to ensure they work as expected and enhance the gameplay experience.
  5. Make a final review and note your changes and improvements.

What to Turn In/Show