Rat Hunt is a simple game developed as part of a game development class exercise.
The objective is straightforward: a rat must hunt pieces of cheese that appear randomly within the game frame.
This repository contains the full source code of the project.
This project combines both Object-Oriented Programming (OOP) and Data-Oriented Design (DOD) principles to create a clean and flexible architecture.
-
π― Logic-Rendering Separation
Entities are managed at the logic layer, allowing rendering to become a secondary concern. This makes it easier to change or extend how entities are displayed without altering core logic. -
π State Decoupling
Each layer is designed to react to changes in the game logic, rather than drive them. This makes the game state easier to manage and more modular. -
π§± Modular Design
New entities, behaviors, or renderers can be added with minimal changes to existing code.
The main goal was to practice designing a simple game architecture while learning about clean code practices in game development. The project focuses more on structure and clarity than visual polish.
Feel free to explore the code, fork the project, or adapt it to your own experiments!