Build a road-crossing game

Assignment Help C/C++ Programming
Reference no: EM133116894

Task Description

You will build a "road-crossing" game. We provide some examples to guide you but you may be creative within the restrictions we describe here.

Note: the attached videos are an important part of the description and this page may receive updates to clarify certain points up to 2 weeks before the due date. Nothing will change, but things may get clarified.

Is our demonstration of the concepts described here. You are encouraged to create your own graphical style or even to repurpose the mechanics in a new context. You should submit just one program with as many features as you can get done. We provide a demo at the bottom of this page.

Features Required

We have listed the features you should implement each week by which you will have learned the material to tackle this feature. Note that you do NOT have to submit your work every week. Only two submissions are there - checkpoint and final submission. See unit schedule for exact dates.

The display window in the program you submit must be 1200 pixels wide and 400 pixels high. All subsequent tasks must be done in a scalable manner, using width and height instead of the actual value those system variables hold, so that the program would work even if the display window size was changed from 1200x400 to, say, 900x600.

Vehicle Design:

You should have a solid horizontal line at y = height/4. This will be refined down the track. More information as we go along in the session. You can't just have an ellipse or rectangle for a vehicle. You should have a nicer design to resemble a car/ truck/ bicycle/ motorcycle, etc. As a guide, you should have at least four to five elements in the vehicle that collectively represent it clearly.

Also, Instead of a vehicle, it can also be some other alternative character, like monsters, space invader characters, asteroids, etc.

There must be a vehicle on the top left of the display window above the solid horizontal line, such that no part of the vehicle is outside the display window, or below the horizontal line.

Instead of using fixed values (like 50, 80, ...), we strongly suggest you use relative values (like height/4, width/8, ...) otherwise refactoring code after subsequent weeks' work is added will be, well, painful.

Note: You can not use images (i.e. Plmage, sprites, png, jpg, gif) for your player. They must be made from Processing shapes (ellipse, circle, square, triangle, arc, etc).

Movement: Week 3
The vehicle should move from the left of the display window to the right and eventually off the screen.

Reset: Week 4
Once the vehicle is completely off the screen, it should "reset". That is, go back to somewhere to the left of the screen. This location should be reasonable so that within the next second or so, it comes back from the left and starts moving to the right of the display window.

Pedestrian: Week 4
A pedestrian should be displayed right down the middle at the bottom of the screen, such that no part of the pedestrian is outside the screen. Again, you can only use Processing shapes and no images.

Move pedestrian: Week 4
The pedestrian should go up, down, left or right when corresponding keys are pressed. Each time it should move by the height of the lane.

Collision-Detection: Week 5
If the vehicle hits the pedestrian (and this should be reasonably accurate), the pedestrian dies (oh no!) and the game ends. A Game Over screen should be displayed and no further events (keys or mouse) should result in any change.

Lanes: Week 6
The solid horizontal line at y = height/4 from week 2 should be replaced with a dashed line.

Scoring: Week 7
Each time the pedestrian successfully crosses the lane (goes above the display window), the score should increase by 1 and get displayed on the bottom right corner of the screen.

Reference no: EM133116894

Questions Cloud

Discuss the effectiveness of insurance policies : Critically discuss the effectiveness of those insurance policies which are currently available on the market from the perspective of an organisation seeking to
Calculate the time period of an investment in a mutual fund : Calculate the time period of an investment in a mutual fund that matured to $63,524.32 yielding interest of $11,732.48 at 6.36% com pounded monthly
Connect simulation assignment : The Bubba Corp. had earnings before taxes of $202,000 and sales of $2,020,000. If it is in the 50 percent tax bracket, its after-tax profit margin is:
Exclusive projects requiring an initial cash outlay : A company is considering two mutually exclusive projects requiring an initial cash outlay of £ 10,000 each and with a useful life of 5 years.
Build a road-crossing game : Build a road-crossing game. We provide some examples to guide you but you may be creative within the restrictions we describe here
List the two important decisions in asset allocation : 1. List the two important decisions in asset allocation on building a portfolio.
Explain difference between an audit and a review engagement : Explain the difference between an audit engagement and a review engagement, and why an audit is not a guarantee the company will succeed
What caused the financial crisis in 2008 : A.What caused the Financial crisis in 2008? Did it end? When? How could this have been prevented?
Explain the risk-assets ratio : A) Explain the risk-assets ratio underlying the Basel capital adequacy framework.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Design a rock-paper-scissors game

Random numbers. Design a "rock, paper, scissors" game, sometimes called "Rochambeau," a game you may have played as a kid. If you don't know the rules.

  The agricultural activities that contribute to a global

The agricultural activities that contribute to a global increase of greenhouse gases in the atmosphere.

  Interactive natural cubic spline

My project depends on previous homework because of that I posted all the questions to be clear, but the main project that I need help with is the homework3

  Sort an array of elements using the quick sort algorithm

Sort an array of 10,000 elements using the quick sort algorithm as follows: sort the array using pivot as the middle element of the array

  Create example c++ code based on working logical flow chart

Use the generate dropdown to create example C++ code based on your working logical flow chart. Also attached the code in a Microsoft Word file or a text file

  Three-step process of using a file

1: How can you get the hexadecimal memory address of a variable (physical location in memory)?

  Determine how many data values to process for each

Determines if the integer is abundant, deficient, perfect or neither and displays a message that includes the integer and which of the 4 categories.

  Write program that creates a candy bar variable called snack

Write a program that declares such a structure and creates a Candy Bar variable called snack, initializing its member to Mocha Munch, 2.3 and 350, respectively.

  What is the output of the algorithm

What is the output of the algorithm if x = 10, y = 15 and z = 20?

  Write the sorted data to the specified output file

How the user would like the contents of the file sorted. The user must be able to sort on any of the columns. in ascending or descending order - Write the sorted data to the specified output file using the same format as the input file.

  Write a program that searches the array of up to 21 values

Write a program that searches the array of up to 21 data values, in the range of 10 - 70 using a linear search. The array is filled with random numbers.

  Write a c program that asks for and reads in two integers

Write a C program that asks for and reads in two integers and then reports if one is a multiple of the other.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd