Haunter's Candy Hunt

A 3D adventure where Haunter searches for rare candies in a mysterious forest

Haunter's Candy Hunt Game Screenshot
About the Game

In the Pokémon world, rare candies are hard to come by, but Haunter has discovered a forest full of them! Play as Haunter in this 3D adventure game to collect as many candies as you can while navigating through a mystical forest filled with obstacles and surprises.

C++OpenGL3D Graphics
Controls
MovementWASD
Camera ControlArrow Keys
Look AroundMouse
Respawn TreesT Key
Respawn CandyC Key

Key Features

Collision Detection

Advanced collision detection using bounding sphere algorithms to handle interactions between Haunter, trees, and candies.

Camera Control

Intuitive camera controls allowing players to look around and explore the 3D environment with smooth transitions.

High-Quality Textures

Custom textures applied to 3D models to create a visually appealing and immersive game world.

Skybox Implementation

Seamless skybox rendering that creates a sense of depth and atmosphere in the game environment.

Development Insights

Technical Challenges

One of the initial challenges was properly loading and rendering 3D models with their textures. The Haunter model, for instance, was initially only rendering the eyes due to how the OBJ file was structured with separate meshes for different parts of the model.

Implementing the skybox required creating a cube map and properly mapping the textures to create a seamless environment that enhances the game's atmosphere.

Lessons Learned

This project provided valuable experience in 3D graphics programming, particularly in understanding how 3D models are structured and rendered in a game environment. Working with OpenGL shaders and understanding the graphics pipeline were crucial aspects of development.

The collision detection implementation taught me about spatial partitioning and optimization techniques for real-time collision checking in a 3D space.

Gallery

Game Textures

Custom textures applied to 3D models

Game Skybox

Skybox implementation creating immersive environment

Resources & Credits