CyberLord09 / CSSE1_Final

MIT License
0 stars 0 forks source link

Sprint #2 Pair 3 #7

Open QDBordtoshred opened 1 month ago

QDBordtoshred commented 1 month ago

Issue: Timer-Based Sandstone Block Breakage

Description

To enhance gameplay mechanics and introduce a new challenge, we propose a change to the behavior of sandstone blocks. Currently, sandstone blocks remain static regardless of player interaction. The proposed change will make these blocks interactive: when a player stands on a sandstone block, a timer will initiate, leading to the block breaking after 2 seconds if the player continues to stand on it they will fall from the platform.

Expected Behavior

  1. Modify Sandstone Block Properties:

    • Update the sandstone block entity in the game's code to include a timer functionality.
    • Ensure that the block detects when it is being stood on.
  2. Timer Mechanics:

    • Integrate a countdown system that begins upon player contact.
  3. Visual/Audio Feedback:

    • Add a simple visual indicator (e.g., the block flashes or changes color) when the timer is active.
    • Optional: Include a ticking sound during the countdown to enhance player feedback.

Image