We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ 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.

CS602 - Computer Graphics Assignment No. 04 last date for assignment submission is Tuesday, August 11, 2015.


Assignment No. 04
Semester: Spring 2015

CS602: Computer Graphics

 

Total Marks: 20

 

Due Date:11/08/2015

Instructions

Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Solution is copied from any other source.

Objective

The objective of this assignment is to;

  • Learn to develop a small and simple Arkanoid Game.

 

Assignment

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

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.

Submission

You are required to submit your solution through LMS in zip format containing two files.

  • Your Project in zipped form containing both .dev and .cpp file.

An MS Word document containing screenshot of your program output/execution and your own Student-ID must be visible in the screenshot.

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2809

.

+ 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)

Attachments:

Replies to This Discussion

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

plz help

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(kbhit()){
                        count++;
            if(count%spd==0)
            {
            setcolor(RED);
                print_ball();
            setcolor(RED);
                count=0;
                if(direction==TOPRIGHT)
                {
                    ballcol+=2;
                    ballrow--;
                }
                else if(direction==TOPLEFT)
                {
                    ballcol-=2;
                    ballrow--;
                }
                else if(direction==BOTLEFT)
                {
                    ballcol-=2;
                    ballrow++;
                }
                else if(direction==BOTRIGHT)
                {
                    ballcol+=2;
                    ballrow++;
                }
                ball_pos_check();
                if(ballcol<7) //leftbar
                {
                    if(ballrow<lefttop-1||ballrow>lefttop+6)
                    {
                
                    int ch=getch();
               if (ch==75 && bar_x>5)
                  bar_x-=10;
               if (ch==77 && bar_x < getmaxx()-150)
                  bar_x+=10;
                    }
               
            }

RSS

Latest Activity

+M.Tariq Malik liked +¢αяєℓєѕѕ gιяℓ's discussion MCM301 Quiz No. 1 2020
6 seconds ago
Profile Iconsanaakram, Andleeb javed and Zaynah Marjaan joined Virtual University of Pakistan
2 minutes ago
+¢αяєℓєѕѕ gιяℓ added a discussion to the group MCM101 Introduction to Mass Communication
16 minutes ago
+¢αяєℓєѕѕ gιяℓ replied to +¢αяєℓєѕѕ gιяℓ's discussion Quiz No. 1 in the group PSY101 Introduction to Psychology
18 minutes ago
Muhammad Uzair replied to +¢αяєℓєѕѕ gιяℓ's discussion CS506 - Web Design and Development Assignment # 1 Due Date Jun 06, 2020 in the group CS506 Web Design and Development
25 minutes ago
Habiba replied to Habiba's discussion CS502 Assignment No. 1 Spring 2020 Due date 28-05-2020 in the group CS502 Fundamentals of Algorithms
1 hour ago
Sufyan Ali posted a discussion
1 hour ago
Muhammad Uzair joined +M.Tariq Malik's group
1 hour ago
Mehak Aziz liked +M.Tariq Malik's discussion EDU602 Educational Leadership and Management Online Quiz No 01 spring 2020 Solution Discussion
1 hour ago
Habiba replied to Habiba's discussion CS502 Assignment No. 2 Spring 2020 Due date 13-06-2020 in the group CS502 Fundamentals of Algorithms
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion ECO403 Macroeconomics Assignment No 01 Spring 2020 Solution & Discussion Due Date: 05-06-2020 in the group ECO403 Macroeconomics
1 hour ago
Muhammad Azam liked Asima Mughal's discussion MTH 601 Assignment#1 solution due date is 8-6-2020
1 hour ago

Today Top Members 

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.