Skip to content

Pokémon Browser Game: Introduction

In this Guided Build, you will create a small Pokémon-style game that runs in a web browser. You will build the product in stages and connect each stage to the relevant Level 2 material.

The finished product will use HTML, CSS, and JavaScript. It will not require a framework, backend, database, or content management system (CMS).

What you will practice

  • Combine HTML, CSS, and JavaScript in one interactive browser project.
  • Connect user actions to application state and visible interface updates.
  • Create a layout that works at narrow and wide viewport sizes.
  • Use purposeful animation while preserving an equivalent reduced-motion experience.
  • Test the finished product and apply relevant quality and technical SEO practices.

The final website will contain three connected pages:

  • A landing page that introduces the game and links to the other pages.
  • A game page where the player chooses a trainer and starter Pokémon, explores a small map, meets wild Pokémon, and uses a simple battle system.
  • A Pokédex page that provides a static reference for the Pokémon used in the game.

The game page will keep track of the current player, map position, active encounter, battle status, and caught Pokémon. When the player takes an action, JavaScript will update the application state and render the matching result in the page.

The main play loop will follow this sequence:

  1. Enter a fictional trainer name and choose a starter Pokémon.
  2. Move through the map with visible controls.
  3. Enter tall grass and possibly meet a wild Pokémon.
  4. Attack, try to catch the Pokémon, or leave the encounter.
  5. Return to the map and review the caught-Pokémon collection.

The next placeholder is reserved for a short GIF-style preview. When the asset is added, use a format with pause and replay controls rather than an autoplaying GIF.

This is the main technical area of the project. You will use JavaScript, DOM events, and application state to connect player actions to visible results.

You do not need JavaScript for the first landing-page draft. Before the first game-behavior stage, complete Write JavaScript for a web page. Later stages will refer to the DOM events and interface state lessons when those concepts become necessary.

You will adapt the same interface to narrow and wide viewports. You will also add motion that communicates a state change and provide an equivalent result when the user prefers reduced motion.

Use Build responsive components and Create web animations for this part of the build.

You will use selected parts of this topic to plan quality checks, test interaction paths, and improve the technical SEO of the three pages. The required build will not need a public analytics account or real visitor tracking.

Begin with Plan web quality. Later stages will link directly to the testing and technical SEO sections that support the active checkpoint.

This Guided Build uses source files and browser JavaScript. It does not include CMS development.

If you want to practice themes and extended CMS functionality, use the CMS development material instead. You can complete that material separately from this browser-game project.

The build will be split into smaller articles. Each article will:

  1. Start from the working state produced by the previous article.
  2. Introduce one meaningful change in the product.
  3. Link to the Module 2 material needed for that change.
  4. Guide you through the implementation in small stages.
  5. End with a visible check and a stable stopping point.

You do not need to hold the whole project in mind at once. Work with one active article and one active checkpoint.

Starting point

Before you start

  • You can create and connect HTML, CSS, and JavaScript files from the Level 1 material.
  • You have VS Code, a current browser with developer tools, and access to the Level 2 material.
  • You have reviewed the final-product description and the five-step play loop on this page.
Current state
You know what the final game will do, but you have not created the project files yet.
First action
Continue to the first landing-page draft and use its Level 1 links to refresh the HTML, CSS, responsive-layout, validation, and Git skills you need.
First checkpoint
You can describe the three pages, the five-step play loop, and why the first implementation article uses only Level 1 knowledge.
Help trigger
Ask your teacher for a starting-point check if one of the Level 1 prerequisites is unfamiliar or you cannot find the linked course material.

You are ready to continue when you can explain what the player will do and which page will contain each part of the product. The next article will create the project structure and the first working version of the website.