BACKGROUND ANIMATION Two ways to animate the background Moving the viewport Moving the texture
ANIMATION OF SPRITE SHEET WE HAVE ANIMATED_SPRITE CLASS FOR CHARACTER ANIMATION. THERE WERE TWO WAYS FOR CHARACTER ANIMATION USING SPRITE SHEET WITH UNEVEN FRAMES. ONE WAY WAS TO SAVE CORIDNATES OF FRAME PIXELS IN A NOTEPAD FILE AND THEN USE IT ACCORDINGLY. ANOTHER WAY WAS TO EQUAL THE FRAME OF CHARACTER SHEET BY USING IMAGE EDITTING SOFTWARE.
MULTIPLE PRESS AND RELEASE KEY Two characters individual keys Using the technique of buffer and bool. We use an array of bool type and using it accordingly. Handling the movement of other character with this array.
FLIPPING THE CHARACTER Introducing a new technique for the other character of the game. Making a function “ultasprite” We invert the frame of sprite sheet. Flipping the the texture coordinates.
COLLISION DETECTION Several ways to detect the collision in the game Pixel perfect collision Box bounding collision Box bounding collision using vector The distance technique
SOME FLAWS OF DETECTION AND CHOOSING THE SUITABLE TECHNIQUE Which technique to use…….. Pixel perfect too complex Box bounding using vector is insufficient A little innovation in box bounding …… Using the distance formula according to the game…………..
Your consent to our cookies if you continue to use this website.