CyberLord09 / AnvayDNHSCompSci

Apache License 2.0
0 stars 0 forks source link

Sprint 2 Pair 1 (Yash and Anvay) #5

Open Hypernova101 opened 2 months ago

illuminati1618 commented 2 months ago

Rising Lava

  1. For our game level, we are planning to implement an event where lava begins rising as a result of falling cannonballs

A timeline of this looks like so:

If the player makes it onto the floating platform (explained below), they beat the level! If not, they have to try again.

A few features of the lava are:

  1. The player has 3 health points before they die to the lava
  2. The player's health points deteriorate over time (every 8 seconds one health point goes down regardless of whether they have hit the lava or not)
  3. If the lava rises above the floating platform, the player instantly loses the level
  4. The player bounces up (similar to current jump feature) if they hit the lava

Also, the counter for the health points that the player has left will be located at the top of the screen, next to a small timer that shows the time left for each state of the lava.

NOTE: The rising lava solely depends on the cannonballs that fall from the sky

CyberLord09 commented 2 months ago

Falling Cannonballs

Following the theme of war/ancient Greece, we are planning to add cannonballs that randomly fall out of the sky on a timer. These cannonballs will interact with a lot of items in the game. The interactions are as follows:

  1. If the cannonball were to hit a player, they would die and respawn like normal.
  2. If the cannonball were to hit a block/platform, it would break and disappear.
  3. If the cannonball were to hit the ground, the ground would have a hole in it and the rising lava would be triggered

    This could be done by making the floor out of blocks and implementing the same collision code that we use for step 2 except the collision would trigger rising lava.

Flying Platform With the EndObject

As when the lava rises, if the EndGameObject is on the floor, it wouldn't be reachable. For this, we want to create flying platform that has the Flag from our level.

Right now, the level has a diagonal path towards the end.

The flying platform would be at the top right of the screen and would bob up and down as it is "floating" in a way.

The platform would only have the flag on it and nothing else.