The old and very bad code for the project named "Horizon Protocol"
Find a file
2025-10-11 02:03:34 +01:00
assets old code 2025-10-11 02:03:34 +01:00
src old code 2025-10-11 02:03:34 +01:00
.DS_Store old code 2025-10-11 02:03:34 +01:00
icon.svg old code 2025-10-11 02:03:34 +01:00
icon.svg.import old code 2025-10-11 02:03:34 +01:00
nope.gd old code 2025-10-11 02:03:34 +01:00
project.godot old code 2025-10-11 02:03:34 +01:00
README.md old code 2025-10-11 02:03:34 +01:00

The event system

A really powerful system (it can be but we are making it so probably not) that will allow us to create a fully promise based system. Where our use of _process() will be drastically fall, there is how it (should) work.

There is 3 different parts to an event packet. First, the recipients that the packet should be sent to; Second, the data that needs to be send and a tag that tell the recipient what that data is and allow them to choose how they process this data; Third, the origin of the packet which would only be needed if there is a need to confirm a certain actions that was supposed to happen to the target.

There are some key words that would be able to be used in the first and the second part of the packet.

For the recipients:

  • all: Broadcast to all nodes
  • mother: A identifier for the Main node

For the data:

  • DoTurn: Tells a character/an enemy to take a turn
  • StoryTakeover: Tells node/nodes that it should freeze all functions for story/dialog