Jump to content

I want to make a game like angry bird


kumareshRajalingam
 Share

Recommended Posts

Pick a physics library and look through any example they have which contains a few entities (e.g. http://schteppe.github.io/p2.js/demos/collisions.html), and you're 95% there.

Most physics libraries (such as P2, matterJS etc) work in a similar fashion, you create a world/engine/simulation, fill it with entities and then render it.

Your job will be to add a force to a certain entity (your bird/s) based on angle and some sort of power, let the simulation play out and handle some collision events i.e. when objects collide with enough force they should explode and probably grant you a score, keep track of your 'pig' entities and when they've all exploded you've finished the level.

I'm not suggesting this is in any way easy, just that there are quite a few excellent physics libraries out there that handle the most complex bits of a game like this for you.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...