A user input-based procedural city generator
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
dist
src
.gitignore
README.md
index.html
package-lock.json
package.json

README.md

Ville

A user input-based procedural city generator, built for my Digital Media Design Senior Project (CIS497) in the fall of 2018.

Local Development

Ville uses Parcel to bundle resources. For development, run npm run dev to build and watch the CSS and JS. Then run parcel index.html in another terminal tab, and it will serve the app at localhost:1234.

Deploying

Ville is deployed from the dist folder. To ensure that dist has the correct resources, run npm run build. The most important distinction between this and npm run dev is that build sets the public URL to be ville/[resource], which is necessary for my current URL structure.

To deploy the dist folder, run npm run deploy. This pushes the dist folder to the gh-pages branch, which is the source branch for the published app.

Credits

The road generation and building placement implementations are adapted from citygen. The noise functions are adapted from noisejs.

The only production dependency that Ville uses is three.js.