Monday, January 16, 2017

java - Implementing a hook (Like pudge in Dota)


I'm coding a new game, which involves hooking.


Ive been testing a couple of ideas now and im quite stuck.


The player can throw a "hook" which fires away in the aimed direction, until it hits something, it will bounce on some obstacles and will return to the player if hitting other obstacles. While the hook is in the air, the player can move as he/she wishes, and hook will after a certain time be pulled back to the player.


I don't know if you guys have played pudge wars, but that is the kinda hook I'm after.



What do you think is the best approach in simulating this?


Should i save points a long the way?


Edit: Yes the bounce thing is a from pudge wars. And yes the length, not time, that is true!




No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...