Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add hasCollision() (and it's dependencies) to check collision based on pixel #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nimah79
Copy link

@nimah79 nimah79 commented Jan 27, 2020

This is an implementation of per-pixel collision, which can be used for any textures with any shapes.

This method uses alpha map, which the alpha channel value of every pixel in the texture are stored in it. It also can be used for rotated textures, or textures with resized SDL_Rects.

It may be still buggy. It's good to check it before merging.

@Borjianamin98
Copy link
Collaborator

سلام.
شما دو بار دو تا پول فرستاده‌اید که توی هر دو یک کار مشترک انجام داده‌اید.
از طرفی شما در اخرین پول خود، تمامی کامنت‌ها را تغییر دادید که جدای از سلیقه‌ای بودن یا نبودن، کار بررسی را دشوار می‌کند. خواهشا یک پول بزنید که تنها در آن تغییرات مربوط به اضافه‌شدن تشخیص برخورد باشد تا بتوانیم راحت‌تر آن را بررسی کنیم.
در صورت استفاده از رفرنس یا منبعی، خواهشا آن را به صورت کامنت در متن کد بگذارید که برای آیندگان هم علت آن مشخص باشد.
ممنون.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants