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 - JavaScript Tutorial
From the course: JavaScript Code Challenges: Creating Web Apps
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
-
-
-
-
(Locked)
Introduction: Virtual pet59s
-
(Locked)
Planning the features1m 27s
-
(Locked)
Creating the UI2m 51s
-
(Locked)
Quick overview of the necessary JavaScript concepts1m 25s
-
Taking care of the virtual pet5m 37s
-
(Locked)
Adding the game loop2m 34s
-
(Locked)
Final touches5m 34s
-
(Locked)
Challenge: Getting a health report51s
-
(Locked)
Solution: Getting a health report2m 1s
-
(Locked)
-
-
-
-