Code Monkey home page Code Monkey logo

maze-project's Introduction

3D Maze Game

3D Maze Game is a simple maze game implemented using raycasting technique. It is written in C and utilizes the ncurses library for terminal-based rendering.

Getting Started

Prerequisites

To compile and run the game, you need to have the following software installed on your system:

  • C compiler (e.g., GCC)
  • ncurses library

Installation

  1. Clone or download the repository.
  2. Make sure you have the ncurses library installed on your system.
    • On Ubuntu, you can install it by running: sudo apt-get install libncurses-dev
    • On macOS, you can install it using Homebrew: brew install ncurses
    • For other operating systems, please refer to the documentation specific to your system.
  3. Compile the source code by executing the following command: gcc -std=c99 -o game main.c game.c map.c rendering.c input.c utils.c -lncurses

Running the Game

  1. After successful compilation, run the game by executing the following command: ./game
  2. The game should start, and you will be presented with a 3D maze.
  3. Use the arrow keys to navigate through the maze and try to reach the goal.
  4. Press 'Q' to quit the game.

Contributing

Contributions to improve the game are welcome! If you have any suggestions, bug fixes, or feature enhancements, feel free to submit a pull request or open an issue.

License

This project is licensed under the MIT License.

Acknowledgements

This project was inspired by the classic maze games and utilizes the raycasting technique made popular by early 3D games.

Author

Isaac Afolabi

maze-project's People

Contributors

isaac-afolabi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.