Vexild / binding-of-darkness

Binding of Isaac clone
0 stars 0 forks source link

Shooting direction priority #5

Open Vexild opened 1 month ago

Vexild commented 1 month ago

When shooting, we should prioritize the Y axis and the latest shoot action.

For example, if we start shooting left, and keep shooting while pressing right, the shooting direction should change to right, as it's the latest shoot input action.

If, instead of right, we start shooting up, the direction changes to up as it is prioritized over X axis.

If we would shoot up, and then down, the direction follows the latest input direction which is down.

Vexild commented 1 month ago

For now, the latest input priority is a bit tricky. I'll come back to this during refining