From the course: Building Website Interactivity with JavaScript
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Challenge: Finalizing the basic gameplay - JavaScript Tutorial
From the course: Building Website Interactivity with JavaScript
Challenge: Finalizing the basic gameplay
(soft upbeat music) - [Instructor] In this challenge, we're going to finalize the gameplay by checking a completed solution against a list of words and telling players whether they found one of those solutions. So I've made a few changes here in the files for this video, including adding a messages area with a dialogue for both a correct or incorrect message. In the script file, we have a solutions word list that we'll be able to check against, and I also added a reference to the messages region. And then finally, in our game animation CSS file, despite its name, we have some starter CSS for the messages area itself, and then some basic styles for dialogues in general. Let's go over the parameters of this challenge. We're calling this the Game Completion Challenge. The notes are, we're going to check the solution when it's appropriate, in other words, when all slots have a tile. If the solution is a word in the word list, we should show a success dialogue. If not, we should show the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
Inspecting the game prototype2m 59s
-
(Locked)
Implementing basic interaction: Click to add6m 46s
-
(Locked)
Reversing the interaction: Click to remove5m 25s
-
(Locked)
Supporting the keyboard in the game5m 30s
-
(Locked)
Allowing tiles to be dragged8m 11s
-
(Locked)
Allowing tiles to be dropped4m 42s
-
(Locked)
Adding animation to make interactions smoother3m 22s
-
(Locked)
Challenge: Finalizing the basic gameplay1m 25s
-
(Locked)
Solution: Finalizing the basic gameplay2m 50s
-
-