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

Feature: RPG dialog boxes #4

Open
pushfoo opened this issue Apr 25, 2022 · 0 comments
Open

Feature: RPG dialog boxes #4

pushfoo opened this issue Apr 25, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@pushfoo
Copy link
Member

pushfoo commented Apr 25, 2022

Many RPGs use a similar style of dialog box. It generally works as follows:

  1. Clear the box and store the string to display
  2. Wait for a delay period to pass, usually a fraction of a second
  3. Display a new glyph after any previously shown
  4. If there glyphs left to show, go back to step 2
  5. Wait for the player input
  6. If there are further strings to display, select the next one and go to step 1.
  7. Close the dialog box

Examples include:

It could be implemented by doing the following:

  1. Subclass one of the built-in UI widgets , such as arcade.gui.UILabel
  2. Use one of the built-in Kenney pixel fonts as the font
  3. Add an on_update method that takes a float, delta_time. This method will increment tracking for the character display functionality.
@Cleptomania Cleptomania added enhancement New feature or request good first issue Good for newcomers labels Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants