Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bridge.py
blob: 76daffcc771eb5b79b68f40d7c1609c4056a8d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pygame

def create_world(game):
    rect = pygame.Rect((0,800), (350, -250))
    rect.normalize()
    pygame.draw.rect(game.screen, (100,180,255), rect, 3)
    game.world.add.rect(rect.center, rect.width / 2, rect.height / 2,
        dynamic=False)
    rect = pygame.Rect((1200,800), (-350, -250))
    rect.normalize()
    pygame.draw.rect(game.screen, (100,180,255), rect, 3)
    game.world.add.rect(rect.center, rect.width / 2, rect.height / 2,
        dynamic=False)