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

[WIP] Pong example game #108

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

[WIP] Pong example game #108

wants to merge 1 commit into from

Conversation

DrDub
Copy link

@DrDub DrDub commented Dec 24, 2023

Hello,

I'm learning Magnum and trying mosra/magnum#102

  • Simple 2D game (Pong) -- texture loading, input handling, movement calculation, simple animations

This is a base code that shows three triangles and can be played with the keyboard. The "ball" bounces and the computer follows the ball with its paddle.

I'd appreciate some guidance on what you had in mind here w.r.t. to

  • texture loading (what textures do you want on a pong game?)
  • movement calculations (I'm calculating the movements using Vector2, is there some other functionality from Magnum you want to see here?)
  • simple animations (where would you want to see the animation? what type of animation? where in Magnum should I look for the animation functionality?)

This is supposed to be a "simple" example but it starts to cover more and more ground. It currently does not include showing the scores but that'll in a way subsume the 'text' example.

Finally, any guidance in how to get the VertexColorGL2D to make a rectangle rather than a triangle will be appreciated Ball.cpp#56.

[And please comment on the code, I'll be happy to rewrite it in a different direction.]

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.

1 participant