Jump to content
GreenSock

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

my first GreenSock mini Game!

Recommended Posts

My first GreenSock mini Game!

If you have any suggestions for better coding but not to intricate with greensock termimology, just simple gsap things and terms I would be glad to listen to you!

See the Pen jpKwer by makis2404 (@makis2404) on CodePen

  • Like 1
Link to comment
Share on other sites

Try making it more challenging. Maybe start with indirect fire using a paladin. ( @mikel knows what I'm talking about ?) Then you could add in a goal, like having to kill the enemy within a certain amount of time.

 

Indirect fire is a core game mechanic in Worms. Really fun!

 

 

 

 

You can animate a projectile along a parabolic path using the Physics2DPlugin.

https://greensock.com/docs/Plugins/Physics2DPlugin

 

 

See the Pen emjgxw by GreenSock (@GreenSock) on CodePen

 

 

And for very simple collision detection between the projectile and the enemy, you can use Draggable's .hitTest() method.

https://greensock.com/docs/Utilities/Draggable/hitTest

 

 

See the Pen ZOayGO?editors=0010 by GreenSock (@GreenSock) on CodePen

 

 

 

 

  • Like 7
Link to comment
Share on other sites

Here's something I threw together. You might be able to learn from it.

 

Hold down the mouse button and get rid of those pesky bees.

 

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

 

 

 

 

 

 

 

  • Like 5
Link to comment
Share on other sites

Nice job! The best way to learn is to build something small that you enjoy doing.

  • Like 1
Link to comment
Share on other sites

Fun!!!

 

However I love bees, granted here in Chile we don't have those nasty killer ones, in fact you have to pester a bee quite a bit in order to get a sting, but still. Perhaps some trouble-making-looking wasps? :D

  • Like 1
  • Haha 1
Link to comment
Share on other sites

On 8/4/2018 at 8:10 PM, Rodrigo said:

Fun!!!

 

However I love bees, granted here in Chile we don't have those nasty killer ones, in fact you have to pester a bee quite a bit in order to get a sting, but still. Perhaps some trouble-making-looking wasps? :D

 

 

Hehe. But those are giant bees, with a stinger larger enough to impale a human.

 

Bees usually aren't a problem where I live either. The main reason I used them is because I already had an animation for them in this post.

 

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

 

 

  • Like 3
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.
×