I want to create an interactive mystery experience inspired by projects with clickable pages, hidden links, secret messages, videos, and puzzles. The idea is partly a fun challenge for a friend who often communicates with me using cipher codes—I'd like to make them solve an entire website as playful payback. I'm not asking someone to build it for me; I'm a complete beginner who has only learned some JavaScript and need guidance on where to write the code, what tools or frameworks to use, and how to turn a website into a playable game.
4 Answers
That’s a great project idea, not a silly question. Start with the basics: HTML for the page structure, CSS for the visual design, and JavaScript for interactions such as clickable clues, password checks, and revealing hidden content. You can write everything in Visual Studio Code and test it in a web browser. Build one small puzzle first, then add more as you learn.
Before coding, write down the game’s structure: what the player is trying to discover, what clues they can find, which actions unlock new pages, and how the puzzles connect. Then implement one mechanic at a time. Tutorials can help you get started, but make sure you understand the code instead of copying it blindly. If you use an AI tool for help, ask it to explain concepts and guide you through an implementation rather than simply generating the whole project.
You don’t need React to begin, and Visual Studio Code is an editor rather than a game engine. For a browser-based mystery site, a folder containing HTML, CSS, and JavaScript files is enough. Once you’re comfortable with those, you could try a JavaScript game framework such as Phaser, but it’s probably more useful for arcade-style games than for a mostly webpage-based puzzle experience.
Plan carefully how you’ll hide information. Anything sent to a browser can usually be inspected through the page source or developer tools, so secret answers and links may not stay secret from someone technically curious. That’s fine for a casual puzzle, but if you want stronger protection, keep important validation on a server instead of placing every answer directly in the front-end code.

I’m mostly confused about where to code it. Do I need React, or is Visual Studio Code enough?