Skip to content

First Person Room

You'll build a 3D room with a first-person controller, a door that needs a key, and lighting you placed on purpose, then export it for someone to walk through.

About

Everything before this badge is flat. 3D adds a camera you have to manage, meshes instead of sprites, lights instead of a fixed palette, and collision in one more axis. Godot and Unity both ship a 3D starter, and free kits from Kenney or Quaternius cover walls, props and a door. Keep the room small, because one good room with a locked door teaches more than an empty field. Add a mouse sensitivity slider early, since a camera that moves wrong makes people queasy in seconds.

At a glance

Per requirement
25 XP
Completion bonus
150 XP
Requirements
6
Takes
One weekend
Skill level
Intermediate (months of practice)
Cost
Free
Supplies
Nothing special
Where
At home
Other people
With other people
Locked for now
Earn two more Common badges in Game Dev to open this one. Log in to see how far along you are.

Requirements

  1. 1
    Build a room from blocks or free meshes with a floor, four walls and a doorway. Grey boxes are fine, and Kenney's free 3D kits are nicer. Set up a first-person controller with WASD and mouse look, and clamp the vertical look so the player can't flip upside down. Record a walk around the room with the camera turning. Video
  2. 2
    Add collision so the player can't walk through walls or fall through the floor. Every mesh needs a collision shape, and the first time you forget one you'll fall forever. Give the player a capsule and add one slope you can walk up and one step you can't. Record walking into a wall, up the slope and against the step. Video
  3. 3
    Add a key the player can pick up and a door that opens only with it. A trigger volume for the pickup, a flag on the player, and a rotation or animation for the door. Show a message when the door is locked, so the player knows why nothing happened. Record the locked try, the pickup and the door opening. Video
  4. 4
    Light the room on purpose with no more than three lights. One main light for the room, one accent on the key so the eye finds it, and shadows on. Turn off the engine's default ambient light for a minute to see what your lights are actually doing. Take a screenshot from the doorway with the key clearly visible. Photo
  5. 5
    Add a mouse sensitivity slider and a field of view setting in a pause menu. Those two settings are what stop people feeling sick. Default to a field of view between 75 and 90 degrees and let the player drag the sensitivity while the game is paused. Take a screenshot of the menu. Photo
  6. 6
    Export a build and watch someone who isn't you walk through it. Most people grab the mouse and look at the ceiling first. Note where they got stuck finding the key and whether the door message helped. Take a photo of them at the screen, and tell us one thing you'd change about the room. Photo