anonymous
  • anonymous
Hi. I am creating a game and am new to it. How do I create collision and put in arrays of an object in netbeans?
Computer Science
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

KonradZuse
  • KonradZuse
Collision detection is done using "intersects." For example Rectangle.intersects(line);
KonradZuse
  • KonradZuse
Array of objects is liek any otehr array. Object[] o = new Object[10]; Rectangle[] r = new Rectangle[10];
anonymous
  • anonymous
ok. But what is the [10] mean and after Rectangle[] is the r there because it is what rectangle starts with? @KonradZuse

Looking for something else?

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

More answers

KonradZuse
  • KonradZuse
it seems like you need to learn more about the language itself.. I'm assuming you're using Java With Netbeans? [10] is an array of 10. r is the name of the object... That's basic.
anonymous
  • anonymous
Yes I am pretty new to the language. I just started a couple months ago. Im doing this for a project at school. And yes I am using Java with Netbeans
KonradZuse
  • KonradZuse
You can say Rectangle Tuna_Fish_sammich = new Rectangle(); if you wanted...
anonymous
  • anonymous
you can get help from video tutorials on http://thenewboston.org/

Looking for something else?

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