---
title: "Build a dinosaur runner game with Deno, pt. 5"
description: "Part five of a Deno tutorial series adds player identity and customization to a browser dinosaur runner game."
url: "https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-5-5afa507e9804672c"
canonical: "https://deno.com/blog/build-a-game-with-deno-5"
source: "Deno"
published: "2026-02-09"
difficulty: "medium"
kind: "How-to"
reading_minutes: 9
tags: ["javascript","postgres","gaming","frontend"]
---

# Build a dinosaur runner game with Deno, pt. 5

A post on [Deno](https://swe.quest/sources/deno.md), published 2026-02-09, 9 min read, How-to. Original: [https://deno.com/blog/build-a-game-with-deno-5](https://deno.com/blog/build-a-game-with-deno-5)

## Summary

Part five of a Deno tutorial series adds player identity and customization to a browser dinosaur runner game. Plain DOM modals collect a player name and preferences for dino color, background theme and difficulty. The DinoGame class loads settings from the server or localStorage and applies theme gradients and difficulty speed multipliers (0.8/1.0/1.3). New PostgreSQL \`players\` and \`player\_settings\` tables back Oak routes under \`/api/customization\`, which use INSERT ... ON CONFLICT upserts to persist those choices.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Games](https://swe.quest/tags/gaming.md) (Domains)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- JavaScript DOM APIs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- basic SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))
- Deno basics

## Keywords

Deno, Oak, PostgreSQL, Deno Deploy, localStorage, Canvas

## Related posts

- [Build a dinosaur runner game with Deno, pt. 4](https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-4-9ff0694a60c6e4e7.md): Deno · 2026-01-26 · Medium · 10 min read · PostgreSQL, JavaScript, API design, Games
  Part four of the Deno dino runner series adds score persistence: a leaderboard HTML page that polls an API every 30 seconds, a managed Prisma Postgres database provisioned in Deno Deploy, and Oak routes to submit and rank scores.
- [Build a dinosaur runner game with Deno, pt. 3](https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-3-210f2045426eb0c9.md): Deno · 2025-12-22 · Medium · 9 min read · Games, JavaScript, Frontend
  Part 3 of a Deno tutorial series adds obstacles and collision detection to a canvas-based dinosaur runner game.
- [Build a dinosaur runner game with Deno, pt. 2](https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-2-c8e56eec683a558c.md): Deno · 2025-12-15 · Medium · 10 min read · Games, JavaScript, Frontend, Browsers
  Stage 2 of a Deno dinosaur runner tutorial turns a static landing page into a playable HTML5 canvas game.
- [Build a dinosaur runner game with Deno, pt. 1](https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-1-e4d3faa91fec67fd.md): Deno · 2025-12-08 · Medium · 5 min read · JavaScript, TypeScript, Deployment, Serverless
  Part one of a series building a browser dinosaur runner game sets up a Deno project that serves static files and deploys it.
- [Persist Data in Deno with npm using Prisma, Mongoose, Apollo, and more.](https://swe.quest/articles/persist-data-in-deno-with-npm-using-prisma-mongoose-apollo-and-more-93a981bba3f6dd39.md): Deno · 2022-11-15 · Medium · 7 min read · JavaScript, TypeScript, Databases, GraphQL
  Deno's npm: specifiers let you use popular data-layer packages directly, with Deno's opt-in permission flags limiting what a possibly compromised dependency can reach, such as environment variables holding database credentials.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
