lucymhdavies / egg-game

Live. Bounce. Die. Repeat.
https://labs.lmhd.me/egg
3 stars 0 forks source link

Make pupils move independently of eyeballs #13

Open lucymhdavies opened 5 years ago

lucymhdavies commented 5 years ago

This is already possible; they're separate sprites.

I did initially try moving the eyes in the direction of movement, but having them snap back to centred looked kinda weird.

If the eyes could move over the course of one or two frames, that might work better.

If there's something in the world the egg is moving towards, even when not in the bounce state, then the eyes could point towards that.

I don't think there's much benefit in keeping track of eye directions separately; having them  both point in the same direction would probably work fine.