anonymous
  • anonymous
Well, I need a function that makes a tetr shape rotate over its center
Mathematics
schrodinger
  • schrodinger
See more answers at brainly.com
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.

Get this expert

answer on brainly

SEE EXPERT ANSWER

Get your free account and access expert answers to this
and thousands of other questions

angela210793
  • angela210793
where do u get these???????????????? O.o
anonymous
  • anonymous
just trying to program a tetr and i need this function ^^
anonymous
  • anonymous
it should rotate when u pick right or left arrow keys,

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
i think that i should make an rectangle and then put the shape into of it and shapes and rectangels x and y should be same. then i should make the rectangle turn over its square
anonymous
  • anonymous
and i think that i can allot this rectangle to rectangles to make the collapsion test and to make this shape really rotate :)
anonymous
  • anonymous
WELL HERE ITS THE THINg i think
1 Attachment
anonymous
  • anonymous
just look at the thing i am thinkining on it i mean rotate.jpg
amistre64
  • amistre64
well, rotation of an image is tricky; but you can cheat by having an image of it in each position and then flipping thru the images
amistre64
  • amistre64
like a movie screen
amistre64
  • amistre64
if (keypress == rotateleft) {imageN = imageN+1}
anonymous
  • anonymous
aha!
anonymous
  • anonymous
but whats N means?
amistre64
  • amistre64
N just means whatever number it is; you get the next image i the sequence
anonymous
  • anonymous
hmm i don2T got it sarry :(
amistre64
  • amistre64
image1 = up; image2 = left; image3 = down ; image4 = right display image3 when rotate left; display image2 when rotate left; display image1 when rotate 3 times to the right; display image2, then image3, then image4
anonymous
  • anonymous
ahh now i got it
anonymous
  • anonymous
so images change splaces with eacht other kk
anonymous
  • anonymous
its a CHEAT!! :(
amistre64
  • amistre64
if you are moving sections of defined areas; then have an array built up if area locators
amistre64
  • amistre64
its an effect lol
anonymous
  • anonymous
yea :D xd
anonymous
  • anonymous
but its the easier way of it but without this trick how can we rotate this?
amistre64
  • amistre64
similar method to the cannon rotating; converting polar coordinates into cartesians
amistre64
  • amistre64
but unless you have the computational power to keep track of all the points in an array, it gets messy
anonymous
  • anonymous
but the center of the shape is orign this time ye?
amistre64
  • amistre64
yes
anonymous
  • anonymous
kk
anonymous
  • anonymous
thank you and i have to leave now bb

Looking for something else?

Not the answer you are looking for? Search for more explanations.