bsergent / overmorrow

Typescript canvas game engine
http://challengercity.com/v4/projects/overmorrow/
0 stars 1 forks source link

Entity action animations #36

Open bsergent opened 6 years ago

bsergent commented 6 years ago

Animations for actions such as attacks, rolls, interactions, etc.

bsergent commented 6 years ago

The animation should also pause for a couple of frames on weapon contact, to imply a harder, more forceful hit.

bsergent commented 5 years ago

Since items will need to track to the player's hands, should some sort of editor be implemented for mapping? Two other possibilities include: manually setting locations and rotations via a JSON file or including another layer in Aseprite that acts as location and rotation mapping. For the second, maybe there is a single pixel at the contact point who's red value determines rotation for the right hand and another who's green value determines rotation for the left hand. That could then be dereferenced through the AnimationSheet class. Could the image and the mapping be included in the same file? The hands will need to be drawn separately anyways, so really layer support would be very beneficial.