pjasicek / OpenClaw

Reimplementation of Captain Claw (1997) platformer
GNU General Public License v3.0
344 stars 40 forks source link

[Level 3] Implement Rope logic #40

Closed pjasicek closed 7 years ago

pjasicek commented 7 years ago

Claw should be able to attach to existing ropes. Ropes should dangle back and forth left-right-left-right with predefined speed.

pjasicek commented 7 years ago

Foundation was based in 41ab33732983b582d22e8141c498a28f1d4a0867

What is left:

1) Shifting the end of the rope with each frame to its appropriate position 2) Attaching Claw to the end of the rope when he jumps there - Claw is going to need a new sensor - RopeSensor which will be somewhere in the middle of his body which will be used to detect collisions with the ends of the rope. 3) Moving Claw along with the rope as its flaying along with changing Claw's directino once rope start flaying in opposite direction.

pjasicek commented 7 years ago

Core logic is done. Now I have to go through all 120 Rope's animation frames and pinpoint each frame's rope end pixel offset with regards to its origin.

pjasicek commented 7 years ago

Should be implemented with 1c8b4127105e31b16beeb4016fa8af67f3690433