Forum de la communauté SFML

Bindings - autres langages => C => Discussion démarrée par: Angelous le Mai 01, 2020, 02:45:13 pm

Titre: Hitbox-Boîtes englobante-CSFML
Posté par: Angelous le Mai 01, 2020, 02:45:13 pm
Bonjour à tous,
Voilà je suis en train de développer un élément de jeu précis en C avec la CSFML mais pour cela j'ai un système de collision à mettre en place avant cela.

La détection en elle-même n'est pas un problème j'en suis capable mais ce que je souhaiterais dans un 1er temps c'est de pouvoir afficher visuellement la hitbox de mes sprites et de pouvoir modifier la taille de celle-ci pour chaque spirtes (voir image).

J'ai regarder la documentation, chercher sur internet essayer des bouts de code mais je n'arrive pas à trouver comment m'y prendre.
Si vous pouviez me dire quel fonction, structure je dois utiliser pour être sur la bonne voie ou éventuellement me donner le bout de code qui me permet d'obtenir ce que je souhaite j'en serais soulager ^^.
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Laurent le Mai 01, 2020, 03:28:30 pm
Tu devrais préciser ta question. Qu'est-ce qui te pose problème exactement ? Qu'est-ce que tu as déjà fait ? Est-ce que ta hitbox est un rectangle, ou une forme bizarre comme dans ton screenshot ?
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Angelous le Mai 01, 2020, 07:14:33 pm
1) Ce qui me pose problème c'est que je n'arrive pas à afficher une hit box, comme le montre mon image sous Paint( une hit box appliquer sur mes Sprites sur laquelle j'applique une couleur quelconque sur son contour) je dirais même que je n'arrive pas à coder une hit box tout court je sais juste que j'ai besoins de
sfRectangleShape_create();
pour la crée mais je n'arrive pas à l'appliquer sur ne serait-ce que l'un de mes Sprites .

2)Ce que j'ai déjà fait ben en l'occurrence rien concernant la hit box car j'en suis vraiment au début du début de mon projet j'ai juste mes items placé, mon perso qui se déplace et le BG de mon Inventaire qui s'affiche quand j'appuie sur I.

