#
#   spaceWar.py
#   Eoghan Conlon O'Neill, Bealtaine 2017
#

print "This is a prototype which will probably be rewritten in Rust or C++"

import pygame, sys
from pygame.locals import *

pygame.init()

# set up the window
DISPLAYSURF = pygame.display.set_mode((700, 700))
pygame.display.set_caption('SpaceWar!')

# set up the colors
BLACK = ( 0, 0, 0)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = ( 0, 255, 0)
BLUE = ( 0, 0, 255)

# draw on the surface object
DISPLAYSURF.fill(BLACK)

#pygame.draw.circle(DISPLAYSURF, BLUE, (300, 50), 20, 0)


pixObj = pygame.PixelArray(DISPLAYSURF)
pixObj[480][380] = WHITE
pixObj[482][382] = WHITE
pixObj[484][384] = BLACK
pixObj[486][386] = BLACK
pixObj[488][388] = BLACK
del pixObj

while True: # main game loop
    for event in pygame.event.get():
        if event.type == QUIT:
            pygame.quit()
            sys.exit()
        pygame.display.update()


"""
# Initial values
# [A_x, A_y, A_vx, A_vy, A_ax, A_ay, A_mass]
shipA = [300,300,0,0,0,0,150e3]
shipB = [600,600,0,0,0,0,150e3]
star  = [500,500,0,0,0,0,2e30]
"""
