Skip to content

Instantly share code, notes, and snippets.

View ZIfeanyi's full-sized avatar
📞
Contact through discord: coderifeanyi#0834

Z_Ifeanyi ZIfeanyi

📞
Contact through discord: coderifeanyi#0834
View GitHub Profile
@ZIfeanyi
ZIfeanyi / game.py
Last active November 4, 2022 18:48
Basic Game in Python
import pygame as py
#import socket as sk
py.init()
py.font.init()
font = py.font.Font('freesansbold.ttf', 32)
screen = py.display.set_mode((0, 0), py.FULLSCREEN)
screen_width, screen_height = screen.get_size()
x, y, x_vel, y_vel = screen_width / 2 - 50, 0, 0, 1
@ZIfeanyi
ZIfeanyi / talk.py
Last active November 4, 2022 18:48
Speaking Text
from win32com.client import Dispatch
speak = Dispatch("SAPI.SpVoice").Speak
talk = input("Enter Speech: ")
speak(talk)