Skip to content

tosuki/rathunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🐭 Rat Hunt

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.


🧠 Techniques & Design Approach

This project combines both Object-Oriented Programming (OOP) and Data-Oriented Design (DOD) principles to create a clean and flexible architecture.

Why this approach?

  • 🎯 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.


πŸ“Œ Project Goal

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!

About

A simple rat hunt game written in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages