Original Post
Hi all, i was wondering if you could help me.
Now this may seem like a cmpletely newbie question and as i''m a bit of a noob at this that would be about right.
Right, i''m currently coding a very simple breakout clone using the directx 8.1 API. I have probably the most simple problem in the world for you guys to solve, but for me my brain keeps frying when i approach it.
To mention what i have done so far:
I have used a vertex buffer to create the bat and mapped a texture to it, the bat works perfectly, movement v.basic animation ..the works.
The problem is rendering the ball and the blocks, now your probably wondering why? Well every example i see of this game is done using pens and brushes in dx5,6 etc. This is all very well and i would love to use them but i cannot find a single example of someone creating this 2d game in dx8 or 9, with simple collision detection.
Here is a possible problem, i create 10 blocks in a line by mapping a texture to a certain location on screen in my rendering code, how then do i go about destroying just one of those blocks? Where are its boundaries so i can delete it once the ball hit it? These may seem like simple problems and if so i really need help trying to solve them.
Thanks in advance.