tyt2y3 / F.LF

F.LF attempts a clean room implementation of the famous fighter game LF2.
tyt2y3.github.io/LFrelease
33 stars 11 forks source link

Throwing #8

Open YinYin-Falcon opened 11 years ago

YinYin-Falcon commented 11 years ago

Throwing anything in LF2 (character/item) does not only happen while holding left/right and pressing attack but also when holding up/down and pressing attack.

tyt2y3 commented 11 years ago

well noted. and I am currently working on the count-down-release of catch. stay tuned for these fix.

tyt2y3 commented 11 years ago

fixing in commit https://github.com/tyt2y3/F.LF/commit/6f2c7dba0556a1040d42d8a5fc96b909dbae5395 check it out and let me know

tyt2y3 commented 11 years ago

fixed by https://github.com/tyt2y3/F.LF/commit/6f2c7dba0556a1040d42d8a5fc96b909dbae5395#L0R505

YinYin-Falcon commented 11 years ago

Eh - I only know how to test the nightly build and I wouldn't know from the change whether that did it or not.

tyt2y3 commented 11 years ago

it is now pushed to latest demo I mentioned that particular line of fix, may be you can have some idea on how it works $.con.state.up, $.con.state.down, $.con.state.left, $.con.state.right indicate whether the four directional keys are being pressed down, $.con.state.up !== $.con.state.down; means no key conflict (cannot press both at the same time) cpoint.taction is the particular throw action defined in LF2. hope it helps

YinYin-Falcon commented 11 years ago

Ah okay - throwing an opponent by holding just up or down works I see. However I cannot manage to throw forward anymore - the character always turns.

tyt2y3 commented 11 years ago

the turning behavior is defined in data file by a negative cpoint.taction in my implementation, in such case, it always turn around. may be this is not compatible with LF2, let me try try then. https://github.com/tyt2y3/F.LF/blob/master/character.js#L509