Add camera movement usage examples in multiple languages#690
Open
222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
Open
Add camera movement usage examples in multiple languages#690222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
Conversation
Provides example code for moving the camera to a specific point in the game world using SplashKit. Examples are included in C#, C++ (SplashKit), Pascal, and Python, along with a brief description. The camera centers on a player sprite when the spacebar is pressed and resets to the origin with 'M'.
✅ Deploy Preview for splashkit ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Updated the API pages script to generate unique anchor links for overloaded functions by appending '-functions' to their anchors. Also ensured function names are deduplicated before processing. Added a new example image for camera usage.
Renamed usage example files from 'rectangle_around-1-example' to 'rectangle_around_circle-1-example' across multiple languages for clarity. Updated usage-example references and added a new entry for 'rectangle_around_circle' in usage-example-references.json. Improved fallback logic in getGroupName in api-pages-script.cjs to format group names from uniqueName if no match is found.
|
This PR looks totally fine as a SplashKit “usage example” set (same concept shown across C#, C++/Python/Pascal, plus top-level C#). The logic is clear, it demonstrates MoveCameraTo, and the HUD using OptionToScreen() is a nice touch. :) |
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.
Provides example code for moving the camera to a specific point in the game world using SplashKit. Examples are included in C#, C++ (SplashKit), Pascal, and Python, along with a brief description. The camera centers on a player sprite when the spacebar is pressed and resets to the origin with 'M'.
Description
Please include a summary of the changes and the related issue. Please also include relevant
motivation and context. List any dependencies that are required for this change.
Type of change
Please delete options that are not relevant.
expected)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can
reproduce. Please also list any relevant details for your test configuration.
Testing Checklist
Checklist
Please delete options that are not relevant.
If involving code
If modified config files
Folders and Files Added/Modified
Please list the folders and files added/modified with this pull request and delete options that are not relevant.
Additional Notes
Please add any additional information that might be useful for the reviewers.