Skip to content

AngryBirds style small game implementation. 3 levels of difficulties.

Notifications You must be signed in to change notification settings

ParkPulse-dev/AngryBirdsStyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngryBirdsStyle

Welcome to AngryBirdsStyle, a small implementation of the well-known game Angry Birds.

Description

  • 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!

Controls

  • Drag bird: Adjust hook's force.
  • Release: Launch the bird.
  • Reset button: Restart the current level.

Explanation of Algorithms, Components, and Techniques Used in Scripts

AngryBird Script

  • 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).

Pig Script

  • 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).

Restart Script

  • Scene Reloading: Provides a simple functionality to reset the game by reloading the current scene (See line 22).

About

AngryBirds style small game implementation. 3 levels of difficulties.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published