Hope to see in the future of Chili tutorial Fart Annoyed

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
colencon
Posts: 35
Joined: February 13th, 2014, 2:24 pm

Hope to see in the future of Chili tutorial Fart Annoyed

Post by colencon » February 16th, 2017, 8:31 am

Does anyone try this game. This game is really addictive to play. I wish i could have my own full custom of this game. Hope to see in the future of Chili tutorial Fart Annoyed :mrgreen: :mrgreen: :mrgreen:

https://www.youtube.com/watch?v=rJIboUDLqck

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Hope to see in the future of Chili tutorial Fart Annoyed

Post by albinopapa » February 16th, 2017, 10:24 am

That looks fun to make.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

albinopapa
Posts: 4373
Joined: February 28th, 2013, 3:23 am
Location: Oklahoma, United States

Re: Hope to see in the future of Chili tutorial Fart Annoyed

Post by albinopapa » February 18th, 2017, 12:04 am

Let see what we would need:

Collidable surfaces:
RectF
Triangle
Circle
2D vectors
Reflection vector formula
Counters for each collidable surface
An array of balls

Player sets initial direction of the ball spawner.
Balls reflect off sides and top of screen, balls are returned back to player when hitting bottom
Balls reflect off rect and triangle edges
Triangles can be either flat bottom or flat top with hypot pointing down or up and to the left or down or up and to the right.


Let's start with that.
If you think paging some data from disk into RAM is slow, try paging it into a simian cerebrum over a pair of optical nerves. - gameprogrammingpatterns.com

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: Hope to see in the future of Chili tutorial Fart Annoyed

Post by chili » February 18th, 2017, 4:55 am

Generally how 2D physics engines work is that you have convex polygon shapes and circles. I guess the trickiest part would be the reflection formula, but that only requires the special case of rotation by pi/2 (90deg for you heathens) and dot product.
Chili

Post Reply