QuestionQuestion

Game name - Next Stop: Survival

Concept : Can you make it through every bus stop?

Players will enter onto a bus (school bus) and will then travel to 7-8 different stops
At each stop the player will be forced off and must complete a simple task in order to earn a star and be allowed to enter the bus again.
Overall the player must make it to the last stop to win the game.
Failure to complete a challenge at any given stop will result in the player returning to the previous stop and them losing their previous star.
Once the player collects all of the stars at each stop and completes the final challenge at the last stop then the game will be over and the player will win.

Note: Add loops so it can be played over and over or ended if the player wants to quit.

Solution PreviewSolution Preview

These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice. Unethical use is strictly forbidden.

import game.*;


public class MainActivity {
   
   
    public static void main(String[] args) {
       int i = 0;
       // set up the pathe
       // we put gameon the path
       Game [] games = new Game[5];
       // init some game
       games[0] = new Game1();
       games[1] = new Game2();
       games[2] = new Game3();
       int index;
      
       // put random game on tha path
       for (int j = 3; j < games.length; j++) {
            index = (int) (Math.random() * 3);
            games[j] = games[index];            
       }
      
       System.out.println("Get on the bus");
       // stop when we reach the destinaion
       while (i < games.length) {            
            System.out.println("At bus-stop #" + (i+1));                              
            // play game
            if (games[i].play()) {
                System.out.println("You win");
                System.out.println("Go to the next stop");
                // step forward
                i++;
            } else {...

By purchasing this solution you'll be able to access the following files:
Solution.zip.

$25.00
for this solution

or FREE if you
register a new account!

PayPal, G Pay, ApplePay, Amazon Pay, and all major credit cards accepted.

Find A Tutor

View available Java Programming Tutors

Get College Homework Help.

Are you sure you don't want to upload any files?

Fast tutor response requires as much info as possible.

Decision:
Upload a file
Continue without uploading

SUBMIT YOUR HOMEWORK
We couldn't find that subject.
Please select the best match from the list below.

We'll send you an email right away. If it's not in your inbox, check your spam folder.

  • 1
  • 2
  • 3
Live Chats