Skip to main content

Posts

Showing posts from October, 2019

Python game with pygame

                      python games using pygame.  Python has become more and more used by web and software programmers. Work without play makes Jack a ----Blah! Blah! Blah!! Really you're not Jack, so? New on python and you just want to get your hands on some cool python games for free! well, here are few you can try yourself!, modify them if you want!      Already, i believe you have installed  python and the necessary modules for kick start if not check you should start from there.For now  pygame if you need help check here. Use pip on your command prompt(pip install pygame) Hoping you're all set. Then let's get it! For wormy game here is the code import random, pygame, sys from pygame.locals import * FPS = 15 WINDOWWIDTH = 640 WINDOWHEIGHT = 480 CELLSIZE = 20 assert WINDOWWIDTH % CELLSIZE == 0, "Window width must be a multiple of cell size." assert WINDOWHEIG...