docs: add "Build Your First Game" tutorial - #284
Conversation
|
@ayo-ola0710 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
"I have completed the cougr-site setup with the mdBook IA skeleton and the cross-repository sync script! You can review the repository here: https://github.com/ayo-ola0710/cougr-site And see the live deployed site here: https://ayo-ola0710.github.io/cougr-site/ Let me know if you would like me to transfer ownership of this repository to the organization, or if you prefer to fork it from my account!" |
awesome |
|
Great tutorial content for #250 — clear steps, good callouts on storage/gas/resource limits, nice that it links out to PATTERNS.md and examples/ at the end. However, this PR's description says it closes #249, and that part isn't delivered: #249 asks for a I see you already built that scaffold at https://github.com/ayo-ola0710/cougr-site (book.toml, src/, sync.py). Could you bring that code into a folder inside this monorepo (e.g. |
|
@salazarsebas pls review |
|
The tutorial content itself ( |
c1b45aa to
2eb656e
Compare
|
@salazarsebas For #249, I have the docs-site scaffold fully built in its own separate repository here: https://github.com/ayo-ola0710/cougr-site (it includes the GitHub Action sync mechanism and the mdBook setup). How would you like to proceed with merging that part? Should I transfer ownership of that repository to the organization, or if you want to create an empty salazarsebas/cougr-site repo for you to open a PR against. |
As I told you here, I would like you to solve issue 249 to make a folder here in this same repository and include everything here, please |
|
@salazarsebas Here is a quick summary of how this was structured: Created a new cougr-site/ directory at the root of the project to house the documentation. Is these ok to close the two isses |
|
Closing — the docs-site portion of this PR (closing #249) scaffolds |
|
Reopening — closed earlier for the wrong reason (assumed the docs site needed a separate repository). Confirmed it does not: this repo keeps everything, and the |
sync.py cloned salazarsebas/Cougr over the network to read docs/*.md, which made sense when cougr-site was going to be a separate repository. Since it now lives in this repo, that clone pulled main instead of the current checkout, so doc edits in the same PR never made it into the synced output. Read straight from the local checkout instead.
mdbook rejects this field entirely (unknown field, expected one of title/authors/description/src/language/text-direction), so the site never built. Also drops the leftover .tmp-source/ gitignore entry now that sync.py no longer clones into a temp directory.
Runs sync.py against the checkout and fails if it produces a diff, so a doc edit that isn't reflected in cougr-site/src gets caught instead of silently drifting. Also runs mdbook build to catch a broken config or IA before merge.
The committed copy in cougr-site/src was a 16-line stub; docs/start/build-your-first-game.md has the real 261-line tutorial. Running the corrected sync.py brings cougr-site/src back in line with the source of truth.
Several docs (ARCHITECTURE.md, PATTERNS.md, PERFORMANCE.md, CHANGELOG.md, CONTRIBUTING.md) and three new ADRs landed on main after this branch was created. Re-running sync.py brings cougr-site/src back in line.
What was done
Added a comprehensive, step-by-step tutorial for new Rust developers onboarding to Cougr and Soroban. This tutorial addresses the Stage 3 onboarding gap identified in the UX strategy by building a complete, tested, and deployable 2D grid game (based on the
spawn_and_movepattern).It explicitly maps ECS primitives (Components, Systems) to Soroban's unique constraints, specifically highlighting instance storage differences, gas costs, and resource limits. It also introduces local testing using
GameHarnessandScenario, ending with Stellar CLI deployment instructions.Close #250
Close #249