Skip to content

Conversation

@sananoureen35
Copy link

@sananoureen35 sananoureen35 commented Sep 20, 2025

Description

I added a new usage example for Option To World.
The example demonstrated the difference between world-space drawing (content that moves when the camera pans) and screen-space UI (HUD that stays fixed). It included C++, C# (top-level), C# (OOP) files, a one-sentence .txt description.

Type of change

  • Documentation (update or new)

How Has This Been Tested?

I verified the example locally in two steps. First, I ran C++ and both C# variants individually using SplashKit templates.

I confirmed the controls worked as expected:
Arrow keys panned the camera.
C reset the camera to (0,0).
SPACE toggled a screen-fixed HUD panel.
ESC quit.

Site integration
Ran npm run dev, confirmed the page rendered with code tabs and GIF.
Built and previewed the static site: npm run build & npm run preview.
Confirmed no console errors and that all code files were non-empty.

Testing Checklist

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

Checklist

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

Folders and Files Added/Modified

src/assets/usage-examples-code/graphics/option_to_world/option_to_world-1-camera.cpp
src/assets/usage-examples-code/graphics/option_to_world/option_to_world-1-camera.cs
src/assets/usage-examples-code/graphics/option_to_world/option_to_world-1-camera-oop.cs
src/assets/usage-examples-code/graphics/option_to_world/option_to_world-1-camera.txt
public/usage-examples-images-gifs/graphics/option_to_world-1-camera.gif

option_to_world-1-camera

@netlify
Copy link

netlify bot commented Sep 20, 2025

Deploy Preview for splashkit ready!

Name Link
🔨 Latest commit adb1a23
🔍 Latest deploy log https://app.netlify.com/projects/splashkit/deploys/68e631a58e1f360008876a5b
😎 Deploy Preview https://deploy-preview-655--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.

Copy link

@dhruvjanghu dhruvjanghu left a comment

Choose a reason for hiding this comment

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

Peer Review

I've reviewed the option to world usage example, great work in this contribution, although there are some consistency issue in different files, i have added detailed comments in the code file, other than that the existing files are great.

And Python File is missing. Please add the python file

Checks

  • All required files are present.
    • Example Title (.txt)
    • C++ code
    • C# code (top-level statements)
    • C# code (Object-Oriented Programming)
    • Python code
  • Code correctly uses Splashkit functions.
  • Code clearly demonstrates the function.
  • All versions maintain the same structure and comments.

Code Tests done

  • C++ code ran correctly.
  • C# top level code ran correctly.
  • C# OOP code ran correctly.
  • Python code ran correctly.

Website Tests done

  • npm run build
  • npm run preview

@sananoureen35 sananoureen35 force-pushed the feat/option-to-world-1-camera branch from c4c412d to adb1a23 Compare October 8, 2025 09:40
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.

2 participants