Course Project Title: 3 lane car racing game
Course Project Description:
The aim of our course project is to implement game application various feature of C++ Programming language. So, we have implemented "3 Lane Car Racing Game". We take 3 lane of cars. And these cars are moving in two direction such as upward and downward direction. There is one self car which is totally handle by user. This is also known as player's car. This car can move in all four direction such as left, right, upward and downward. If self car hit by opponent car the game will be over and output score will display on output screen.
Sequential Process:
1. Setup output screen
In this process, using two dimensional array is used to hold the information about game screen. matrix[12][20] means 12 row and 20 column rectangle is used for game screen display. Also, in layout it set the border for the road. So, if x=0 or x=11 then it will print 0 otherwise it will give blank space.
2. Create the Player car (self-car)
Initially create class car. In class car by using draw function players car created. In draw function, we assign xPos and yPos to declare x and y position of the car. To move car left and right side, there is declaring function moveRight() and moveLeft(). In moveRight() and moveLeft() we only change x coordinate of player car and to move upward and downward direction we change y coordinate. Also in car class we have declared chackCollusion() which is use for to check whether self-car is hit by opponent car or not.
3. Creating opponent car
This is the same class as like previous class, except the opponent car only move in vertical direction. So, we need to change only yPos. By increasing yPos car will move in downward direction. There is another function to recreate the car again and again. To create a car on a different lane, a random number is generated and remainder is achieved by using modulo operator for divisor 3 to create opponent car randomly in any lane. For example, if random number generated is 4, 4%3=1 then xPos is made equal to 5. So, opponent car is created in lane 2.
4. Keyboard inputs
Keyboard inputs are used to move the car left, right, up and down direction when keys are pressed.
When pressing keys then car will change its coordinate accordingly. Using GetAsyncKeyState command used along with myListener() function, the keyboard inputs are taken.
These are all the processes to make 3 lane car racing game.
Car Game Demo Link: Demo Video
Car Game Demo Link: Demo Video
Course Project Report Link: https://drive.google.com/open?id=1SpZDrp4CTEX9rUOdPAsqbAqZQh3CjO-x
Topic 1: Some common C++ function and Game output screen layout
Presenter's Info: Name of Student: Prajakta Vijaysinh Yadav
Div.: K
GR No.: 182188
Roll No.: 87
Presentation_Link: https://drive.google.com/a/vit.edu/file/d/1NIZaoo3ZLsA_MyMWIPCe5fxCKca9uAjR/view?usp=drivesdk
Topic 2: More Functions like draw(), drawpoint() and move() etc.
Presenter's Info: Name of Student: Siddharameshwar Pendpalle
Div.: K
GR No.: 1710231
Roll No.: 61
Presentation_Link: https://drive.google.com/file/d/1TPxK3ymj4FCZASw4C-ZOV1GvXhJl3yHO/view?usp=drivesdk
Topic 3: Creating Cars and their movements.
Presenter's Info: Name of Student: Priyan Kotwal
Div.: K
GR No.: 1710853
Roll No.: 41
Presentation_Link: https://drive.google.com/open?id=19krOvbYMZJaPB-EzgVzjzqdU3BSgQ-O_
Topic 4: Keyboard Inputs and myListener(), checkCollusion() functions
Presenter's Info: Name of Student: Dipali Pawar
Div.: K
GR No.: 182085
Roll No.: 58
Presentation Link: https://drive.google.com/a/vit.edu/file/d/1iwjq3uy_XMFlCQ8gsKFtgL0H9RDlS-Xe/view?usp=drivesdk
Topic 5: Integration of all above mentioned programs to car game and introducing score and levels.
Presenter's Info: Name of Student: Pankaj Pawar
Div.: K
GR No.: 1710481
Roll No.: 59
Presentation_Link: https://drive.google.com/open?id=1kqTkGFVChPeoID1AN2axT66sa85Z07x9
Seminar II
Topic: OOP in Pythoon
Prezi Prezentation Link: https://prezi.com/view/abvJLJmT3m7VuUijfcXF/
Thank You!
Seminar II
Topic: OOP in Pythoon
Prezi Prezentation Link: https://prezi.com/view/abvJLJmT3m7VuUijfcXF/
Thank You!
This is good. Could you please share the source code??
ReplyDeleteoh thanks!
DeleteYou can copy the source code from the report given above!
Delete