Skip to content

MatheusBenestorff/Pac-Man

Repository files navigation

ᗧ••• Pac-Man Console Edition

A classic Pac-Man clone developed purely in C# (Vanilla) to run directly in the terminal. This project focuses on solid concepts of Object Orientation, Game Loops, Console Rendering, and Containerization.


alt text


alt text

Tech Stack

C# .NET Docker JSON

  • Language: C# (Vanilla / Pure)
  • Platform: .NET 8.0 Console Application
  • Architecture: OOP (Object Oriented Programming) with Game Loop Pattern
  • Persistence: Save/Load system via native JSON
  • Infrastructure: Docker & Docker Compose

How to create a map

Create a text file with the name "level{number}" and save it in the folder maps/.

Symbol meaning:

  • 'H' = wall

  • '(space)' = point

  • '<' = pacman spawn point

  • 'o' = ghost's spawn point

  • '*' = powerpeelet


How to Run

This game has been containerized to ensure that you can play it without having to install the .NET SDK on your machine.

Prerequisites

  • Docker installed and running.

Running with Docker

  1. Open the terminal in the project's root folder.
  2. Build the game image:
    docker compose build
  3. Run the game:
    docker compose run --rm pacman-game

Running Locally (.NET SDK)

If you have the .NET 8 SDK installed and prefer to run natively:

dotnet run

About

Console Pac-Man Clone in Vanilla C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors