Skip to content

Conversation

nepal143
Copy link
Contributor

#39

Developer Checklist

  • Adhered to the guidelines outlined in the README & Contributing file.
  • Maintained the correct directory structure (e.g., ProjectName/...yourfiles).
  • Included a README file for enhanced project clarity.
  • Starred ⭐ the repository (optional).

Summary

This PR introduces a 2D platformer game developed using Pygame. The game features player movement (left, right, and jump), a scoring system, and multiple platforms. Additionally, the Pygame version has been specified in the requirements.txt file to ensure consistent installations. The game has been tested with Pygame version 2.1.2, and all features are working as expected.

Screenshot

image

Copy link
Contributor

👋 @nepal143 👋

We're delighted to have your pull request! Please take a moment to check our contributing guidelines and ensure you've filled out the PR template for a smooth process. We will review it soon.

Copy link
Owner

@king04aman king04aman left a comment

Choose a reason for hiding this comment

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

Thanks for your contributions, implementation of 2D Platformer game is well-structured and demonstrates effective use of classes for game entities, however here are few improvement suggestions:

  • Avoid using global variables (e.g., player, platforms). Encapsulate them within the main() function or pass as parameters.
  • Simplify the jump logic by checking vertical velocity instead of relying on a jumping state.
  • Refactor the Coin class to accept parameters for customization, enhancing flexibility.

@king04aman king04aman merged commit 11f6c8f into king04aman:main Oct 24, 2024
1 check passed
Copy link
Contributor

👋 @king04aman 👋

🎉 You've just merged your pull request! We're excited to have you in our community. Keep up the fantastic contributions to the project!

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

Successfully merging this pull request may close these issues.

2 participants