How Can I Make an FPS Video Game? Steps for Beginners

By Arron R.9 min read
To make an FPS video game, pick an engine, greybox one small level, build a first-person controller, add raycast shooting, simple enemies and hit feedback, then

If you want to know how to make an FPS video game, the honest answer is this: build a tiny, playable shooter first, then make it look good. Almost every first-person shooter, from a weekend jam project to a big studio title, grows from the same small core: a camera you can move and aim, a weapon that hits things, and something that fights back. This guide walks through that core in order, gives you working code, and shows where AI tools save you real time.

What is an FPS game, and what does making one involve?

An FPS, or first-person shooter, puts the camera at the player’s eyes. You aim with the mouse or a stick, move with the keyboard or the other stick, and the game revolves around ranged combat. (In tech chat, “FPS” also means frames per second, the frame rate. That matters for performance, but it is a separate topic.)

Making a game is a mix of disciplines: programming, design, art, audio and testing, which is how video game development is usually described. For a shooter specifically, the work breaks into a few systems:

  • The first-person controller: mouse look, walking, jumping and collision with walls.
  • Weapons: firing, a hit check, ammo, reloading and recoil.
  • Enemies: simple AI that spots, chases and attacks the player.
  • Feedback: muzzle flash, hit markers, sound, screen shake and damage effects. This is what makes shooting feel good.
  • Levels: spaces with cover, sightlines and a route through them.
  • Presentation: 3D models, materials, music, sound effects, menus and a trailer.

The first four make it a game. The last two make it a game people want to play. Build them in that order.

Which engine should you use for an FPS?

A game engine is the software framework that handles rendering, physics, input and audio so you do not write them from scratch. For first-person games the main options look like this:

