Docsity

lab project in clanguage, Lab Reports of C programming

Partial preview of the text

Download lab project in clanguage and more Lab Reports C programming in PDF only on Docsity!

School of Computing: Programming Fundamentals - Lab

Programming Fundamentals

Semester Fall 2025

FAST School of Computing

School of Computing: Programming Fundamentals - Lab Endless Runner Game in C++

Introduction

The Endless Runner Game is a popular genre of video games where the player character keeps running ahead, while the game environment continuously changes to provide new challenges.

Game Objective

The objective of the game is to cover the maximum distance possible while collecting coins and avoiding randomly generated obstacles. The player character will have a limited capacity to move sideways and forward. The game will end when the player runs out of lives.

Gameplay

The game will be played on a 2D map with a rectangular shape. The player character will move automatically, and the player will control the character's movement by moving sideways (3-sideways) to avoid obstacles and in a very limited capacity player would be able to move backwards and forwards. The game environment will not be random, but the obstacles and shapes will be randomly generated. The speed of the game will increase as the player covers more distance in milestones of 1000m, 2000m and beyond.

Game Rules

  1. The game will start with the player character running automatically, and the player can control the character's movement by moving sideways, forwards.
  2. The player character will have three lives at the start of the game, and they will lose a life if they hit an obstacle.
  3. The game will end when the player runs out of lives.

School of Computing: Programming Fundamentals - Lab

Project Submission

The project must be completed individually, not in groups. Make a folder with the convention “SECTION_Name_ROLLNO” and place game-release.cpp in that folder. Submit that folder on GOOGLE CLASSROOM. Plagiarism is strictly prohibited. Any code generated through artificial intelligence (such as ChatGPT or other such tools) will lead to an F in the project or possibly the course The provided file contains functions to draw various shapes and use the required functions. Additionally, it includes player movement mechanics. You are encouraged to utilize these functions and apply your creativity to enhance the game experience. You can execute the functions using bash commands or the make command in Linux. For Windows and Visual Studio, you can install the necessary libraries to run the functions successfully.

Deadline

Assigning date: 20th^ November, 2025 Final Submission: 2nd December, 2025 Run the given commands in terminal which has been opened in the directory To install libraries: bash install-libraries.sh To comiple the project: make To run the project: ./game-release