Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #9: Added projectile logic to Henry and Rudolf #16

Merged
merged 3 commits into from
May 26, 2021

Conversation

oliver-cool-beans
Copy link
Contributor

@oliver-cool-beans oliver-cool-beans commented May 26, 2021

Fix for issue: #9
Added projectile logic to Henry and Rudolfs special attacks.

  • Added global variable array that contains special attacks that are projectiles
  • Added logic to special attacks, to skip setting mass to 0, if the id exists in the above array.

This PR has an accompanying PR in LF2_19
Project-F/LF2_19#2

projectile_falloff

@tyt2y3
Copy link
Contributor

tyt2y3 commented May 26, 2021

Thank you so much for your contribution!
By the way, is there actually some special effects when the arrows fall onto the ground in original LF2?

@oliver-cool-beans
Copy link
Contributor Author

Not a problem, what a great project!

There are no special effects when the arrows/shurikens fall on the ground.
But now that you mention it, I've forgotten to replicate the rebound effect when these projects hit another character.
The projectiles now just chain through enemy's when colliding. Which makes them very overpowered!
These should behave like the regular weapons do.

I found this video which shows gameplay of both the characters (having problems installing original lf2 on my machine)
https://www.youtube.com/watch?v=Mi-Ly83Zgy8

@oliver-cool-beans
Copy link
Contributor Author

@tyt2y3 I've managed to add in the falloff for the projectiles. updated the GIF to show this.
Arrows now break and fall off like the original game.
Shurikens just fall off.

Let me know if there is a better way to do this.

@tyt2y3
Copy link
Contributor

tyt2y3 commented May 26, 2021

wow. what a quick turnover. side question, how did you capture the GIF? interesting

@oliver-cool-beans
Copy link
Contributor Author

I find it easier to submit GIF's as it's easier to see what's going on.
https://www.screentogif.com/

@tyt2y3
Copy link
Contributor

tyt2y3 commented May 26, 2021

Nice work. I guess you now understand more of the core logic than I do!

@tyt2y3 tyt2y3 merged commit e5a2fbf into Project-F:master May 26, 2021
@tyt2y3
Copy link
Contributor

tyt2y3 commented May 26, 2021

So do you think Henry and Rudolf now works as intended??

@oliver-cool-beans
Copy link
Contributor Author

The basic attacks do.
But i noticed an issue with Rudolfs special ability where he duplicates himself.
This is broken. Will need to spawn 2 more rudolfs and apply some basic AI to the clones.
Clones would also need to have a smaller health pool. (not sure the exact numbers)

Will raise an issue about this

@tyt2y3
Copy link
Contributor

tyt2y3 commented May 27, 2021

Thank you so much. This project was started like 10 years ago when I was still an undergrad.

I am glad people still find this interesting today.
Anyway, I actually had a plan, is that after we fully supports the 10 main characters (Deep, John, Louis, Firen, Freeze, Rudulf, Henry, Dennis, Woody, Davis),
I will call it 1.0.0.
Well I guess we are one step closer to it!

Yeah the 'spawn 2 more rudolfs' part is the most difficult. We have had some basic AI inplace, but its behavior is no where like 'Rudolf'. The 'dumbass' AI only knows melee attacks.

If you have some free time, perhaps we can work together towards that 1.0.0 goal 🏆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants