issues
search
ehmorris
/
lunar-lander
A web-based lunar lander game written in plain JavaScript, HTML, and CSS with no dependencies
https://ehmorris.com/lander/
156
stars
20
forks
source link
Land-able terrain
#28
Closed
ehmorris
closed
1 year ago
ehmorris
commented
1 year ago
Generate two flat areas to render in the terrain shape: one small and one large
Store the landing data and terrain shape in state (the shape as a Path2D)
Use isPointInPath to detect collision with the terrain for debris, confetti, and the lander
To come: incorporate landing area into score
To come: incorporate landing area into score