---
title: "Build a dinosaur runner game with Deno, pt. 1"
description: "Part one of a series building a browser dinosaur runner game sets up a Deno project that serves static files and deploys it."
url: "https://swe.quest/articles/build-a-dinosaur-runner-game-with-deno-pt-1-e4d3faa91fec67fd"
canonical: "https://deno.com/blog/build-a-game-with-deno-1"
source: "Deno"
published: "2025-12-08"
difficulty: "medium"
kind: "How-to"
reading_minutes: 5
tags: ["javascript","typescript","deployment","serverless"]
---

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

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

## Summary

Part one of a series building a browser dinosaur runner game sets up a Deno project that serves static files and deploys it. It covers \`deno init\`, adding the Oak framework from JSR, defining \`dev\` and \`start\` tasks in deno.json with explicit \`--allow-net\`/\`--allow-read\`/\`--env-file\` permissions, and a minimal Oak server that serves \`public/\` via \`context.send\`. It also adds an \`/api\` router with a health check endpoint, then deploys with \`deno deploy\` using \`src/main.ts\` as the entry point.

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)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)

## Prerequisites

- JavaScript basics ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- HTTP servers

## Keywords

Deno, Deno Deploy, Oak, JSR

## Related posts

- [Build an Astro site with Deno](https://swe.quest/articles/build-an-astro-site-with-deno-cd90d47e8a2fd029.md): Deno · 2024-10-29 · Medium · 4 min read · Frontend, JavaScript, TypeScript
  Deno 2's Node and npm compatibility lets you scaffold and run an Astro project entirely with Deno tooling: \`deno -A npm:create-astro@latest\` to scaffold, \`deno install --allow-scripts\` for dependencies, and \`deno task dev\` to run package.json scripts.
- [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 Apps in Deno with Frameworks such as React, Vue, Express, and more.](https://swe.quest/articles/build-apps-in-deno-with-frameworks-such-as-react-vue-express-and-more-c17610b126d7b402.md): Deno · 2022-11-16 · Medium · 11 min read · JavaScript, Frontend, React, TypeScript
  Deno 1.28's npm support lets you use npm-distributed frameworks like Express, React and Vue directly via \`npm:\` specifiers.
- [Build a REST API with Express, TypeScript, and Deno](https://swe.quest/articles/build-a-rest-api-with-express-typescript-and-deno-803b55a783fab19e.md): Deno · 2023-03-08 · Medium · 5 min read · TypeScript, JavaScript, API design, Runtimes & VMs
  Deno runs Express with TypeScript without any TypeScript build configuration: Express is imported through an npm: specifier and its types are pulled in with a @deno-types comment.
- [Build and Ship Astro Sites with Deno and Deno Deploy](https://swe.quest/articles/build-and-ship-astro-sites-with-deno-and-deno-deploy-3be8936cebaf2b24.md): Deno · 2023-07-21 · Medium · 12 min read · Frontend, Serverless, Deployment, TypeScript
  Astro sites can be built with the Deno runtime and hosted on Deno Deploy in two modes.

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)
