Jump to content

Collision Detection


nibzAU
 Share

Recommended Posts

Hi All,

Im trying to  teach myself Js by teaching myself to build a game.

im not following any tutorial just thinking what i need then thinking how it may be done and testing it out...so.. its all probably completely wrong :)

 

ive made a player and ground and jumping and movement. i want to be able to test other platforms now

the way i have it i would need to create a test for every platform and ground but im sure there's a way i could do this with an array or loops or something..

any one give me some pointers? i dont want the answer but more of what i need to look into.

Messy code: https://jsfiddle.net/3nchftvL/

thanks

 

 

** im sure my jumping is implemented badly but plan to go back and fix once i learn more.

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