Skip to content

archon-sammael/snake_rogue

Repository files navigation

Python Roguelike

A simple roguelike game built with libtcod (tcod).

Features

  • Procedural dungeon generation
  • Player movement with WASD or arrow keys
  • Basic entity system
  • Simple tile-based graphics

Installation

  1. Make sure you have Python 3.7+ installed
  2. Install the required dependencies:
    pip install -r requirements.txt

Running the Game

Run the game with:

python main.py

Controls

  • WASD or Arrow Keys: Move around
  • Numpad: Alternative movement controls
  • ESC: Quit the game

Game Structure

  • main.py: Entry point and game loop
  • engine.py: Core game engine
  • entity.py: Entity classes for players and NPCs
  • game_map.py: Map generation and rendering
  • input_handlers.py: Keyboard input handling
  • actions.py: Game action system

How to Play

  1. You are represented by a white @ symbol
  2. Yellow @ symbols are NPCs
  3. # symbols are walls
  4. . symbols are floors
  5. Move around and explore the procedurally generated dungeon!

Extending the Game

This is a basic foundation that you can extend with:

  • Combat system
  • Items and inventory
  • Multiple levels
  • Monsters with AI
  • Spells and abilities
  • And much more!

Dependencies

  • tcod: The libtcod library for Python, providing terminal-based graphics and utilities for roguelike games

About

Test for developing an small roguelike

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages