top of page

Create Your First Project

Start adding your projects to your portfolio. Click on "Manage Projects" to get started

A Knight's Tale

Location

Amravati

Date

March 2021

Project type

Graphics Application

A Knight's Tale is a 2D platformer Game cum Graphic Application developed using OpenGL and C++. it took inspiration from the classic Mario game while I was learning to use OpenGL. It is not only a game but a kind of level editor in it as well.

GLFW is used as the windowing library, irrKlang for the sound, and the coding is done in C++ OpenGL.
For each 2D sprite, a class "ObjectSpace" is defined and for each texture that binds with the objectspace, a class "ObjectTexture" is defined.
Each sprite could be resized and translated when in the editor mode.
AABB Collision system is written for collision detection between the sprites. Collectible Collision is also implemented.
spritesheet-based animation system is also written, along with looping animations, with dynamic changing of collider size as animation is played. (only for the player).
Realtime Physics for general movement and jumping is written. Player Actions include: Idle, walk, run, jump, slide, attack.
An Interactable Main Menu and Pause Menu are also implemented.

Source Code: https://github.com/alhad-chatur/Knight

bottom of page