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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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