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, 2019 in Python by Bob
602 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, 2019 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, 2019 in Python by Faiza
1,696 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 aryya
• 7,450 points
591 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, 2019 in Python by Faiza
16,049 views
0 votes
2 answers
+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 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,056 views
0 votes
1 answer
+5 votes
6 answers

Lowercase in Python

You can simply the built-in function in ...READ MORE

answered Apr 11, 2018 in Python by hemant
• 5,790 points
3,476 views
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 6, 2019 in Python by Travis
2,954 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP