Coding / Programming Videos

Post your favorite coding videos and share them with others!

Help creating collisions : javascript

Source link

Hello everyone, right now I’m having trouble creating platform collisions on the 2nd level of a game I’m making. It for some reason just doesn’t detect it. I’ve already created the first level and everything went smooth. I am not using canvas btw.

This is what the first level looks like and how I want the second level to look like:

https://i.gyazo.com/d23d044473e7fdee8751688afcea4336.mp4

This is what the second level looks like:

https://i.gyazo.com/8ca960e489c15496959ecbb70771ed89.mp4

Here is the code:

https://codepen.io/renato-tavares/pen/yGQwyN

If there is anything I need to explain, let me know! Thanks in advance 🙂

Source link

Bookmark(0)
 

Leave a Reply

Please Login to comment
  Subscribe  
Notify of
Translate »