Premium Features

Download Video

Queueing Dialogue

Published 4 months ago

After an attack, it makes sense to display a snippet of text that describes what action was just taken. This video will show you how to show that snippet not only after we choose an attack, but also after the enemy selects an attack on their end.

We'll use the "queue" data structure to achieve this effect.

  • 0:00 - Create Dialogue Box

  • 6:12 - Refactor Battle Code Into Separate File

  • 7:52 - Queueing Enemy Attacks

Comments

Want to participate?

Create a free Chris Courses account to begin

Login

No comments yet, be the first to add one

Cheat Sheet Preview

Download The Official Chris Courses HTML5 Canvas Cheat Sheet

Essential canvas syntax at your fingertips.

Download Now

Providing the lift to launch your development career

© 2022 Chris Courses. All rights reserved.