godot-docs icon indicating copy to clipboard operation
godot-docs copied to clipboard

Use instancing example from godot-projects for the "Step by step: Instancing" page

Open rm-code opened this issue 1 year ago • 2 comments

As discussed in PRs #6187 and #5374 the instancing demo from the "Step by step" tutorials could be moved to the godot-demo-projects repository for v4.

But I think it would make more sense to reuse the already existing (and nearly identical) instancing project: https://github.com/godotengine/godot-demo-projects/tree/master/2d/instancing

I would be up for a PR to rewrite the necessary parts of the docs and add new screenshots, but I'm not sure how we would handle this going forward. E.g. how can we link to a specific version of a demo-project?

rm-code avatar Feb 19 '23 20:02 rm-code

E.g. how can we link to a specific version of a demo-project?

You can link to a tagged release once such a tag is is made for 4.0.

GitHub doesn't allow downloading a single folder of a repository as a ZIP, but this can be done with external services (source).

Calinou avatar Feb 20 '23 16:02 Calinou

@Calinou I added a note about the download-service which could be removed later on. Bildschirmfoto 2023-03-04 um 20 13 01

rm-code avatar Mar 04 '23 19:03 rm-code

@rm-code What if we had someone cut a release of godotengine/godot-demo-projects for the 4.0 tag? Then there would be generated zips that docs could reference. It's pretty convenient as a user to be able to just download the zip and go.

The downside is any subsequent 4.0 releases would result in docs needing to update links to point at the new release. Pointing at the 4.0 branch like you're doing avoids that which is nice.

Example of previous release: https://github.com/godotengine/godot-demo-projects/releases/tag/3.5-9e68af3

e: I also wanted to say thank you for working on this! I was just working through docs and hit the current zip that doesn't work in Godot 4 without a small amount of massaging.

wirecat avatar Mar 06 '23 05:03 wirecat

@wirecat The original idea was to link to the asset store which in turn references the release tag you mentioned:

Bildschirmfoto 2023-03-06 um 08 06 05

I added the note in the PR to allow a quick merge, instead of having to wait for the asset store to update.

I also wanted to say thank you for working on this! I was just working through docs and hit the current zip that doesn't work in Godot 4 without a small amount of massaging.

I'm a beginner with Godot as well and just wanted to help where I can :D

rm-code avatar Mar 06 '23 07:03 rm-code