Inspiration The project was inspired by classic arcade games where players collect items to score points. The aim was to create a simple yet engaging game that incorporates elements of time management and score tracking. The idea was to build something that is both fun and functional, while also providing a mechanism for tracking high scores.
What it does This game allows players to control a character on the screen to collect randomly placed items. The game features:
A 1-minute countdown timer. Real-time score tracking. Collision detection between the player and items. High score tracking, which is displayed after the game ends. How we built it We built the game using Python and the Pygame library, which provides tools for creating 2D games. The key components include:
Player and Item Setup: Defined player and item sizes, colors, and collision detection. Game Logic: Implemented movement controls, score incrementing, and collision handling. Timer Functionality: Incorporated a countdown timer to limit the game duration. High Scores Storage: Utilized a local text file to save and display high scores. Challenges we ran into Timer Implementation: Ensuring accurate countdown and game end conditions based on elapsed time was a bit tricky. Collision Detection: Handling accurate collision detection between the player and items required fine-tuning. High Scores Display: Designing and displaying high scores in a readable format while ensuring the game remains responsive. Accomplishments that we're proud of Functional Game Mechanics: Successfully created a game with working player controls, item collection, and timer. High Scores System: Implemented a system to save and display high scores, which adds a competitive element to the game. User Interface: Designed a clean and functional user interface for entering player names and viewing high scores. What we learned Pygame Fundamentals: Gained deeper insights into game development basics using Pygame, including event handling, rendering, and collision detection. File Handling: Learned how to manage and manipulate text files for storing game data. User Experience Design: Improved skills in designing user interfaces and handling user input in a game environment. What's next for Untitled Enhanced Graphics: Plan to improve game visuals with better graphics and animations. Additional Features: Explore adding new features such as power-ups, levels, and different types of items. Online High Scores: Consider integrating an online leaderboard to track high scores across different players and sessions. Mobile Compatibility: Look into adapting the game for mobile devices to reach a broader audience.
Built With
- game
- python
Log in or sign up for Devpost to join the conversation.