3)En grande majorité oui ma hit box est un Rectangle mais je peux envisager sous forme de Cercle également pas comme mon screenshot mdr j'ai eus la bougeotte désolé ^^ :)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Laurent le Mai 01, 2020, 09:06:13 pm
Si tu as déjà la hitbox définie (sous forme de sfFloatRect ?), puisque tu nous dis que tu sais faire les collisions, et que tu sais utiliser un sfRectangleShape (sinon cf. la doc, c'est vraiment pas compliqué), alors où est le problème ? Il suffit de créer le rectangle, lui donner ta hitbox en paramètre, et le dessiner. Je ne vois pas bien ce qui te bloque là.
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Angelous le Mai 02, 2020, 02:10:55 pm
Ben je sais faire la condition de collision avec le théorème AABB mais appliquer une hitbox à un sprite pour pouvoir tester la condition de collision c'est ça que je sais pas coder cette partie là que je sais pas faire et la seule raison pour laquelle je sais que je dois utiliser
sfRectangleShape_create();
c'est pake j'ai regarder la doc mais même avec la doc je n'y arrive pas c'est pour ça que je cherchais conseil ou la solution au près du forum  :) :) mais avec ce que tu m'as dit hier je vais essayer certains truc en espérant réussir :).
Et si tu veux les seules fois où j'ai pus faire le test de collision ben 1ére fois j'ai pas eu besoin de hitbox en sois car j'ai juste eu besoin de la position de la souris et la 2e c'étais en utilisant PHASER 3 qui lui t'applique la hit box automatiquement et la dessine du coup j'ai pas eu à la coder non plus.
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: maicleusa le Avril 01, 2024, 04:59:06 am
This article is truly excellent! You presented the information in a clear and logical manner, helping me gain a deeper understanding of the topic. slope (https://slope3d.io)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Marri68 le Avril 23, 2024, 05:47:56 am
Pour afficher visuellement la hitbox de vos sprites avec la CSFML, vous pouvez utiliser des formes géométriques telles que des rectangles ou des cercles pour représenter les hitboxes.
 slope (https://slopeonline.io)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: jacackky le Avril 27, 2024, 08:02:12 am
Magnificent website. Lots of useful statistics proper right right here. I’m sending it to three friends ans additionally sharing in delicious. And certainly, thanks for your sweat!
먹튀검증 (https://thebrennanhouse.org)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: jackkyyy le Avril 27, 2024, 08:25:04 am
Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.ThanksYou make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.
바카라사이트 (https://casinocorps.com/baccaratsite/)
Titre: 온라인카지노
Posté par: jackkyyy le Avril 27, 2024, 08:59:09 am
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.ThanksThis is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here!
온라인카지노 (https://1stars.com/)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 09:04:20 am
I don’t even realise how I ended up proper right here, however I concept this publish modified into excellent. Fototapety I do now not apprehend who you're but absolutely you’re going to a famous blogger if you aren’t already Cheers!
먹튀폴리스신고 (https://www.fknapredak.com/)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 09:19:13 am
How can i make bigger the variety of a Wireless N router? I have an Xtreme N hand held router (Dlink). I should amplify the reach in the wireless signal. I understand a way to do it for the G signal. I need to know how to do the idea for an N sign. Is it feasible employ ordinary N routers as repeaters. If so, a way to configure them. Thanks for that data.
온라인카지노추천 (https://shopthehotdeals.com/)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: jacackky le Avril 27, 2024, 09:22:41 am
I’m impressed, I need to say. Very rarely do I stumble upon a blog that’s both informative and exciting, and let me tell you, you’ve hit the nail on the pinnacle. Your blog is essential, the problem is some thing that now not enough people are speakme intelligently approximately
먹튀사이트 (https://meogtwiclass.com)
Titre: 바카라사이트
Posté par: jackkyyy le Avril 27, 2024, 09:31:26 am
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work.Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene.
바카라사이트 (https://onlinecasinokr365.com/bacaratsite/)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 09:37:25 am
Oh my goodness! A notable submit dude. Thanks However We’re experiencing problem with ur rss . Do no longer apprehend why Not able to sign on in it. Will there be really all people getting identical rss catch 22 situation? Anybody who knows kindly respond. Thnkx
토토사이트추천 (https://www.totocri.com/)
Titre: 토토시대
Posté par: jackkyyy le Avril 27, 2024, 09:39:40 am
Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.ThanksYou make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.
토토시대 (https://totosidae.com)
Titre: 토토시대
Posté par: jackkyyy le Avril 27, 2024, 09:40:04 am
Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.ThanksYou make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.
토토시대 (https://totosidae.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: jackkyyy le Avril 27, 2024, 09:41:01 am
Thanks for taking the time to discuss this, I feel strongly that love
토토시대 (https://totosidae.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 09:48:56 am
It’s captivating to consider this malfunction. As possible locate, movers Adsense with regard to Content fabric, which in turn describes that specific classified ads turning into around the web sites in that you’ve composed articles, is honestly shown preliminary. In this text you will have a look at the volume of article mind indexed via the first column. When a page opinion is generally precisely like the net site take a look at, that is honestly not necessarily usually the case. To get a extra special distinction of an internet page affect, observe Yahoo Adsense help, test out The Adsense Consideration and then mouse click on on A person’s Adsense Article.
토토사이트순위 (https://todongsan.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 10:07:29 am
*When I to begin with commented I clicked the -Notify me at the same time as new remarks are added- checkbox and now each time a commentary is brought I get 4 emails with the equal commentary. Is there any manner you may eliminate me from that service? Thanks!
사설토토사이트 (https://hugo-dixon.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 10:34:06 am
Oh my goodness! A notable submit dude. Thanks However We’re experiencing problem with ur rss . Do no longer apprehend why Not able to sign on in it. Will there be really all people getting identical rss catch 22 situation? Anybody who knows kindly respond. Thnkx
안전놀이터 (https://panavtec.me/)
Titre: 메이저놀이터순위
Posté par: jackkyyy le Avril 27, 2024, 10:39:00 am
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work.Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene.
메이저놀이터순위 (https://totocommunity24.com)
Titre: 먹튀신고
Posté par: jackkyyy le Avril 27, 2024, 10:48:38 am
Thanks for taking the time to discuss this, I feel strongly that love and read more on this topic. Wow, What a Excellent post. I really found this to much informatics. It is what i was searching for.I would like to suggest you that please keep sharing such type of info.ThanksYou make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.You make so many great points here that I read your article a couple of times. Your views are in accordance with my own for the most part. This is great content for your readers.
먹튀신고 (https://www.meogtwisearch.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 10:57:57 am
I hope this helps almost anyone searching for this type of topic. I think this website is the best for such topics. Good work and quality of article.
먹튀검증커뮤니티 (https://oktotocommunity.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 11:10:01 am
I don’t even realise how I ended up proper right here, however I concept this publish modified into excellent. Fototapety I do now not apprehend who you're but absolutely you’re going to a famous blogger if you aren’t already Cheers!
토토사이트조회 (https://totositefamily.com)
Titre: 안전토토사이트
Posté par: jackkyyy le Avril 27, 2024, 11:24:18 am
When choosing an online casino game site, it's important to research and verify the site's reputation and safety. Look for sites that are licensed and regulated by recognized regulatory bodies, offer secure payment options, and have a responsive customer support team. Additionally, always gamble responsibly and within your means.
안전토토사이트 (https://www.meogtwimalu.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: jackkyyy le Avril 27, 2024, 11:30:09 am
I’m impressed, I need to say. Very rarely do I stumble upon a blog that’s both informative and exciting, and let me tell you, you’ve hit the nail on the pinnacle. Your blog is essential, the problem is some thing that now not enough people are speakme intelligently approximately
온라인카지노순위 (https://casinohunter24.com)
Titre: 온라인카지노순위
Posté par: jackkyyy le Avril 27, 2024, 11:31:07 am
I’m impressed, I need to say. Very rarely do I stumble upon a blog that’s both informative and exciting, and let me tell you, you’ve hit the nail on the pinnacle. Your blog is essential, the problem is some thing that now not enough people are speakme intelligently approximately
온라인카지노순위 (https://casinohunter24.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 11:41:18 am
Nice post! This is a very nice blog that I will definitively come back to more times this year! Thanks for informative post.Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work.
메이저놀이터 (https://totogung.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: jacackky le Avril 27, 2024, 11:46:12 am
How can i make bigger the variety of a Wireless N router? I have an Xtreme N hand held router (Dlink). I should amplify the reach in the wireless signal. I understand a way to do it for the G signal. I need to know how to do the idea for an N sign. Is it feasible employ ordinary N routers as repeaters. If so, a way to configure them. Thanks for that data.
메이저사이트 (https://totositepang.com)
Titre: 사설토토
Posté par: jackkyyy le Avril 27, 2024, 11:51:48 am
Youre so cool! I dont suppose Ive examine something like this in advance than. So exquisite to discover any man or woman with some actual mind on this difficulty. Realy thank you for starting this up. This internet site is some thing this is desired on the net, someone with a touch bit originality. Useful project for bringing some factor new to the internet!
사설토토 (https://totojijon.com/sasultoto/)
Titre: 사설토토검증
Posté par: jackkyyy le Avril 27, 2024, 11:52:14 am
One problem I need to touch upon is that weight loss software speedy can be performed through the perfect eating regimen and exercise. Someone’s size no longer most effective impacts the advent, but also the general top notch of lifestyles. Self-esteem, despression signs and symptoms, fitness dangers, at the facet of physical talents are impacted in an boom in weight. It is viable to simply make the whole thing right however nevertheless advantage. In this type of scenario, a systematic trouble can be the perpetrator. While excessive food and in no way enough frame exercise are normally responsible, not unusual medical situations and extensive prescriptions may additionally appreciably increase length. Thx to your positioned up proper right here.
사설토토검증 (https://totojijon.com/sasultoto/)
Titre: 카지노사이트목록
Posté par: jackkyyy le Avril 27, 2024, 12:00:05 pm
There are very a notable deal of information this way to reflect onconsideration on. It surely is a tremendous factor to retrieve. I offer the mind above as wellknown suggestion but actually there are questions together with the one you retrieve the spot that the most important factor are going to be getting work carried out in sincere properly religion. I don?T decide if high-quality practices have emerged round matters consisting of that, however Almost truly that the process is clearly described as a honest sport. Both boys and women have the effect of most effective a second’s satisfaction, through-out their lives.
카지노사이트목록 (https://www.casinosesang.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 12:01:14 pm
QuickBooks is the biggest accounting software in the world. One of the most common error series in QuickBooks is the “H” series.  we’ll tell you How to fix Error Code H505.  If you’ll read this blog, then it means you’ll definitely solve this error.Visit our website to know How to fix quickbooks Error Code H505
메이저놀이터 (https://nakedemperornews.com/majornoliteo/)
Titre: 메이저토토사이트
Posté par: jackkyyy le Avril 27, 2024, 12:07:35 pm
Awesome and truely exciting positioned up right here. I very lots experience web sites that need to do with dropping weight, in order that is right to me to find out what you've got right here. Keep up the exquisite artwork! The manner to shed pounds fast
메이저토토사이트 (https://totohighkr.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 12:17:22 pm
Interesting post. I Have Been wondering about this issue, so thanks for posting. Pretty cool post.It 's really very nice and Useful post.ThanksThis is my first time visit here. From the tons of comments on your articles,I guess I am not only one having all the enjoyment right here!
먹튀검증 (https://infogram.com/meogtipolice-1hdw2jpqqmzyj2l?live)
Titre: sdsd
Posté par: jackkyyy le Avril 27, 2024, 12:17:44 pm
Awesome and truely exciting positioned up right here.
แทงบอลออนไลน์ (https://sportsbetonline365.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 12:27:52 pm
We are really grateful for your blog post. You will find a lot of approaches after visiting your post. I was exactly searching for. Thanks for such post and please keep it up. Great work.Really a great addition. I have read this marvelous post. Thanks for sharing information about it. I really like that. Thanks so lot for your convene.
토토사이트추천 (https://www.nashvillehotrecord.com)
Titre: 먹튀검증업체
Posté par: jackkyyy le Avril 27, 2024, 12:31:33 pm
It’s captivating to consider this malfunction. As possible locate, movers Adsense with regard to Content fabric, which in turn describes that specific classified ads turning into around the web sites in that you’ve composed articles, is honestly shown preliminary. In this text you will have a look at the volume of article mind indexed via the first column. When a page opinion is generally precisely like the net site take a look at, that is honestly not necessarily usually the case. To get a extra special distinction of an internet page affect, observe Yahoo Adsense help, test out The Adsense Consideration and then mouse click on on A person’s Adsense Article.
먹튀검증업체 (https://eatrunhero.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 12:49:58 pm
When choosing an online casino game site, it's important to research and verify the site's reputation and safety. Look for sites that are licensed and regulated by recognized regulatory bodies, offer secure payment options, and have a responsive customer support team. Additionally, always gamble responsibly and within your means.
먹튀대피소 (https://touch-of-classic.com)
Titre: 먹튀뱅크
Posté par: jackkyyy le Avril 27, 2024, 12:56:29 pm
I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information.I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.Great write-up, I am a big believer in commenting on blogs to inform the blog writers know that they’ve added something worthwhile to the world wide web!..I havent any word to appreciate this post.....Really i am impressed from this post....the person who create this post it was a great human..thanks for shared this with us.
먹튀뱅크 (https://meogtwibank.com)
Titre: 먹튀사이트
Posté par: jackkyyy le Avril 27, 2024, 01:00:06 pm
I’m simply commenting to allow you to recognize what a exceptional discovery my cousin’s toddler obtained reading the weblog. She observed hundreds of factors, which covered how it's miles need to personal an great training person to get brilliant mother and father effects check decided on not possible subjects. You actually exceeded readers’ expected effects. Thank you for rendering such beneficial, stable, instructional or maybe fun steerage for your issue count to Lizeth.
먹튀사이트 (https://meogtwijikimi.com)
Titre: asdad
Posté par: jackkyyy le Avril 27, 2024, 01:02:21 pm
QuickBooks is the biggest accounting software in the world. One of the most common error series in QuickBooks is the “H” series.  we’ll tell you How to fix Error Code H505.  If you’ll read this blog, then it means you’ll definitely solve this error.Visit our website to know How to fix quickbooks Error Code H505
먹튀검증사이트 (https://townmt.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 01:06:10 pm
One extra essential problem is that if you are a mature person, tour insurance for pensioners is something you want to truely examine. The greater mature you are, lots extra at risk you’re for purchasing some thing bad occur to you even as abroad. If you are not necessarily included by means of some complete insurance coverage, you may have quite some severe challenges. Thanks for discussing your top recommendations on this net internet site.
먹튀검증 (https://www.dependtotosite.com)
Titre: Re: Hitbox-Boîtes englobante-CSFML
Posté par: Owen le Avril 27, 2024, 01:14:16 pm
One extra essential problem is that if you are a mature person, tour insurance for pensioners is something you want to truely examine. The greater mature you are, lots extra at risk you’re for purchasing some thing bad occur to you even as abroad. If you are not necessarily included by means of some complete insurance coverage, you may have quite some severe challenges. Thanks for discussing your top recommendations on this net internet site.
사설토토 (https://www.magazinetoto.com)
Titre: ffasas
Posté par: jackkyyy le Avril 27, 2024, 01:15:33 pm
Youre so cool! I dont suppose Ive examine something like this in advance than. So exquisite to discover any man or woman with some actual mind on this difficulty. Realy thank you for starting this up. This internet site is some thing this is desired on the net, someone with a touch bit originality. Useful project for bringing some factor new to the internet!
먹튀검증커뮤니티 (https://meta-metacritic.net)