solarus-games / children-of-solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/children-of-solarus
http://www.solarus-games.org
Other
37 stars 8 forks source link

Custom jump and sword combination #27

Closed Diarandor closed 8 years ago

Diarandor commented 8 years ago

I think Christopho agreed that we could use custom jump instead of the built-in one. And why not using the custom sword too? The aim is to allow attacks on the air. Since there may be some things to decide, I opened this issue. I plan to add the code for these items for the next month, if all of you agree. (The sword is already programmed, except for the collision part, which is the important thing to talk about here.)

Some unclear things:

1) I do not know which would be the best way to program the collisions with entities: enemies, crystals, destructibles that can be cut, etc. The goal is to keep compatibility, if possible, with all scripts of entities that can be hit by the custom sword, to avoid modifying code and keep things as simple as possible. There may be some non-trivial problems: for instance, I think there is no function to activate a crystal with a custom sword (using custom crystals may be an option).

2) We should choose some way to allow hitting flying or jumping enemies only if the hero is jumping. Also, if the hero is not jumping, he should not be able to hurt with the sword the enemies that are not jumping or flying. We should use the same functions and variables for all enemies to keep it simple. We can discuss that here too.

A video of the sword, that you might have seen before, is here: https://www.youtube.com/watch?v=REtiEtbxt_s&app=desktop

Diarandor commented 8 years ago

In the end, to avoid incompatibilities or breaking puzzles, I will do this only for the sample quest, and maybe for Mercuri's Chest or its free version if it is done someday. So I close this issue.