Build a Scratch Card Web Game (Challenge)

# Introduction In this project, we will guide you through the process of creating a simple web-based Scratch Card game. This game allows users to scratch off a gray overlay to reveal an underlying image, which will either be a "winner" or a "try again" message. We will use HTML for the structure, CSS for styling, and JavaScript for interactivity. ## 👀 Preview <video src="https://file.labex.io/namespace/718bace8-27a3-4200-a588-dde4041ceeb9/web/project-scratch-card-game/challenge-1/assets/scratch_card.mp4" width="100%" autoplay loop muted></video> ## 🎯 Tasks In this project, you will learn to: - Set up a basic web project with HTML, CSS, and JavaScript. - Manipulate the HTML5 canvas to create interactive effects. - Use JavaScript to handle user interactions such as mouse clicks and movements. - Work with images in web development, including loading and displaying them dynamically. - Implement a simple game logic that randomly decides the outcome for the user. ## 🏆 Achievements In this project, you will achieve: - A solid understanding of the HTML5 canvas and its capabilities for web-based games and interactive applications. - Proficiency in using JavaScript to create dynamic content and respond to user inputs. - The ability to integrate various web technologies to create a complete and functional web application. - Experience in designing a simple yet engaging user interface for a web-based game. - Insight into basic game development concepts such as random outcomes and user interaction.

|60 : 00

Click the virtual machine below to start practicing