summaryrefslogtreecommitdiffhomepage
path: root/examples/core
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-10 19:25:28 +0100
committerRay <[email protected]>2023-11-10 19:25:28 +0100
commite4ea116857464707d2508ae66f8feae8b68d5594 (patch)
treebcf3e5bcb289e54620ab21a1330e6f6a6771e566 /examples/core
parent16b79f2c707d53836cdf67d7d9314746c95a4b10 (diff)
downloadraylib-e4ea116857464707d2508ae66f8feae8b68d5594.tar.gz
raylib-e4ea116857464707d2508ae66f8feae8b68d5594.zip
Reviewing automation events on web...
Diffstat (limited to 'examples/core')
-rw-r--r--examples/core/core_automation_events.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/core/core_automation_events.c b/examples/core/core_automation_events.c
index 136e1e50..3ca3d4ed 100644
--- a/examples/core/core_automation_events.c
+++ b/examples/core/core_automation_events.c
@@ -211,6 +211,8 @@ int main(void)
eventRecording = false;
ExportAutomationEventList(aelist, "automation.rae");
+
+ TraceLog(LOG_INFO, "RECORDED FRAMES: %i", aelist.count);
}
else
{
@@ -245,6 +247,9 @@ int main(void)
// NOTE: Multiple events could be executed in a single frame
while (playFrameCounter == aelist.events[currentPlayFrame].frame)
{
+ TraceLog(LOG_INFO, "PLAYING: PlayFrameCount: %i | currentPlayFrame: %i | Event Frame: %i, param: %i | current Time: %f",
+ playFrameCounter, currentPlayFrame, aelist.events[currentPlayFrame].frame, aelist.events[currentPlayFrame].params[0]);
+
PlayAutomationEvent(aelist.events[currentPlayFrame]);
currentPlayFrame++;
@@ -253,6 +258,9 @@ int main(void)
eventPlaying = false;
currentPlayFrame = 0;
playFrameCounter = 0;
+
+ TraceLog(LOG_INFO, "FINISH PLAYING!");
+ break;
}
}