Jump to content
Search Community

Gaming Experiment

pfluffernutter test
Moderator Tag

Recommended Posts

3 hours ago, pfluffernutter said:

Just wanted to share this gaming experiment to prove the concept of user control and hit detection for games.

 

Very nice! Former game developer here, and I can tell you that using boxes for hit detection is perfectly fine, which is what Draggrable does. Pixel perfect hit detection is rarely needed, and it can become very complicated.

 

It can also slow your game down!

 

See the Pen 40b18190c60161960d8d12ff4fa71d1d by osublake (@osublake) on CodePen

 

See the Pen bb6983d03e1c3582f9aac486ab9069f8 by osublake (@osublake) on CodePen

 

 

 

3 hours ago, pfluffernutter said:

Not converted this to GSAP3 yet so it still uses the older throwprops plug-in.

 

I didn't see where you are using the throwprops plugin in your code. Anyways, the ThrowPropsPlugin has been replaced with the InertiaPlugin. Not too much difference. Just a slightly different API.

https://greensock.com/docs/v3/Plugins/InertiaPlugin

 

 

  • Like 4
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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