OptionGood forTrade-offs
Unity (C#)Huge library of FPS tutorials and starter templatesEditor to install and learn; C# required for anything custom
Unreal Engine (C++ / Blueprints)High-end visuals, a first-person template, visual scriptingHeavy install, demanding hardware, steep learning curve
Godot (GDScript)Free, open source, lightweightFewer ready-made FPS assets and tutorials than the big two
Browser (Three.js, WizardGenie)No install for players, instant sharing, fast prototypingLess suited to very large, graphically heavy worlds

For a first project, choose the engine whose tutorials you can actually follow and whose export target matches where you want players to play. If you are going solo and want to be playing something today, a browser-based route is the shortest path. The rest of this guide uses that route, but the steps apply to any engine.

Comparison of four engine options for building a first-person shooter
Pick the engine whose tutorials and export target suit you, not the one with the best screenshots.

How to make an FPS video game, step by step

Here is the order that keeps a first-time project alive. Each step ends with something you can play.

  1. Write a one-paragraph scope. One level, one weapon, one enemy type, one goal (“reach the exit” or “survive three waves”). No multiplayer, no inventory, no story yet.
  2. Greybox the level. A greybox is a level built from plain blocks with no art. Lay out rooms, corridors, cover and a few long sightlines. You are testing space and pacing, not looks.
  3. Build the controller. Mouse look, WASD movement, gravity and wall collision. Tune speed and mouse sensitivity until moving feels comfortable, because players feel this every second.
  4. Add shooting. Most beginners should use hitscan: when you fire, cast an invisible ray from the centre of the screen and damage the first thing it hits. Real projectiles (rockets, arrows) come later.
  5. Add one enemy. A simple state machine is enough: idle, chase when it sees you, attack when close, die when health hits zero.
  6. Add feedback. Hit markers, a gunshot sound, a small camera kick, enemies flashing on hit. This step turns a tech demo into a game.
  7. Add the loop. Health, death, restart, a win condition. Now it is a complete game, however ugly.
  8. Replace the art. Swap blocks and capsules for models, textures and lighting.
  9. Add audio. Music, ambience and a full set of weapon and enemy sounds.
  10. Playtest and cut. Watch someone else play without helping them. Fix what confuses them, cut what bores them.

The same structure works if you want to make a horror video game: keep the controller and enemy steps, then slow the player, ration ammo, use darkness and let sound carry the tension.

The core code: a first-person controller in Three.js

This is a complete, minimal FPS in the browser: mouse look, WASD movement and hitscan shooting at five target cubes. It uses Three.js with its built-in PointerLockControls, which captures the mouse so it turns the camera. Load it as a module with an import map pointing three at the Three.js build.

import * as THREE from 'three';
import { PointerLockControls } from 'three/addons/controls/PointerLockControls.js';

const scene = new THREE.Scene();
scene.background = new THREE.Color(0x202530);
const camera = new THREE.PerspectiveCamera(75, innerWidth / innerHeight, 0.1, 200);
camera.position.set(0, 1.6, 5); // roughly eye height

const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setSize(innerWidth, innerHeight);
document.body.appendChild(renderer.domElement);

scene.add(new THREE.HemisphereLight(0xffffff, 0x444444, 2));
const floor = new THREE.Mesh(
  new THREE.PlaneGeometry(50, 50),
  new THREE.MeshStandardMaterial({ color: 0x555555 })
);
floor.rotation.x = -Math.PI / 2;
scene.add(floor);

// Targets to shoot
const targets = [];
for (let i = 0; i < 5; i++) {
  const box = new THREE.Mesh(
    new THREE.BoxGeometry(1, 1, 1),
    new THREE.MeshStandardMaterial({ color: 0xff5533 })
  );
  box.position.set((i - 2) * 3, 0.5, -8);
  scene.add(box);
  targets.push(box);
}

// Mouse look: first click locks the pointer, later clicks fire
const controls = new PointerLockControls(camera, document.body);
document.body.addEventListener('click', () => {
  if (!controls.isLocked) controls.lock();
  else shoot();
});

// Hitscan shooting from the centre of the screen
const raycaster = new THREE.Raycaster();
const centre = new THREE.Vector2(0, 0);
function shoot() {
  raycaster.setFromCamera(centre, camera);
  const hits = raycaster.intersectObjects(targets);
  if (hits.length > 0) {
    const target = hits[0].object;
    scene.remove(target);
    targets.splice(targets.indexOf(target), 1);
  }
}

// WASD movement
const keys = {};
addEventListener('keydown', (e) => (keys[e.code] = true));
addEventListener('keyup', (e) => (keys[e.code] = false));

const clock = new THREE.Clock();
const speed = 5; // metres per second
renderer.setAnimationLoop(() => {
  const dt = clock.getDelta();
  if (controls.isLocked) {
    if (keys.KeyW) controls.moveForward(speed * dt);
    if (keys.KeyS) controls.moveForward(-speed * dt);
    if (keys.KeyD) controls.moveRight(speed * dt);
    if (keys.KeyA) controls.moveRight(-speed * dt);
  }
  renderer.render(scene, camera);
});

addEventListener('resize', () => {
  camera.aspect = innerWidth / innerHeight;
  camera.updateProjectionMatrix();
  renderer.setSize(innerWidth, innerHeight);
});

Notice two details. Movement is multiplied by dt (time since the last frame), so the player moves at the same speed whatever the frame rate. And shooting casts the ray from screen centre, exactly where a crosshair would sit. From here, the next pieces are a CSS crosshair, wall collision, enemy health and a sound on every shot.

Making an FPS video game on your own with WizardGenie

Writing every system by hand is a great way to learn, and a slow way to ship. If you are making a video game on your own, an AI engine can take the boilerplate off your plate. WizardGenie, the AI game engine in Sorceress, works from descriptions: you describe the game you want, and it writes, runs and iterates on the code. It runs on the web with nothing to install, and as a Windows desktop app with an auto-updater, native file access and longer agent sessions. It works with the leading AI coding models, and you can switch models with your own API key.

This style of building is often called vibe coding. It works best when you still steer like a developer, so feed it the same steps from the list above, one at a time:

  1. “Make a first-person browser game with a greybox arena: floor, four walls, crates for cover. WASD movement, mouse look with pointer lock.”
  2. “Add hitscan shooting from the screen centre, a crosshair, 12-round magazine, R to reload.”
  3. “Add an enemy that chases the player when it has line of sight and deals damage up close. Three hits to kill.”
  4. “Add player health, a death screen and restart. Win after all enemies are defeated.”
  5. “Add feedback: hit markers, enemies flash red on hit, small camera kick on fire.”

Playtest after every request. Small, specific prompts beat one giant prompt, because you can see which change broke what. Review what the model wrote, too: AI-assisted software development can produce code that runs but hides bugs if you accept it without looking.

For assets, the rest of the suite plugs in. 3D Studio turns a typed idea into a rigged, animated, game-ready 3D character for your enemies, Material Forge turns an image into a PBR material (physically based rendering: albedo, roughness, metallic, normal and AO maps that react realistically to light) for walls and floors, and Sound Studio covers music, SFX and voice. If you work in another coding agent, the Sorceress API gives it one key for generating those assets. For designing the enemies themselves, see how to make a character for a video game.

Trailers, cutscenes and reference clips with AI Video Gen

Once the shooter plays well, you need a way to show it off, and maybe a short intro that sets the mood. That is where AI Video Gen fits. It puts the top video models in one panel: Grok Imagine Video, Wan 2.7, Seedance 2.0 and Kling 3.0, with text-to-video, image-to-video, end-frame control and native audio. The AI Video Gen overview describes the full set.

Be clear about what it is for: it generates video clips, not the game itself. For an FPS project, the practical uses are:

  • An intro cutscene. Take a still of your level or enemy concept and use image-to-video to bring it to life, so the clip matches your game’s look.
  • Trailer shots. Mix generated establishing shots with real gameplay footage. End-frame control lets you aim a clip at a chosen final image, which helps it cut cleanly into the next shot.
  • Mood and reference. Generate a short clip of the atmosphere you want (a flooded bunker, a neon rooftop) before you build the level, then use it as a target for lighting and colour.
  • Menu backgrounds. A slow, looping scene behind the title screen does a lot for first impressions.

Native audio means a clip can arrive with sound already attached, which is handy for quick social posts. If you want a planned sequence rather than single clips, Storyboards turns one idea into a structured cinematic plan and renders each section with Seedance 2.0. For the real gameplay footage, our guide to making a video while playing a game covers recording.

Mistakes first-time FPS makers make

  • Starting with multiplayer. Networking multiplies every problem. Make a single-player version first; it is still a real FPS.
  • Polishing art before the game is fun. If shooting a grey capsule is not satisfying, a detailed model will not fix it. Greybox until the loop works.
  • Skipping feedback. A gun with no sound, no flash and no hit marker feels broken even when the code is correct.
  • Frame-dependent movement. Forgetting to multiply by delta time makes the game faster on faster machines.
  • Enemies that see through walls. Check line of sight with a raycast before an enemy reacts, or fights feel unfair.
  • No sensitivity setting. Players have very different mice and preferences. A sensitivity slider is cheap and expected.
  • Too many weapons. One weapon that feels great beats six that feel the same.
  • Never watching others play. You know where the exit is. Testers do not.

The full pipeline

Making an FPS video game comes down to a short chain you repeat and refine:

  1. Scope it to one level, one weapon, one enemy and one goal.
  2. Pick an engine, or build in the browser with Three.js or WizardGenie.
  3. Greybox the level and build the first-person controller.
  4. Add hitscan shooting, a simple enemy and the win/lose loop.
  5. Add feedback until shooting feels good.
  6. Swap in characters from 3D Studio, materials from Material Forge and audio from Sound Studio.
  7. Make an intro and trailer with AI Video Gen, then export your build and host it where you want.

Start small, finish the first version, then grow it. When you are ready to see every tool that fits into this pipeline, the Sorceress tools guide lists them in one place.

Frequently Asked Questions

What is an FPS game?

An FPS, or first-person shooter, is a game where you see the world through your character’s eyes and fight mainly with ranged weapons. The camera is the player’s head, the mouse or right stick aims, and the core loop is move, aim, shoot and survive. Classic examples include Doom, Half-Life and Call of Duty. In game tech, “FPS” can also mean frames per second, which is a different thing entirely.

Is 10,000 FPS possible?

If you mean frames per second, a very simple scene with an uncapped frame rate can render thousands of frames per second on a strong machine, but your monitor only displays as many frames as its refresh rate allows. The extra frames are thrown away. For your own shooter, aim for a stable frame rate that matches common displays rather than a huge number, and cap it to save power and heat.

Can I make an FPS game without coding?

Yes, to a point. Visual scripting tools and AI game engines let you describe or assemble behaviour without writing code by hand. WizardGenie, the AI game engine in Sorceress, writes, runs and iterates on the game from your descriptions. You will still get better results if you understand the basics: a camera controller, raycasts for shooting and a simple enemy state machine, because that knowledge helps you describe and debug what you want.

How long does it take to make an FPS game on your own?

It depends almost entirely on scope. One greyboxed level with one weapon and a few enemies is a realistic weekend or game-jam project for a beginner. A full campaign with many weapons, polished art and multiplayer is a multi-year team effort. Start with the smallest playable version, finish it, and grow from there rather than planning the big game first.

Which engine is best for a beginner FPS?

Unity and Unreal both ship first-person templates and have huge tutorial libraries, Godot is free, open source and light, and browser options like Three.js run without installs. The best choice is the one whose tutorials you can follow and whose export target matches where you want players to play. For fast AI-assisted prototyping in the browser or on Windows, WizardGenie is a practical starting point.

How do I make a horror FPS game?

Build the same FPS foundation, then shift the balance from combat to tension. Limit ammunition, slow the player down, use darkness and a flashlight, and let sound carry the fear: distant footsteps, breathing, doors. Make enemies rare but dangerous. Horror relies heavily on audio and pacing, so playtest with headphones and cut anything that releases tension too early.

Sources

  1. Video game development — Wikipedia
  2. Game engine — Wikipedia
  3. Vibe coding — Wikipedia
  4. AI-assisted software development — Wikipedia
Written by Arron R.·2,061 words·9 min read

Related posts