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 |
Python 3 is the latest version of the Python programming language and was formally released on December 3rd, 2008. Use this tag along with the main python tag to denote programs that are meant to be run on a Python 3 interpreter only. Do not mix this tag with the python-2.x tag.
6
votes
2
answers
1k
views
Simple anagram game with names of colors
This is a very simple anagram game that plays only with names of colors.
I tried to focus on code design. I also wanted it to support further updates. But, my init seems smelly and you will notice …
3
votes
1
answer
1k
views
Object Composition
So I have this Pygame 3.3.2 code of 2 classes. I tried to make it as simpler as possible, but ofcourse to show the problems I have with thedesign.
import pygame
import sys
class MainWindow(object):
…
3
votes
"Multi-key" dictionary
My attempt, keep in my mind that I'm not close to any of pro's around here.
for i in range(1, 101):
if i < 15:
my_coins[i] = None
if 15 <= i < 30:
my_coins[i] = '1d6x1000 cp'
…
3
votes
1
answer
640
views
Verlet integration movement - doubt for on_key_press() methods
Based on my understanding of Verlet integration I tryed to use it over my Euler method to move my character in a 2D space.
I will put only the neccessery code, but if anything else is needed I will ed …
3
votes
1
answer
2k
views
Write and control Perlin noise for 1D
I'm reading this tutorial and it's the first time I try something this new.
Here is my attempt:
import sys
import math
import pygame
import random
pygame.init()
windowwidth, windowheight = 900, 500 …
4
votes
1
answer
231
views
Creating a game with rectangular shapes
I'm using Pygame to create a small game with few rectangle shapes. However, I want to learn more about classes, and I'm trying to use them. I'm very new to classes and inheritance, but I want to lea …