Technology-Snail / MySnail

This fun chrome extension allows you to have a customizable virtual pet snail that shows up on every website you visit. 🐌
https://technology-snail.github.io/MySnail/
MIT License
1 stars 0 forks source link

Queue Cancelation #16

Open WesleyMcGinn opened 6 months ago

WesleyMcGinn commented 6 months ago

On tab A, the snail notices that the computer battery is low, so it queues a word bubble to bring this up to the user. Before the snail gets to the part of the screen where it may speak (the "stage"), the user navigates to tab B, where the snail does the same thing. The snail on tab B notifies the user that their battery is low, so they plug it in and charge it. A few hours later, the battery is fully charged, and the user navigates back to tab A. The snail will now tell them that their battery level is extremely low and that they should plug in their computer immediately.

This problem must be resolved through queue cancelation. Queues should not merely be strings of text, but entire objects that come with:

This will help with various aspects of programming the snail's speech.