diff --git a/main.py b/main.py index ddb42ad..7d1f15a 100644 --- a/main.py +++ b/main.py @@ -1,16 +1,32 @@ +#Alpha, with Sarah Lasonia's edits! RasPi FTW! +#2012 -#test - -import pygame, random, time, player_info, moveable_dude +import pygame, random, time, player_info, moveable_dude, os # They forgot os -.- from pygame.locals import * +from random import randint + +randnum = randint(2,3) # 1 to 4, code is inclusive pygame.init() +if randnum == 1: # Sarah added randomised titles. + rand = "Oh no, not the Aliens!" + +if randnum == 2: # Sarah added randomised titles. + rand = "Spaaaccceee!" + +if randnum == 3: # Sarah added randomised titles. + rand = "Developed by the RasPi Community!" + +if randnum == 4: # Sarah added randomised titles. + rand = "Cheeseburgers are tasty." + screen = pygame.display.set_mode((640,480), 0) screensize = screen.get_size() center = [320,240] centership = [288,226] -pygame.display.set_caption("Raspithon Game") +pygame.display.set_caption("Raspithon Game | A collaborative Project | " + rand) # Sarah added randomised titles. +pygame.mouse.set_visible(False) # We don't want the mouse to block the way. font = pygame.font.Font(None, 32) @@ -33,7 +49,6 @@ pygame.mixer.init() # pygame.mixer.music.play(-1) As requested until we finish - #Display the ship player = player_info.Player(screen) alien = player_info.Alien(screen, clock) @@ -74,9 +89,9 @@ #On keypress keystate = pygame.key.get_pressed() - if keystate[pygame.K_RIGHT]: + if keystate[pygame.K_RIGHT]: # Key right player.turnRight() - if keystate[pygame.K_LEFT]: + if keystate[pygame.K_LEFT]: # Key Left player.turnLeft() if keystate[pygame.K_F12]: moveable_dude.initialiseDudes(900) @@ -84,4 +99,4 @@ pygame.quit() - \ No newline at end of file + diff --git a/player_info.pyc b/player_info.pyc index 15455f5..b0da108 100644 Binary files a/player_info.pyc and b/player_info.pyc differ