Lesson 2: Riding the cosmic waves is not just about catching a wave, it's about feeling the rush of adrenaline as you surf through the asteroid field.
Here are some tips to help you get started:
- Make sure your surfboard is equipped with a good grip, a sturdy hull, and a built-in coffee maker.
- Position yourself at a 45 degree angle to the wave, and don't be afraid to get a little weird with your stance.
- Don't look down!
// example code to simulate an asteroid wave
function createAsteroidWave() {
var wave = document.getElementById("asteroid-wave");
wave.style.background = "linear-gradient(90deg, #ff0000, #00ff00)";
wave.style.border = "5px solid #000000";
wave.style.boxShadow = "0px 0px 10px rgba(0, 0, 0, 0.5)";
}
// call the function when the user clicks a button
document.getElementById("start-button").addEventListener("click", createAsteroidWave);