carenalgas / popochiu

Godot plugin to make point n' click games in a similar way to tools like Adventure Game Studio and Power Quest.
MIT License
159 stars 17 forks source link

Refs 145: walking on broken line encapsulated #148

Closed Whyshchuck closed 6 months ago

Whyshchuck commented 6 months ago

Following change updates https://github.com/carenalgas/popochiu/pull/146 in order to follow encapsulation rules.

_play_walk and face_direction had been wrapped into take_turn public function which can be freely called buy the room script.

mapedorr commented 6 months ago

I understand the purpose of the function, but I'm curious about its name. Why take_turn?

Whyshchuck commented 6 months ago

I understand the purpose of the function, but I'm curious about its name. Why take_turn?

Because it's called every time character takes turn while walking