Skip to content

Add camera movement usage examples in multiple languages#690

Open
222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
222448082Ashen:usege-examples/move_camera
Open

Add camera movement usage examples in multiple languages#690
222448082Ashen wants to merge 3 commits intothoth-tech:mainfrom
222448082Ashen:usege-examples/move_camera

Conversation

@222448082Ashen
Copy link

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.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as
    expected)
  • Documentation (update or new)

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

  • Tested in latest Chrome
  • Tested in latest Firefox
  • npm run build
  • npm run preview

Checklist

Please delete options that are not relevant.

If involving code

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings

If modified config files

  • I have checked the following files for changes:
    • package.json
    • astro.config.mjs
    • netlify.toml
    • docker-compose.yml
    • custom.css

Folders and Files Added/Modified

Please list the folders and files added/modified with this pull request and delete options that are not relevant.

  • Added:
    • folder/folder
    • folder/folder
  • Modified:
    • folder/file
    • folder/file

Additional Notes

Please add any additional information that might be useful for the reviewers.

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'.
@netlify
Copy link

netlify bot commented Jan 18, 2026

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit 772425f
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/6973c5d9beb41300079f41d5
😎 Deploy Preview https://deploy-preview-690--splashkit.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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.
@rabail-aamir
Copy link

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. :)

Copy link

@Sparsh300 Sparsh300 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants