Python Forum
[PyGame] Snake controls not working
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Snake controls not working
#2
You have a few errors
line 38 should be pygame.quit()
line 49, 51, 53, 55 should be changeTo
line 63, 65, 67 should be = not ==

Just to let you know pygame has builtin colors. all your def colors are builtin.
pygame.Color('red')
Builtin colors describe here
99 percent of computer problems exists between chair and keyboard.
Reply


Messages In This Thread
Snake controls not working - by jakegold98 - Dec-11-2017, 06:00 PM
RE: Snake controls not working - by Windspar - Dec-11-2017, 08:50 PM
RE: Snake controls not working - by metulburr - Dec-11-2017, 09:02 PM
RE: Snake controls not working - by jakegold98 - Dec-11-2017, 10:17 PM
RE: Snake controls not working - by metulburr - Dec-11-2017, 10:26 PM
RE: Snake controls not working - by Windspar - Dec-12-2017, 01:45 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to add segments to the snake body blacklight 1 2,932 Sep-13-2023, 07:33 AM
Last Post: angelabarrios
  [PyGame] Snake game: how to get an instance for my snake's body multiple times? hajebazil 2 2,189 Jan-30-2022, 04:58 AM
Last Post: hajebazil
  help with snake game blacklight 3 2,637 Jul-30-2020, 01:13 AM
Last Post: nilamo
  [PyGame] Terrible Sprite controls, need help. michael1789 16 5,485 Dec-18-2019, 10:32 PM
Last Post: michael1789
  Snake Game - obstacle problem Samira 3 5,691 Oct-31-2019, 02:58 PM
Last Post: Samira
  [PyGame] Made my first Python program: Snake. Please help me improve it andrerocha1998 7 6,252 Feb-19-2019, 07:08 PM
Last Post: Windspar
  Creating Snake game in Turtle Shadower 1 8,675 Feb-11-2019, 07:00 PM
Last Post: woooee
  [PyGame] Basic Snake game (using OOP) PyAlex 1 12,594 Sep-10-2018, 09:02 PM
Last Post: Mekire
  [PyGame] Snake not changing directions in Snake Game Bjdamaster 4 4,996 Aug-13-2018, 05:09 AM
Last Post: Bjdamaster

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020