Skip to content

Instantly share code, notes, and snippets.

View krishna2808's full-sized avatar
:octocat:
krishna2808

Krishna kushvansi krishna2808

:octocat:
krishna2808
View GitHub Profile
@krishna2808
krishna2808 / snakeGame.py
Last active September 15, 2020 04:28
it is snake game ......this is my favorite game. because the first game i played was on the phone of kiped. I think that you will also have this favorite game
# ------------------------------------import module----------------------------------->
import random
import pygame
# --------------------------------------load-modules of pygame-------------------------->
pygame.init()
screen_height, screen_weight = 600, 400
dis = pygame.display.set_mode((screen_height, screen_weight))
pygame.display.set_caption('Snake game')
pygame.display.update()
# <------------------------------------color--> RGB(red,green,blue) all of zero tuple for black-------->
@krishna2808
krishna2808 / musicPlayer.py
Last active August 3, 2020 03:16
Music player software is a type of application software for playing computer audio files. you want to know what is import for making music player then you can know that (tkinter, pygame, and os modules) then easly create this project.
import os
from tkinter.filedialog import askdirectory
import pygame
from tkinter import *
root = Tk()
root.title("Music Player")
root.geometry('650x450+150+150')