Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created simple usage examples for 5 Geometry functions #329

Open
wants to merge 2 commits into
base: usage-examples
Choose a base branch
from

Conversation

ctrlvish
Copy link

@ctrlvish ctrlvish commented Dec 7, 2024

Simple geometry usage examples for line related functions

Splashkit Functions:
line_length
line_length_squared
line_mid_point
line_to_string
lines_intersect

  • Title and explanation (.txt)
  • C++ code
  • C# code (top-level statements)
  • C# code (Object-Oriented Programming)
  • Python code
  • Screenshot
  • Simple, clear demonstration of the function
  • Code uses Splashkit functions
  • Tested in Chrome and Firefox

Copy link

netlify bot commented Dec 7, 2024

Deploy Preview for splashkit-usage-examples ready!

Name Link
🔨 Latest commit c976455
🔍 Latest deploy log https://app.netlify.com/sites/splashkit-usage-examples/deploys/6759a3d81fd2180008267bd3
😎 Deploy Preview https://deploy-preview-329--splashkit-usage-examples.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 site configuration.

Copy link

@EthanRin EthanRin left a comment

Choose a reason for hiding this comment

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

I've reviewed this PR and the functions showcase in each usage example is great. Although there are some areas that can be improved on:

  • The Color functions used in the C# OOP examples should use its OOP version. For example, the color red would be Color.Red rather than SplashKit.ColorRed().
  • In the lines_intersect examples, the variable names could be improved on since each lines is represented by alphabets, the variables could also follow the same format. For instance, it would be startPointA rather than startPoint1 to provide clarity.

@ctrlvish
Copy link
Author

Hi @EthanRin, thanks for peer reviewing my PR. I've made the changes you've requested, kindly review.

@ctrlvish ctrlvish requested a review from EthanRin December 11, 2024 14:39
Copy link

@huyhuynh2319 huyhuynh2319 left a comment

Choose a reason for hiding this comment

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

I've reviewed the usage examples. Everything ran without issue.

Checks

  • All required files are present.
  • Title and explanation (.txt)
  • C++ code
  • C# code (top-level statements)
  • C# code (Object-Oriented Programming)
  • Python code

Tests done

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

Copy link

@EthanRin EthanRin left a comment

Choose a reason for hiding this comment

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

I've reviewed this usage example and have tested each implementation of the program across different languages.
The code is well-structured and is consistent throughout each implementations. I approved of this PR.

Checklist

  • Code uses SplashKit functions
  • Code demonstrates uses of the functions
  • Python code ran as expected.
  • C# OOP code ran as expected.
  • C# Top Level code ran as expected
  • C++ Code ran as expected

Files required

  • Python code
  • C# OOP code
  • C# Top Level code
  • C++ Code
  • Screenshot of the program running
  • Title and description

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