We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>
+ Link For Assignments, GDBs & Online Quizzes Solution
+ Link For Past Papers, Solved MCQs, Short Notes & More
Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion
How to Add New Discussion in Study Group ? Step By Step Guide Click Here.
Assignment No. 04
CS602: Computer Graphics
Total Marks: 20
Please read the following instructions carefully before submitting assignment:
It should be clear that your assignment will not get any credit if:
The objective of this assignment is to;
This assignment is based on our previous assignments. Please see the given startup code for this assignment (in attached folder Startup_Code) which is same as solution of Assignment No.3 with slight modification. Open Assigment4.dev project file in Dev-C++ and after successful compilation and execution, you will see the output. You can see the code in order to understand how coordinates of the Ball and Bar are modified to introduce motion effect. You can see that the Bar’s movement is controlled via keyboard Left and Right arrow keys.
After understanding it’s working, you need to further modify the code as desired in this assignment.
Your task is to slightly modify the provided code to get desired output as shown in the executable “Desired_Output.exe”. This is more like Arkanoid Game. In start-up code, the Bar is moving but its inactive and you have to make it functional i.e. the Ball shall change its direction after hitting the Bar. Player will lose the game if Ball hits the ground and Game will restart by displaying proper message. Play score shall be displayed in the corner and it gets updated each time the Ball hits the Bar.
Hint: You just need to add few lines of code to control movement of Ball by seeing if it hits or miss the Bar.
You are required to submit your solution through LMS in zip format containing two files.
An MS Word document containing screenshot of your program output/execution and your own Student-ID must be visible in the screenshot.
.+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
ya tu assignment he ha
Please koi idea sol to de. ye assignment bht mushkil hai dev c++ mei nhi chal rha hai
Uni walay batate hi nhi k kaise dev c++ chalana hai
mjy nai lgta k iss bar kisi ny koi solution upload krna......
hmmm aesa hi lag raha hai
plz koi to help kero
complete solution on page 3....check it
coding krni h just m pr ati ni hy
hy doll es dafa ap k b helppp chhye ..............
hmmm assignmt wqy mushkil hy
Please koi idea solution post kar de... mere dev c++ mei bht errors hain uni k assignment bhi nhi chalte us mei
if (ch==75 && bar_x>5)
if (ch==77 && bar_x < getmaxx()-150)