Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
pfluffernutter

Gaming Experiment

Recommended Posts

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

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

 

 

 

See the Pen XWbJpzB by spaul (@spaul) on CodePen

  • Like 2

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
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.

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×