5/8/26

so i started to make a snake game and like im not fully done because i just started

from tkinter import*
import random
GAME_WIDTH = 700
GAME_HEIGHT = 700
SPEED = 50
SPACE_SIZE = 50
BODY_PARTS = 3
SNAKE_COLOR ="#00FF00"
FOOD_COLOR = "FF0000"
BACKGROUND_COLOR = "#000000"
class snake:
    pass

class food:
    pass

def next_turn():
    pass

def change_direction(new direction):
    pass

def check_collisions():
    pass

def game_over():
    pass
window = Tk()
window.title("Snake game")
window.resizable(False, False)
score = 0
direction = 'down'
label = Label(window, text="Score:{}".format(score), font=('consolas',40 ))
label.pack()
canvas = Canvas(window, bg=BACKGROUND_COLOR, height=GAME_HEIGHT, width=GAME_WIDTH)
window.mainloop()

yes

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top