news.volyx.in

Nightdrive (incoherency.co.uk)

1440 points by GeorgeHahn · 1447 days ago · 240 comments on HN

Article summary

The article presents a JavaScript simulation of driving at night on a motorway, created by the author. The simulation generates a dynamic scene with moving lights, using HTML5 canvas and basic 2D and 3D math. The author discusses the technical details of the simulation, including projection, terrain generation, and occlusion. The simulation is accompanied by royalty-free background music.

Main themes

  • Synthwave music
  • Night driving simulation
  • JavaScript and HTML5 canvas
  • 3D math and projection
  • Code maintainability and readability
  • Game development and interactivity
  • Aesthetics and relaxation
  • Technical details and optimization

What commenters say

  • The music used in the simulation is reminiscent of the synthwave genre and is well-suited to the aesthetic of the simulation.
  • The simulation's aesthetic is similar to that of the movie Drive and other synthwave-inspired works.
  • Some commenters find the simulation relaxing and enjoyable to watch, while others are more interested in its technical aspects.
  • The use of TypeScript and other development tools could improve the code's maintainability and readability.
  • The simulation's lack of interactivity is seen as a limitation by some, who suggest adding features like lane changes or a game-like goal.
  • Others appreciate the simplicity and hypnotic quality of the simulation, and do not see a need for additional features.
  • The simulation's technical details, such as its use of 2D and 3D math, are of interest to some commenters.
  • The author's decision to reduce the audio quality to reduce file size is seen as a reasonable trade-off by some, but not by others.