Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Web HTML Canvas Game - Walkable first-person American ASCII city in one HTML file. New Harbor — streets, interiors, lifts, yellow cabs.

Project website / live view

Typing SVG


Play Stack License

Stars Forks Repo Size Last Commit Visitors


> what_is_this

you@github:~$ cat ascii-city.txt

  PURPOSE:        Walkable first-person ASCII city
  SETTING:        Downtown NYC / Lower Manhattan
  STACK:          One HTML file · Canvas 2D · DDA raycaster
  STATUS:         [ LIVE ]

A grid of streets, parks, squares, and towers. Every frame the engine raycasts from the camera and draws the world with letters, numbers, and symbols. No Unity. No Unreal. No 3D models, textures, or shaders.

Play Downtown NYC


> play --live

Click CLICK TO ENTER THE GRID, then walk.

Chrome or Edge recommended. Click the view to lock the mouse.


> controls

Input Action
WASD / arrows Walk
Shift Sprint
Mouse Look
E / Space Enter a building, talk, or lift up
Q Lift down
X Exit to the street
M Minimap
N Cycle weather
F1 Matrix palette
H Help
Esc Release the mouse

> the_grid

Lower Manhattan, south to the water.

  • Avenues: West St, Greenwich, Hudson, Church, Broadway, Nassau, William, Pearl, Water, South St
  • Streets: Chambers, Park Place, Vesey, Liberty, Wall, Exchange, Battery Place
  • Parks & squares: Battery Park, Bowling Green, City Hall Park, Foley Square, Zuccotti Park, Trinity Churchyard, Hanover Square
  • Landmarks: One World Trade, Woolworth Building, NYSE, Federal Hall, City Hall, Trinity Church
  • Yellow cabs on the avenues. People on the sidewalks. Trees in the parks.

Every building opens. Ride the lift. Windows look back out into the same city.


> how_it_runs

you@github:~$ cat engine.txt

  MAP:            112 x 112 downtown grid
  RENDER:         one ray per character column
  WORLD:          variable-height buildings, floor / roof cast
  LIFE:           cabs, pedestrians, rain, live window views

Nothing leaves the browser. No libraries. No bundler.


> license

MIT. See LICENSE.

Maintained by @Ringmast4r

About

`Web` `HTML` `Canvas` `Game` - Walkable first-person American ASCII city in one HTML file. New Harbor — streets, interiors, lifts, yellow cabs. https://ringmast4r.github.io/ascii-city/

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages