Snake head placed on the center - Python using turtle

0 votes
I'm trying to build the basic snake game using the python's turtle module. I want my snakehead to be placed at the center initially. How do I get that done?
Jun 21 in Python by Bob
55 views

1 answer to this question.

0 votes
You can use turtle's goto() function. This function makes sure that the object(in this case, snake's head) you've placed on the window starts at the center(0,0).
answered Jun 21 by Greg

Related Questions In Python

0 votes
1 answer

Change the snake head color using python turtle

You can et the snakehead color by ...READ MORE

answered Jun 19 in Python by Faiza
30 views
0 votes
1 answer

How can I rename files on the fly using Python?

You could simply use a wrapper object ...READ MORE

answered Sep 7, 2018 in Python by ariaholic
• 7,340 points
48 views
0 votes
1 answer

Change the window background color using turtle - python

Try this: import turtle #set up the screen wn = ...READ MORE

answered Jun 19 in Python by Faiza
519 views
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 6 in Python by Neha
• 330 points

edited Jul 8 by Kalgi 280 views
+4 votes
6 answers
0 votes
1 answer
0 votes
1 answer

Move turtle using the arrow keys in Python

You can use something like this: wn.onkey(move_up, 'Up') wn.onkey(move_left, ...READ MORE

answered Jul 5 in Python by Travis
134 views