Skip to content

pritam-987/Rougelike-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cdd620aΒ Β·Β Β· Apr 10, 2026

History

20 Commits
Apr 10, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 10, 2026
Apr 1, 2026
Apr 1, 2026
Mar 26, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026
Apr 1, 2026

Repository files navigation

Introduction

What is this?

This is a clone of the original Rogue game which I have made in tcod and python.

Game Summary

You can play as "@" the player, explore dungeon, level up and have fun.

  • @ Player
  • o Orc
  • T Troll
  • ! Potion
  • >gt; Stairs

Installation

Requirements

Python 3.8+ tcod libraryy

Install dependencies:

pip install tcod

Clone the repository:

git clone https://github.com/pritam-987/rouge.git
cd rouge


How to Play

Getting Started

Run the game:

Dowonload the main.exe file from release page and run the file.

From the main menu:

  • Press "N" to start a new game

Combat

Combat is automatic when you move into an enemy.

Enemies attack you during their turn.

Use scrolls and potions strategically to survive.


Leveling Up

Killing enemies grants XP and XP unlocks new levels. You can select powerups after leveling up.


πŸ“ Project Structure

rouge/
β”œβ”€β”€ main.py              # Entry point, game loop, save/load
β”œβ”€β”€ engine.py            # Core game engine class
β”œβ”€β”€ event_handlers.py    # Input handling and UI
β”œβ”€β”€ action.py            # Player actions (move, attack, etc.)
β”œβ”€β”€ entity_factories.py  # Predefined actors and items
β”œβ”€β”€ setup_game.py        # New game setup and menu
β”œβ”€β”€ procgen.py           # Dungeon generation
β”œβ”€β”€ game_map.py          # GameMap and GameWorld classes
β”œβ”€β”€ entity.py            # Entity, Actor, Item classes
β”œβ”€β”€ color.py             # Color definitions
β”œβ”€β”€ tile_types.py        # Tile definitions
β”œβ”€β”€ equipment_types.py   # Equipment slot enum
β”œβ”€β”€ equippable.py        # Equippable item logic
β”œβ”€β”€ exceptions.py        # Custom exceptions
β”œβ”€β”€ message_log.py       # Message logging system
β”œβ”€β”€ render_functions.py  # Rendering helpers
β”œβ”€β”€ render_order.py      # Rendering order enum
β”œβ”€β”€ utils.py             # Utility functions
β”‚
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ai.py            # Enemy AI
β”‚   β”œβ”€β”€ equipment.py     # Equipment management
β”‚   β”œβ”€β”€ fighter.py       # HP / attack / defense
β”‚   β”œβ”€β”€ inventory.py     # Player inventory
β”‚   β”œβ”€β”€ level.py         # XP and leveling system
β”‚   β”œβ”€β”€ consumable.py    # Usable items
β”‚   └── base_components.py
�── base_components.py

Stairs

>
t;

Press Shift + . to acess the stairs.