Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scenario triggered after the player selects the correct traitor #139

Open
3 tasks done
LIU-Evelyn opened this issue Sep 28, 2022 · 5 comments
Open
3 tasks done

Scenario triggered after the player selects the correct traitor #139

LIU-Evelyn opened this issue Sep 28, 2022 · 5 comments
Assignees
Labels
communication additional communication between teams Cooperation Cooperation with other teams Team 5 Team 7

Comments

@LIU-Evelyn
Copy link
Contributor

LIU-Evelyn commented Sep 28, 2022

Description

Task: Create and Implement the game logic of win/lose condition and match the sub-feature

Purpose: This ticket is for effective cooperation between two groups related to scenario triggered (relate to right selection)
Function: The window of information that traitor provided will pop up after the player clicks the "ok" button on win prompt box, and the window will display the content "Need to find key to save Atlantis". After the window is closed by the player, a key will appear on the map, and the player can win the game with the key.

Requirement

After the player chooses the correct traitor, they will be given a way to save Atlantis - Find and collect the "Key"

  • Team 7: Implement win/lose prompt box and create win/lose condition, call the corresponding function built by Team 5 after selecting the right traitor.
  • Team 5: Create and implement the corresponding function to load the key on the map and ready for use.

Dependencies

Milestones

Steps that need to be completed for this task:

  • Step 1: Situational logic after selecting the right traitor (Sep. 29)
  • Step 2: Load key function. (Sep. 30)
  • Step 3: Adjust and optimize the state when calling the function (Sep. 30)

Completion Deadline: Sep. 30

Documentation

Member

@LIU-Evelyn LIU-Evelyn added Team 7 Team 5 communication additional communication between teams Cooperation Cooperation with other teams labels Sep 28, 2022
@ShokuJO
Copy link

ShokuJO commented Sep 28, 2022

We have finished the key design, we will update the loading functions as soon as possible

@LIU-Evelyn
Copy link
Contributor Author

traitor info window was ready for use: 8441723

@ShokuJO
Copy link

ShokuJO commented Sep 30, 2022

@ShokuJO
Copy link

ShokuJO commented Sep 30, 2022

You can see the detail in souce/core/src/main/com/deco2800/game/areas/ForestGameArea.java (spawnKey() function)

@LIU-Evelyn
Copy link
Contributor Author

Now the logic: find and use the key to win the game has been done: a5e9993

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
communication additional communication between teams Cooperation Cooperation with other teams Team 5 Team 7
Projects
None yet
Development

No branches or pull requests

4 participants