Repository navigation
feat: centralize the example games in basics, demos and games for engine 3 - #18
Merged
Merged
Conversation
Scenes (sky, ready, play, game over), components and systems instead of the game-state singleton, closures and the custom render loop. Shared arcade code (just-pressed, sound effects, draw order) goes to shared/arcade.
Match and end popup scenes, scene vars for the game state, mouse input through the input library and the shared 2d drawables instead of konva nodes added from component constructors.
…, and log what --fix overwrites
…ery and the delta gap
…d components docs
This was referenced Nov 13, 2026
fix(core): app delta is unclamped, so a hidden tab makes huge physics steps
NanoForge-dev/Engine#517
Open
Open
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
No linked issue: the restructure was asked for directly (centralize every example game here).
Turns the repository into the home of every NanoForge example game, all remade for engine 3.0.0 and natively supported by the editor.
basics/(one engine feature each): input-keyboard, input-mouse, input-gamepad, sprite-2d, sound, music, scenes, network (client + server + shared lib), graphics-3d (was the engine'sexample/cube-3d).demos/(the pong family): pong, pong-network (was the engine'sexample/pong-network), pong-3d (was the engine'sexample/pong-3d; peer to peer, same server code).games/: breakout (was the editor'sexamples/breakout), flappy-bird, tic-tac-toe, raid-survival (remade from the old root folders, which are removed).nf newoutput: one component, system or scene per file with the editor's TSDoc tags (@component/@system/@scene,@side),app.use(new EditorLibrary()), engine packages^3.0.0, CLI/config^3.0.1, TypeScript 6.shared/: code several examples need, kept byte-identical in each of them (temporary, to be replaced by components-systems packages).scripts/check.ts(pnpm check,pnpm fix) enforces identical copies, one item per file and unique shared paths;scripts/check.test.tsis its self-test.docs/shared-components.md: every shared file, who uses it and the library package that should replace it; library candidates; what is kept apart on purpose and why; gaps found in the library and the engine..github/workflows/tests.yml): root lint + self-test, then per example a frozen install,tscper app andnf build.How do you test this PR?
Run on
HEAD:pnpm lint→ "16 examples checked.";pnpm test→ pass 5, fail 0.pnpm install --frozen-lockfile,tsc --noEmitper app,pnpm build("Build succeeded"), and the editor's ECS + scene analyzers (no problems, no code-only entity, every component and system modelled).Merge danger
Two-way door: example content only, no published package, no package depends on this repository. Merge it before NanoForge-dev/Engine
feat/examples-gamesand NanoForge-dev/Editorfeat/examples-games: their docs and copy scripts point atbasics/,demos/andgames/. The cloud-iac games-builder testing job still points at the old rootpong-network/.Follow-up issues
Quality gate