Exemplo n.º 1
0
Arquivo: game.py Projeto: v/blockade
from board import Board
from token import Token
from constants import * 
from PySFML import sf
import math, os, sys

window = sf.RenderWindow(sf.VideoMode(win_width, win_height), "Blackode")
InputHandler = window.GetInput()


bcircle = Token('circle', blue)
bcircle.set_center(150, win_height/2)
rcircle = Token('circle', red)
rcircle.set_center(win_width - 150, win_height/2)

b = Board(bcircle, rcircle)
running = True

tokens = []

lx = 250
rx = win_width - lx

for i in range(num_cols - 1):
	y = 100 + (i * box_height * 2)	

	token = Token('rect', blue)
	token.shape.SetPosition(lx , y)

	tokens.append(token)