Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#45 implement scheduling and sync-point creation prefabs
- Loading branch information
1 parent
a6e3964
commit 50c66d9
Showing
12 changed files
with
135 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import {ISyncPointPrefab} from "sim-ecs"; | ||
import {BeforeStepSystem} from "../systems/before-step"; | ||
import {MenuSystem} from "../systems/menu"; | ||
import {PaddleSystem} from "../systems/paddle"; | ||
import {PauseSystem} from "../systems/pause"; | ||
import {CollisionSystem} from "../systems/collision"; | ||
import {BallSystem} from "../systems/ball"; | ||
import {AnimationSystem} from "../systems/animation"; | ||
import {RenderGameSystem} from "../systems/render-game"; | ||
import {RenderUISystem} from "../systems/render-ui"; | ||
|
||
|
||
export const defaultSchedule: ISyncPointPrefab = { | ||
stages: [ | ||
[BeforeStepSystem], | ||
[ | ||
MenuSystem, | ||
PaddleSystem, | ||
PauseSystem, | ||
], | ||
[CollisionSystem], | ||
[BallSystem], | ||
[AnimationSystem], | ||
[ | ||
RenderGameSystem, | ||
RenderUISystem, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import {ISyncPointPrefab} from "sim-ecs"; | ||
import {BeforeStepSystem} from "../systems/before-step"; | ||
import {InputSystem} from "../systems/input"; | ||
import {PauseSystem} from "../systems/pause"; | ||
import {RenderGameSystem} from "../systems/render-game"; | ||
import {RenderUISystem} from "../systems/render-ui"; | ||
|
||
|
||
export const pauseSchedule: ISyncPointPrefab = { | ||
stages: [ | ||
[BeforeStepSystem], | ||
[InputSystem], | ||
[PauseSystem], | ||
[ | ||
RenderGameSystem, | ||
RenderUISystem, | ||
], | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
export * from "./scheduler"; | ||
export * from "./pipeline/pipeline"; | ||
export * from "./pipeline/stage"; | ||
export * from "./pipeline/sync-point"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters