deepnight / gameBase

Base structure for my games, using Heaps framework and Haxe language.
https://deepnight.net
MIT License
614 stars 152 forks source link

Could there be more documentation #105

Closed yz-xlame closed 10 months ago

yz-xlame commented 10 months ago

How to handle animation and keyboard binding? I see the registration animation and I see the keyboard mapping, but how are they related? I'm trying to modify the movement animations, but I don't know how they bind the keys or handle the mapping relationships, I have 4 directions, I'm trying to read from tenjusu but I can't find the answer

yz-xlame commented 10 months ago

use state? registerStateAnim set anim, player anim when condition return true? condition control anim...... I still think having a document would help me more