Giter VIP home page Giter VIP logo

raoufslv / opengl-project-3d-game Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 55.32 MB

A classic puzzle implemented in OpenGL. Help the farmer transport a wolf, a sheep, and a cabbage across the river without breaking the rules. Features advanced graphics rendering, intuitive gameplay, and an engaging user interface. Ready to play and explore the logic behind the famous River Crossing Puzzle.

C++ 79.12% C 20.42% Objective-C 0.43% CMake 0.03%

opengl-project-3d-game's Introduction

River Crossing Puzzle Game

Demo

Youtube Demo

Introduction

The River Crossing Puzzle Game is a classic puzzle that involves a farmer transporting a wolf, a sheep, and a cabbage across a river. The rules stipulate that the farmer cannot leave the wolf alone with the sheep, and the sheep cannot be left alone with the cabbage, as the wolf would eat the sheep, and the sheep would eat the cabbage.

This project implements the River Crossing Puzzle Game using OpenGL, GLFW, Glad, GLM, and other libraries for graphics rendering, along with additional features such as text rendering and user interface elements.

Initial Design

Project Setup

Dependencies

  • OpenGL
  • GLFW
  • Glad
  • GLM
  • stb_image
  • gltext
  • Assimp
  • SFML

Test the game

if you are on windows you can download the .rar file from this link, and run the .exe file to lunch the game

Installation

  1. Clone the repository:
    git clone https://github.com/raoufslv/River-Crossing-Puzzle-windows.git
    cd river-crossing-puzzle
    

Build Instructions

Build the project using your preferred build system.

Graphics Rendering

The graphics rendering is powered by OpenGL, with models loaded using Assimp and textures applied for a visually appealing experience.

Text Rendering

Text rendering is implemented using the gltext library, providing clear communication with the player.

Game Logic

The game logic adheres to the rules of the River Crossing Puzzle. Objects are represented, and their movements are controlled in compliance with the puzzle's constraints.

How to Play

  1. Run the compiled executable.

  2. Use the following keys:

    • W: Move the wolf
    • T: Move the sheep
    • K: Move the cabbage
    • Enter: Start the game
  3. Successfully transport all elements to the other side without breaking the rules to win.

Screenshots

Game Won Victory! All elements safely transported.

Game Lost Game lost due to rule violation.

Conclusion

In conclusion, this project successfully implements the River Crossing Puzzle Game, showcasing the integration of various graphics technologies. It provides an interactive and visually appealing experience for players.

Feel free to contribute, report issues, or provide feedback.

Credits

opengl-project-3d-game's People

Contributors

raoufslv avatar

Stargazers

 avatar Lynda SAYOUD avatar  avatar  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.