{"action":"opened","issue":{"url":"https://api.github.com/repos/frazzl3dazzl3/FraserVigrass/issues/1","repository_url":"https://api.github.com/repos/frazzl3dazzl3/FraserVigrass","labels_url":"https://api.github.com/repos/frazzl3dazzl3/FraserVigrass/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/frazzl3dazzl3/FraserVigrass/issues/1/comments","events_url":"https://api.github.com/repos/frazzl3dazzl3/FraserVigrass/issues/1/events","html_url":"https://github.com/frazzl3dazzl3/FraserVigrass/issues/1","id":135012651,"number":1,"title":"Issue with pygame. screen.blit error","user":{"login":"frazzl3dazzl3","id":11298512,"avatar_url":"https://avatars.githubusercontent.com/u/11298512?v=3","gravatar_id":"","url":"https://api.github.com/users/frazzl3dazzl3","html_url":"https://github.com/frazzl3dazzl3","followers_url":"https://api.github.com/users/frazzl3dazzl3/followers","following_url":"https://api.github.com/users/frazzl3dazzl3/following{/other_user}","gists_url":"https://api.github.com/users/frazzl3dazzl3/gists{/gist_id}","starred_url":"https://api.github.com/users/frazzl3dazzl3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frazzl3dazzl3/subscriptions","organizations_url":"https://api.github.com/users/frazzl3dazzl3/orgs","repos_url":"https://api.github.com/users/frazzl3dazzl3/repos","events_url":"https://api.github.com/users/frazzl3dazzl3/events{/privacy}","received_events_url":"https://api.github.com/users/frazzl3dazzl3/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-20T00:47:27Z","updated_at":"2016-02-20T00:47:27Z","closed_at":null,"body":"`\"\"\"Import pygame engine\"\"\"\r\n\"\"\"Draw assets on the screen\"\"\"\r\n\"\"\"Set attributes for all sprites (size, colour etc.)\"\"\"\r\n\"\"\"User input\"\"\"\r\n\"\"\"Movement\"\"\"\r\n\"\"\"Collision detection\"\"\"\r\n\"\"\"ADDITIONAL TASKS\"\"\"\r\n\"\"\"Menus\"\"\"\r\n\"\"\"Scoring system\"\"\"\r\n\"\"\"AI\"\"\"\r\n\r\nimport pygame,sys\r\nfrom pygame.locals import *\r\n#INITIALISING PYGAME\r\npygame.init()\r\n#FPS CLOCK\r\nFPS=60\r\nfpsclock = pygame.time.Clock()\r\n#SETTING UP WINDOW AND WINDOW CAPTION\r\nscreen=pygame.display.set_mode((600,400),0,32)\r\npygame.display.set_caption(\"PongV2\")\r\n\r\n#SET UP COLOURS\r\nBLACK = (  0,   0,   0)\r\nWHITE = (255, 255, 255)\r\nRED   = (255,   0,   0)\r\nGREEN = (  0, 255,   0)\r\nBLUE  = (  0,   0, 255)\r\n#SET UP SPRITES\r\nbackground = pygame.Surface(screen.get_size())\r\nbackground = background.convert()\r\nbackground.fill((250, 250, 250))\r\npygame.draw.rect(DISPLAYSURF, RED, (200, 150, 100, 50)\r\n#pygame.draw.rect(DISPLAYSURF, RED, (200, 150, 100, 50)\r\n#pygame.draw.rect(DISPLAYSURF, BLACK, (100, 100, 100, 100)\r\n#pygame.draw.circle(DISPLAYSURF, WHITE, (100, 175, 100, 100)\r\n#PLAER CONTROLLED SPRITES \r\n\r\n#ball = pygame.draw.circle(\r\n\r\nscreen.blit(background, (600,400))\r\npygame.display.flip()\r\n#MAIN GAME LOOP\r\nwhile True:\r\n    for event in pygame.event.get():\r\n        if event.type == QUIT:\r\n            quit\r\n\r\n        screen.blit(background, (600,400))\r\n        pygame.display.flip()\r\n        \r\n#UPDATES SCREEN/REFRESH\r\npygame.display.update()\r\nfps.tick(FPS)\r\n\r\n\r\n`"}}