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
38 stars 8 forks source link

Code pushing features for custom shield and enemies #55

Closed Diarandor closed 6 years ago

Diarandor commented 6 years ago

I propose these functions and parameters. This list may be modified in the future.

enemy:get/set_pushed_back_by_shield() enemy:get/set_pushed_back_by_shield_properties(table) enemy:get/set_push_hero_on_shield() enemy:get/set_push_hero_on_shield_properties(table)

enemy:is_being_pushed_by_shield() hero:is_being_pushed_on_shield() enemy/hero:push(table)

Variables in tables of properties: -distance -speed -behavior (function or string) -sound

Diarandor commented 6 years ago

This was done in the last commit, yesterday.