Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Pygame is a portable Python package for video games, built on SDL.
2
votes
Pygame snake as first game
This isn't really todo with the code, but, it's always a good idea to add comments to your code to make it more readable and understandable.
4
votes
1
answer
61
views
Advice on path-finding visualisation program
Github code - https://github.com/James-Charles-Robinson/Path-Finding-Visualisation-with-Pygame
Code
import pygame
import random
# class for the gui of the application
class Gui():
def __init__( … self.placingWalls = False
self.removingWalls = False
self.animationSpeed = 10
self.coords.maze = [[0 for x in range(self.gridSize)] for x in range(self.gridSize)]
# start pygame …