Build the remaining functionality of our stacker game

Assignment Help Other Subject
Reference no: EM132680705

Assignment
We now build the remaining functionality of our stacker game. NB: If you did not do the HD part of assignment 1, you will not need to add it until you get to the D part of assignment 2.
demo.mov

NOTE: A worked solution to assignment one will be released in the next couple of days.

(Almost) Pass Marks

Add a background for the game in the form of a grid. The grid "cell" must be 90 pixels in size in both dimensions when the screen is 1280x720. Note: Do not draw your grid with rectangles or squares, draw it with lines only. We will not adjust the size of your screen when marking this assignment, it only needs to work for 1280x720.

Instead of drawing just one square that moves back and forth, have 4 squares in a vertical stack move back and forth. They should move as one and when any of them hit the edge of the window, all of them change direction. NB: You must use a loop to avoid repeating the same code 4 times when drawing 4 squares. Squares should have a black border and be orange (the same orange as assignment one).

The most useful module is loops.

Pass/Credit Marks
When the player hits the space key, the currently moving stack should freeze and a new stack will appear just to the right of the frozen one. The new stack has four squares (unless you have done the next part) and their locations is exactly 90 pixels to the right of the last stack. The frozen one stays in place while the new stack moves up and down in the same way the first one did. Next time the player hits the space key, this new stack freezes and another appears just to it's right. This continues on until there is no more room for stacks to appear and the game resets back to having just one stack of 4, as if beginning the game.
Hint: You will have neater code if you choose the right variables to help keep track of these stacks. We recommend you keep an array of starting positions which is initially empty and each time a new stack is frozen, a slot in that array is used to keep its position.
The most useful module is compound data.
(High) Distinction Marks
Before you can do this part, you need to ensure your stacks are moving in steps as required in the HD part of assignment one.
Since the stacks move in steps, it is possible to stop them all at the same place - if you are quick enough! If the user stops the stack when it is not lined up with the previous stack, only the overlapping part should survive and be frozen. When the next stack is created, it is shorter to match the overlapping part. When the overlapping part is down to zero, the game is over. If the user successfully gets to the right hand side of the screen, they have won.
Because the squares move in steps,there will always be a whole number of squares overlapping, not partial squares.
Hint: Again, this is _much_ easier with the right variables. We recommend keeping one variable to remember where the first stack stopped, and an array of integers that tell you ... something else useful :)
The most useful module is all of them. This advanced task requires careful use of many features.
Submission
You must submit your complete Processing sketch as a single pde file ass2.pde by the due date.
Constraints
Why do these exist?
• You cannot use any extra processing libraries or plugins.
• You cannot use classes
• You cannot use multiple tabs or multiple files
• You cannot use transformations such as rotate,translate, scale
• You cannot use images
• You must submit a single pde file

In Case of Faulty Submission
Unfortunately, we can't accept re-submissions if you submit your assignment incorrectly. If you submit an empty file, the wrong file, a zip file, a file in the wrong format, etc - you will get zero marks. It is your responsibility to check your submission prior to the due date. Any and all submissions made after the due date will have a late penalty applied (as specified in the unit guide) unless a valid special consideration request has been approved.

Attachment:- stacker game.rar

Reference no: EM132680705

Questions Cloud

Describe the systems model of evaluation research : Describe the "systems model" of evaluation research. In what way can such a model inform public policy in criminal justice? Evaluation research seldom takes.
What is the advantage brain cells have : What is the advantage brain cells have when not covered with myelin?
What is the single compound entry for the transaction : Sold a six-month subscription (starting on November 1), collecting cash of $390, plus sales tax of 4%. What is the single compound entry for this transaction.
Prepare journal entries to record the transactions : A company is authorized to issue 750,000 shares of $5 par value common stock. Prepare journal entries to record the following selected transactions
Build the remaining functionality of our stacker game : Build the remaining functionality of our stacker game. NB: If you did not do the HD part of assignment 1, you will not need to add
How can police subculture conflict with the police officer : How can police subculture conflict with the police officer's values and ethics? Can this conflict be prevented? Support your argument with at least two.
Find how is the iability allocated : Find How is the $300,000 liability allocated? The equal AB partnership's only asset is Building #1, which has a fair market value of $800,000
How are gblocks different than primers : How are GBlocks different than Primers?
Contrast the passage of polar versus non polar : Compare and contrast the passage of polar versus non polar substances across the plasma membrane. (use images attached below and rubric)

Reviews

Write a Review

Other Subject Questions & Answers

  Ethical theories of aristotle and immanuel kant

Compare and contrast the ethical theories of Aristotle and Immanuel Kant. What are the strengths and weaknesses of each of these positions? Which one do you believe is the most likely to be correct? Why

  What is a human being and the nature of the universe

In 750-1,000 words, answer each of the worldview questions according to your own personal perspective and worldview: (a) What is ultim ate reality?

  What are the romantic relationships included in your family

What are the romantic relationships included in your families, and how are they represented? Do these kinds of relationships change over time? Why?

  Topic - Industrial IoT Solutions in Supply Chain Management

Prepare 15 pages Description on given topic. Topic - Industrial IoT Solutions in Supply Chain Management

  How does your knowledge of parenting styles

How does your knowledge of parenting styles better inform you about the children with whom you might interact?

  How many enrolled members are the in the tribe

What form of government do they practice? Can both men and women be on the governing body?

  Quest formula in ancient literature was performed by heroes

Pick person who you consider a "seeker" in our culture and discuss the following. What is the being sought. Why is it being sought. What trials are involved

  Research and ethnographical research

How does the interpretivist methodology deal with the inevitable biases that any researcher brings to his or her research?

  Identify and describe the two companies you have researched

BUGEN 5930 Business, Society and the Planet Assignment, Federation University, Australia. Identify and describe the two companies you have researched

  What is the broken windows theory of policing

What's the broken windows theory of policing? How did the New York Police Department implement their new theory of policing

  How do you think the ell must have felt

How do you think the ELL must have felt? What are some of struggles you had with your student? What are some of struggles you think your student had? What are some ways you think you could have overcome some of these challenges?

  How have the operations of production companies evolved

How have the operations of production companies evolved over time for past 10 years?

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