"Rock, Paper, Scissors" (RPS) Combat Engine

3

Index

Features on these Courses

Stats

1,054 visits, 1,854 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY-NC 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Published on 16 May, 2024. Last updated 18 May, 2024

This brief sample (below) is the "finite state machine" in a nutshell. I sort through the Norman Defense and Attacks, set the 9-sprites grid to their appropriate frames, and assign text to both "heads up display" (HUD) panels. The trick is whenever both attacks are coming from the same location.

... or whenever a Defense and an opponent's Attack are in the same location.

  • 0 Comments

Want to leave a comment? Login or Register an account!