News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Mario Collision Sprite question

Started by shaldan, December 05, 2005, 02:17:44 PM

Previous topic - Next topic

shaldan

hello to hitchhikr,

Can you please explain to me, why do you use in Sprites_Animations your Enter2DMode procedure each Draw loop ?
I tried to remove it together with Leave2DMode and it worked too. Only one problem occured, when Mario is too long in collision he together with "enemy" :) dissapears. Can you tell more about this problem and its solution ?

thanks

hitchhikr

I'm using an orthographic matrix to display 2d pictures (which are stored standard textures), so that the coordinates correspond exactly to the ones of the screen pixels / 1000.

Without that, the gfx would be stretched as the coordinates will go from -1 (left & top borders) to 1 (right & bottom borders) so it would impossible (or rather difficult) to know the exact pixel location of the pictures (the sprites here), which is a problem for precise collisions testing.