Welcome to AngryBirdsStyle, a small implementation of the well-known game Angry Birds.
- Enjoy 3 exciting levels with 3 difficulties to test your skills.
- Use the intuitive mechanics: Drag the bird backward to adjust the hook's force and release it when you find the perfect angle.
- Need a fresh start? No problem! Simply click the 'Reset' button to restart the current level.
Play now on itch.io!
- Drag bird: Adjust hook's force.
- Release: Launch the bird.
- Reset button: Restart the current level.
- Vector Calculation: The script calculates the direction and magnitude of the bird's movement when dragged (See line 31).
- Coroutine for Delayed Release: It uses a coroutine to release the bird after a short delay, simulating the slingshot mechanic (See line 63).
- Scene Management: The script handles scene restarts when all objects are static or when the bird hits the boundary (See line 71).
- Collision Detection: Detects collisions with other objects, specifically with the bird, to calculate damage and health depletion (See line 30).
- Health Management: Reduces the pig's health based on collision velocity and destroys it when health is depleted (See lines 37-50).
- Sprite Change: Changes the pig's sprite when its health is below a certain threshold (See line 46).
- Scene Reloading: Provides a simple functionality to reset the game by reloading the current scene (See line 22).