Confirming your payment

Skip to content

Sign up now and get .

Competency-Based Questions (CBQ) · Question 1 of 40

Competency: Application A game designer works with a game window that is 800 pixels wide and 600 pixels tall.

Question 13 marksMedium

Competency: Application

A game designer works with a game window that is 800800 pixels wide and 600600 pixels tall. The game engine gives every pixel a position (u,v)(u, v) measured from the top-left corner of the window: uu is counted to the right and vv is counted downwards. For the maths of the game, the designer uses ordinary coordinate axes with the origin at the centre of the window, the xx-axis pointing right and the yy-axis pointing up, with 11 unit equal to 11 pixel. Three sprites sit at the pixel positions A(650,100)A(650, 100), B(150,420)B(150, 420) and C(400,520)C(400, 520). (Hypothetical data.)

(a) Show that the pixel at (u,v)(u, v) has maths coordinates x=u−400x = u - 400 and y=300−vy = 300 - v.

(b) Find the maths coordinates of AA, BB and CC, and state the quadrant, or the axis, on which each one lies.

(c) Describe, using uu and vv, the part of the window that lies in the second quadrant of the maths axes.