Author Topic: Birds game  (Read 704 times)

caballero

  • Member
  • *****
  • Posts: 1976
  • Matrix - Noah
    • abre ojos ensamblador
Re: Birds game
« Reply #15 on: July 25, 2022, 10:53:31 PM »
Hi. Another step:

I have reduced the ball by several percentages to simulate its distance when we throw it. The path followed by the ball is a parabolic shot, with an initial speed of 20m/s and an angle of 60ยบ. The result is that it initially goes up slightly and then goes down until it reaches a certain point, where it disappears.

Only one ball can be thrown at a time. At the moment, the ball does not hit any bird. That will be the next step.

A pending task would be to discolor the bitmap when we reduce it to give a better sense of depth. Although it wouldn't be difficult to do, I don't know I will do it, because I'm starting to get bored of this game.

Each time the ball crosses a layer a rearrangement should be made so that the birds and the ball appear in front or behind, where appropriate. But the ordering method that I have implemented is somewhat slow and perhaps not worth it, considering that every time a new bird is created a sort is executed.
The logic of the error is hidden among the most unexpected lines of the program

caballero

  • Member
  • *****
  • Posts: 1976
  • Matrix - Noah
    • abre ojos ensamblador
Re: Birds game
« Reply #16 on: July 27, 2022, 12:02:49 AM »
I have added a few things:

- A little scoring system at the top left, that I don't like much, so I will change it for another.
- Sounds for throwing the ball and when hit a bird.
- The collision test is not working very well yet.
The logic of the error is hidden among the most unexpected lines of the program