Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement smooth movement. #4

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Implement smooth movement. #4

wants to merge 1 commit into from

Conversation

ceranco
Copy link
Owner

@ceranco ceranco commented Nov 16, 2019

This PR adds smooth movement to the game as per #3.

@ceranco ceranco self-assigned this Nov 16, 2019
@ceranco ceranco changed the title Implemented basic smooth movement (kind of...). Implement smooth movement. Nov 16, 2019
@ceranco
Copy link
Owner Author

ceranco commented Nov 16, 2019

So funny story,
I thought this would be a breeze to implement, but after making an initial effort it turns out that making a retro fixed-axis game like snake move 'smoothly' makes it feel really janky and is pretty non-trivial when using a simple sprite-sheet like I am 😞

I think that way to fix all the jankiness is to wait until there is animation. This will enable making gradual turns and emphasizing where on the grid the snake is even if the movement isn't tied to the update interval.

snake

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant