"Pac Man from Scratch"
summary
A playable Pac‑Man clone written in Go that runs in the terminal with emojis and a complete refactor from a nonidiomatic tutorial codebase to an idiomatic version, demonstrated working live. Uses terminal ANSI escape sequences, raw and cbreak modes for keystrokes, a game loop with a goroutine input channel, simple random ghost AI, collision, dot counting and a single‑life win/lose, runs about five frames per second, and loads an emoji JSON mapping that patches cursor math to keep alignment.
AI-written summary · about
chapters (9)
- 0:00Introduction
- 4:43Project Setup
- 5:42Maze Code
- 6:35Input
- 9:09Player
- 12:08Ghost
- 13:59Game Over
- 16:09Go Run
- 18:42Emojis
related talks
45mGo Beyond Work
42mTerminal Emulator Basics in Golang
38mEmulating a Nintendo DS in Go
05m7 Surprising Features of the Go Playground
25mReinventing the CLI with Go
44mImplementing Software Machines in Go and C
27mBack to the Future: Modernizing CLIs Using Go
31mSpecial When Lit: Using Go to Bring a Pinball Machine Back to Life!
