Skip to content

Vivian and Aliya Final Sprint #81

@vivianknee

Description

@vivianknee

Objective

The objective of this final sprint and feature addition is to tie the cyber games and fight games together and give them both an equal level of purpose. Currently, the cyber games are very separate from the rest of the game, thus by integrating the cybergames into the general leaderboard and creating incentives to play them by including powerups and keys, the player is more inclined to play every game and feature of the project thus better integrating the two games (Cyber and fight).

Tasks

  • NEW IDEA/Feature: Create a key system to better integrate cyber games with fight game
  • If a user plays a certain number of cyber games --> keys are unlocked on the home page map that can be collected --> these keys can give the users character powerups to use in the fights (skip a question, get a hint, etc)
  • Key features will be deployed in order to be presented
  • Multiple people will be able to interact with the feature (collect keys) at the same time, data updates

The Plan

Requirements:

  • A key system on the home page map.
  • A mechanism to convert keys into power-ups for use in the fighting game.

Game Data Integration:

  • Ensure that both the cyber games and fighting game share a common user database.
  • Implement a tracking mechanism to record the number of cyber games played by each user.

Key System:

  • Create a key interface on the home page map.
  • Define conditions for key unlocking (e.g., number of games played).
  • Design the key as an item that appears on the menu bar)

Power-Up Mechanism:

  • Define the power-ups (e.g., skip a question, get a hint).
  • Implement a system to get keys for power-ups in the fighting game.

Database Schema:

  • Add a games_played field to the user database to track the number of cyber games played.
  • Add a keys_collected field to track the number of keys a user has.

Schedule

Monday: Share plan with team and create ideation visuals. Ensure that key requirements for N@TM are distributed across features for all team members

Screenshot 2024-05-21 at 11 17 28 AM Screenshot 2024-05-21 at 11 17 43 AM Screenshot 2024-05-21 at 11 17 53 AM Screen Shot 2024-05-21 at 11 18 59 AM Screen Shot 2024-05-21 at 11 17 51 AM

Tuesday: Work with Luna (map person) to figure out how to create keys that appear and can be collected via user

Wednesday: Work on database with 'gamesPlayed' and 'keysCollected' to create a system that awards powerups based on plays of cyber game

  1. GET requests to display number of keys based on the column keysCollected in the person database on the backend
  • here it is for the fight scene
PNG image
  • here it is on the main game page
PNG image
  • code:
Screenshot 2024-05-26 at 6 06 43 PM
  1. POST requests to increase number of plays by 1 each time AND to add/remove keys based on thresholds
  • post request working in console log to increase game plays by 1 after playing password game
Screenshot 2024-05-26 at 6 03 47 PM
  • post request to add keys
Screenshot 2024-05-27 at 11 52 27 AM
  • proof that key amount is updated on backend
Screenshot 2024-05-27 at 11 53 19 AM
  • post request to remove keys
Screenshot 2024-05-27 at 12 09 29 PM
  • post request to reset game plays for players to earn multiple keys
Screenshot 2024-05-27 at 12 40 00 PM

Thursday: Implement the function of the powerups and ensure they work in the fight game

  1. powerups
  • options popup (wow looks so much like the canva one)
Screen Shot 2024-05-27 at 12 49 56 PM - functions for each powerup Screen Shot 2024-05-27 at 10 27 19 PM Screen Shot 2024-05-27 at 10 28 28 PM
  • showcase of the hint appearing after using a key. however, the questions database is currently undefined
Screenshot 2024-05-28 at 11 24 47 PM
  • added hints to backend question database
Screenshot 2024-05-27 at 10 26 35 PM

Finishing touches:

  • Make use key button only visible when player has keys
  • Make key post requests work for every game
  • When powerup option is used, have a visual on appear on screen (ex: when player uses skip, have a "Question Skipped" appear on screen)
  • When key is earned, have a visual on appear on screen (ex: "You just earned a key. You can use it for a powerup in the fight game!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions