Skip to content

Commit

Permalink
Scene.paused
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Mar 15, 2024
1 parent 0404322 commit beb7e8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/dagon/resource/scene.d
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Scene: EventListener
bool loaded = false;
bool canRender = false;
bool focused = true;
bool paused = false;

this(Application application)
{
Expand Down Expand Up @@ -210,6 +211,9 @@ class Scene: EventListener
{
processEvents(focused && loaded);

if (paused)
return;

if (!startedLoading)
{
startedLoading = true;
Expand Down

0 comments on commit beb7e8b

Please sign in to comment.