Posts

Showing posts with the label GAME

Python Simple Snake Game Project

Image
Hello all,               one of my friend need Python  project so i googled it and find a good one so you can copy it and Enjoy it.. You need 2 things... 1. IDE 2.  import pygame () import pygame, random, sys from pygame.locals import * #AllTRICKS CO LTD def collide(x1, x2, y1, y2, w1, w2, h1, h2): if x1 + w1 > x2 and x1 < x2 + w2 and y1 + h1 > y2 and y1 < y2 + h2: return True     else: return False def die(screen, score): f = pygame.font.SysFont('Arial', 30); t = f.render('Your score was: ' + str(score), True, (0, 0, 0)); screen.blit(t, (10, 270)); pygame.display.update(); pygame.time.wait(2000); sys.exit(0) xs = [290, 290, 290, 290, 290]; ys = [290, 270, 250, 230, 210]; dirs = 0; score = 0; applepos = (random.randint(0, 590), random.randint(0, 590)); pygame.init(); s = pygame.display.set_mode((600, 600)); pygame.display.set_caption('Snake'); appleimage = pygame.Surface((10, 10)); appleimage.fill((0, 255...

Counter Strike Some Important Console Commands

Image
1-Client Side Commands: ah 1 Toggles Auto-Help (gives player hint messages throught the game) - Setting of 1 = 'on', and 0 = 'off'. cl_observercrosshair 1 Set to '1' to enable crosshairs in Observer mode, '0' to disable. dm 1 Toggles displaying of map briefings after loading a new map - Setting of 1 = 'on', and 0 = 'off' cl_hidefrags 0 Toggles hiding everyone else's scores except your own - Setting of 1 = 'on', and 0 = 'off' drawradar This turns the radar on fastsprites 0 Sets the complexity of the smoke sprites for the smoke grenade - The range is 0-2, with 0 looking the most like actual smoke hideradar This turns the radar off hud_centerid 0 Toggles the centering of the auto-ID text - Setting of 1 = 'on', and 0 = 'off' lefthand 0 Toggles the use of holding weapons in left hand - Setting of 1 = 'on', and 0 = 'off' listmaps Lists the maps available on the server that t...