התקדמות שלך
45/47

ג'אווה סקריפט המדריך המלא 2024
בניית אפליקציות משחק ניחושים


בתרגיל הבא נלמד איך ליצור משחק שמבוסס על שאלות , באמצעות הגרפיקה שהדוקטור הכין לכם מראש נלמד איך ליצור משחק עם לוגיקה שמאפשרת לנו לענות על שאלות שמוצגות לנו ולתת למשתמש ניקוד בהתאם

  • Lets create a guess game, we will have 5 questions, each question should contain quote, image, array of answers and an index that points to the correct answer.
  • When we start a game, each time we pick a random question and we're gonna display an image and the quote related to the question, also we need to display the answers as clickable buttons.
  • Use 5 different questions that can be tv shows like friends or video games like you can see in the design (dota 2 game).
  • When the game start the user has to select the correct answer ( show the user at least 2 answers he can pick from).
  • Each time the game start display the questions in random order.
  • Countdown how much time it took to beat the game, using an interval then render it live to the screen.
  • Use a max of 5 questions for the game when the game ends show the user a button where he can start over again.
שאלות
דברו איתי
whatsapp
ווצאפwhatsapp דיסקורדwhatsapp