From the course: JavaScript Code Challenges: Creating Web Apps

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Planning the features

Planning the features

- [Instructor] All right, let's plan the features to bring our pixelated new little bestie to life. As you might know by now, I'm a fan of planning what I'm going to do before I start coding. At its core, our virtual pet is a simple game. It needs to show how it's doing, respond to user input, and slowly get needier over time. Just like a real pet. Or me, when I run out of coffee. We'll build a cute and simple UI to display the pet and its stats, like hunger, energy, and happiness. I'm going to keep it simple, but of course we could add more. Remember, the Tamagotchi in the olden days required us to play games? That's something you could add if you'd want to, but I'm going to keep it simple. I'll just stick to adding buttons to let the user take care of it, feed it, play with it, and let it rest. Behind the scenes, we'll create a game to slowly update the pet's stats over time. And of course, we'll need logic to keep everything balanced. If you ignore your pet for too long, something…

Contents