Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Brick hitting in 3D breakout

Author
Message
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 27th Aug 2004 07:33
Ive started a 3D breakout game.I was making a 2D one, but it seems like it would be easier to detect which side it hits in 3d. But this is my first time using 3D and I dont no anything about angles
Heres the code

Good thing everyone here is a figment of my imagination.

Zone Chicken
20
Years of Service
User Offline
Joined: 25th Jan 2004
Location: `~-..-~`~-..-~`
Posted: 27th Aug 2004 07:52 Edited at: 27th Aug 2004 08:03
It's actually really simple to do it in 2d just make your sprite bat, let's say 30 x 10 then make two more solid black sprites
about 5 x 10 just place the black sprites over the bat on either edge. Then do something like



this would give you a strait return on the bat center and the two angles on the left and right, then just move the angle sprites along with your bat.
TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 27th Aug 2004 08:14
thnx but i might aswell go with 3d

Good thing everyone here is a figment of my imagination.

TravisP
20
Years of Service
User Offline
Joined: 30th Jun 2004
Location: Behind you, with a knife!
Posted: 27th Aug 2004 12:07
*bump*

Good thing everyone here is a figment of my imagination.

Login to post a reply

Server time is: 2024-09-22 22:24:45
Your offset time is: 2024-09-22 22:24:45