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

Add Keyboard Shortcut for "Next Wave" Feature #10521

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

neoBedjo
Copy link

Pull Request: Add Keyboard Shortcut for "Next Wave" Functionality

Problem Description

Currently, there is no keyboard shortcut available for triggering the "next wave" feature in Mindustry. This limitation restricts the ability to integrate the game into interactive platforms like Twitch, Youtube, TikTok, where user actions (e.g., sending gifts) could trigger specific in-game events. Additionally, players who prefer keyboard shortcuts over mouse clicks lack an alternative input method for this functionality.

Proposed Solution

I have implemented a new keyboard shortcut (F9) to trigger the "next wave" functionality. This addition enables users to map an action (e.g., pressing F9) to advance to the next wave in the game. The shortcut is intuitive and can be further configured or remapped if needed.

This feature enhances interactivity and engagement, particularly for streamers using platforms like TikTok, Twitch, or YouTube. For example:

  • When viewers send virtual gifts during a live stream, the gift could trigger the "next wave" shortcut.
  • This creates a dynamic and engaging experience for both the streamer and their audience.

Implementation Details

  • Added a new keyboard shortcut (F9) to trigger the "next wave" functionality.
  • Ensured compatibility with existing game mechanics and ensured no conflicts with other shortcuts.
  • The shortcut is simple to use and integrates seamlessly into the game's current input system.

Use Case

Streamers using TikTok or similar platforms can configure the game to respond to viewer interactions:

  • Gifts sent by viewers simulate a trigger (via the proposed shortcut) to start the next wave automatically.
  • This creates a more interactive and entertaining experience for both the streamer and their audience.

Benefits of This Feature

  1. Integration with Streaming Platforms:

    • Enables streamers to create engaging, interactive experiences by linking viewer actions (e.g., sending gifts) to in-game events.
    • Enhances the entertainment value of live streams and encourages audience participation.
  2. Improved Accessibility:

    • Provides an alternative input method for players who prefer keyboard shortcuts over mouse clicks.
    • Makes the game more accessible to users with different preferences or physical limitations.
  3. Enhanced Gameplay Customization:

    • Allows players to tailor their gameplay experience to their liking.
    • Aligns with modern gaming trends that emphasize personalization and player agency.
  4. Filling a Niche for Interactive Gaming:

    • Positions Mindustry as a forward-thinking option for creators looking to leverage interactive mechanics in their content.
    • Attracts a broader audience, including streamers and content creators.

Additional Context

The implementation of this feature is lightweight and non-intrusive. It aligns with the game's existing architecture and does not introduce significant complexity. The simplicity of adding a keyboard shortcut makes this a low-effort, high-impact improvement that greatly benefits the game's ecosystem.

Requested Outcome

  • A new keyboard shortcut (F9) to trigger the "next wave."

How This Feature Will Improve the Game

Adding a keyboard shortcut for the "next wave" functionality will significantly enhance the interactivity and versatility of Mindustry, especially in modern gaming and streaming environments. By enabling players to trigger the next wave via a simple keypress, this feature opens up new gameplay options and use cases:

  • Integration with streaming platforms like TikTok, Twitch, and YouTube.
  • Improved accessibility for players who prefer keyboard shortcuts.
  • Enhanced gameplay customization and personalization.
  • Filling a niche for interactive gaming and community-driven content.

This feature positions Mindustry as a more versatile and engaging game, attracting a broader audience and enhancing the overall player experience.


Testing

  • Verified that the F9 shortcut triggers the "next wave" functionality correctly.
  • Ensured no conflicts with existing shortcuts or game mechanics.
  • Tested in various scenarios, including single-player and multiplayer modes.

Future Considerations

  • Explore the possibility of making the shortcut configurable via the game's settings menu.
  • Investigate compatibility with external tools or APIs for programmatic triggering.

Thank you for considering this contribution! I believe this feature will add significant value to Mindustry and its community. Let me know if any additional changes or clarifications are needed.
If your pull request is not translation or serverlist-related, read the list of requirements below and check each box:

  • I have read the contribution guidelines.
  • I have ensured that my code compiles, if applicable.
  • I have ensured that any new features in this PR function correctly in-game, if applicable.

- Added F9 as a shortcut key for the skipWave function.
- Set keybind.skip_wave.name to "Skip Wave".
Adding neoBedjo as a contributor.
@jehosula
Copy link

reminder not to bring unnecessary hate again because the platform mentioned was tik tok, it can be used for platforms like twitch and youtube
Anuken/Mindustry-Suggestions#5450 (comment)

@JasonP01
Copy link
Contributor

tiktok hate stems from stupid and horny people who only see girls shaking their ass, the majority of the platform is not that

@neoBedjo
Copy link
Author

reminder not to bring unnecessary hate again because the platform mentioned was tik tok, it can be used for platforms like twitch and youtube Anuken/Mindustry-Suggestions#5450 (comment)

thankyou for commenting, i am using Tiktok as Case. It's in my country Indonesia so many people using TikTok as Gaming Platform. And I interested to promote Mindustry as one of gaming theme in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants