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
https://www.youtube.com/watch?v=rJIboUDLqck
Hope to see in the future of Chili tutorial Fart Annoyed
-
- 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
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
-
- 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
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.
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
Re: Hope to see in the future of Chili tutorial Fart Annoyed
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