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

Snake doesn't move smootly #22

Open
RowanHarley opened this issue Apr 21, 2016 · 17 comments
Open

Snake doesn't move smootly #22

RowanHarley opened this issue Apr 21, 2016 · 17 comments
Labels

Comments

@RowanHarley
Copy link

RowanHarley commented Apr 21, 2016

Whenever I go to play a game my snake doesn't move very well and no food comes up. Don't know if this is just me or something. Here's a screenshot:
screenshot 1
The snake just continues to move like this. If you look in the bottom right as well, you can see that it says I'm off the map.I also get this in the console:
screenshot 2
I have a feeling this may have something to do with pos = math.randomSpawnPoint() in src/snake.coffee

@iiegor iiegor added the bug label Apr 21, 2016
@iiegor
Copy link
Owner

iiegor commented Apr 21, 2016

I think this is due to a bad calculation of the snake direction or position. Although I'm aware of this, I'll keep this open for anyone who wants to share anything related with this or a possible solution.

@RowanHarley
Copy link
Author

Is this just a bug with my computer or is this a bug with the code

@Octolus
Copy link

Octolus commented Apr 21, 2016

@iiegor i can't even run it, my snake is completely stuck

@RowanHarley
Copy link
Author

As much as I'd love to help try fix this bug, I know nothing about coffeescript or game re-programming

@Qasimmodo
Copy link

It's a bug within the code, the project isn't finished yet...

@morenja
Copy link

morenja commented Apr 25, 2016

me too have that problem.

@iiegor
Copy link
Owner

iiegor commented Apr 25, 2016

The commit 323d95e fixes this, although, I will keep this open because the way was fixed is not the correct.

@RowanHarley
Copy link
Author

Ok @iiegor just tested it and that bug is almost gone! The only time it doesn't move smoothly is when I try go around in circles. Also playing it, I don't see any food to eat

@RowanHarley
Copy link
Author

The snake can't speed up as well, even though it says it in the console

@iiegor
Copy link
Owner

iiegor commented Apr 25, 2016

@RowanHarley yes, in the latest release I temporarily removed food spawning due to big performance issues and incorrect spawn positions. Features like the speed boost can't be developed right now since the basic movement of the snake isn't done yet.

@RowanHarley
Copy link
Author

ok just thought that was a bug that came up because of a file changed

@Qasimmodo
Copy link

I believe it has been resolved now, but as @iiegor said the speed-boost and pellets will not be implemented yet, because they're not at that stage.

@RowanHarley
Copy link
Author

Dont think I'll close this though as its still a bit buggy when trying to do circles

@vancourt
Copy link

how to connect using slitherio website?

@RowanHarley
Copy link
Author

@vancourt hold Ctrl+Shift+J then type sos = [{ ip: "localhost", po: 443, ac: 34, ptm: 121 }]

@RowanHarley
Copy link
Author

And by the way this really isn't the place to ask that. If you have a problem you should create an issue

@TicketX
Copy link

TicketX commented May 3, 2016

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

No branches or pull requests

7 participants