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

feat: @headless-game-engine/canvas #24

Open
gjtiquia opened this issue Jun 29, 2023 · 0 comments
Open

feat: @headless-game-engine/canvas #24

gjtiquia opened this issue Jun 29, 2023 · 0 comments
Assignees

Comments

@gjtiquia
Copy link
Owner

Canvas abstraction, which can be implemented by other potential packages
eg.

  • Node CLI would implement Canvas and use console.log
  • HTML Ascii game would implement canvas and set the inner html line by line with text
  • HTML 2D game would implement canvas and use the HTML canvas element
  • React Native Skia would implement canvas and use the React Native Skia Canvas

some common functionality to support

  • DrawRect(Vector2 bottomLeftPosition, Vector2 size)

the rendering order dictates the sorting order, ie. what is rendered first will be in the back, probably not directly the responsibility of Canvas?

@gjtiquia gjtiquia self-assigned this Jun 29, 2023
@gjtiquia gjtiquia converted this from a draft issue Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant