Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
elwell
on May 12, 2014
|
parent
|
context
|
favorite
| on:
Realistic terrain in 130 lines of JavaScript
Don't miss the demo:
http://www.playfuljs.com/demos/terrain/
hughes
on May 12, 2014
[–]
Is there any way to control the demo? It doesnt seem to respond to mouse or keyboard input.
kachhalimbu
on May 13, 2014
|
parent
|
next
[–]
I made a jsfiddle and added dat.gui
http://workshop.chromeexperiments.com/examples/gui/#1--Basic...
so you can modify the "detail" parameter to change the terrain without requiring a page refresh
http://jsfiddle.net/kachhalimbu/br8Xd/1/
Full screen result here
http://jsfiddle.net/kachhalimbu/br8Xd/1/embedded/result/
krilnon
on May 13, 2014
|
parent
|
prev
[–]
It only draws a single perspective, so the only control you have is to refresh the page to get a new random bit of terrain.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: