AI removed the struggle from coding.
Turns out, that was the learning.
> Make the dinosaur jump when spacebar is pressed
function handleKeyDown(e) {
if (e.code === "Space" && !isJumping) {
velocity = JUMP_FORCE;
isJumping = true;
}
}
The jump uses a constant JUMP_FORCE applied once. How would you make the jump height depend on how long the player holds the spacebar?
A plugin for your editor that asks whether you understand what AI writes for you. Not a test. Just enough to keep you honest.
Blog
Thinking about understanding, learning, and building with AI.
No posts yet. Check back soon.