Experimental RTS/Space sim Collaborative Coding Project.
The goal is to design a game with structure/settings/balance of Starcraft and scale of Eve Online(i.e. huge space battles, space empires,etc).
Though this wouldn't stop anyone from contributing code/feedback/criticism, i'll be coordinating the project.
All code/ideas should be posted in this and subsequent threads which i'll start as needed.
step #1: We will collaboratively create a name for our project.
Each suggestion must explain why this name fits the project and why its better then any other generic name.
#
# Velox et Astrum
# version 0.202
#
# version 0.202 includes:
# - rudimentary save/load capabilities using *.dat file.
# customizable savefile name for simultaneous games.
# - advanced unit training
# - extended asteroidal mining capabilities
# - moving command display to separate 'help' command, in order to facilitate command expansion
# without degrading the user interface
# - the introduction of 'civilian' units
# - reduction of bloat within 'random' calls
# - addition of 'quit' command
#
from random import randint, randrange
matrices = 700
militaryunits = 3
productionunits = 2
civilians = 1000
roid = ['KLYGZOFTSKY', 'AENTORGIAN', 'FENGLIFTOG', 'ORTESTRIAN', 'HAGROSCOR', 'DENQUIG']
print"+"*25+'\n| Velox et Astrum |\n| V 0.202 |\n'+'+'*25
print'You got',str(militaryunits),'military units,',str(productionunits),'production units',str(civilians),'civilains, and',str(matrices),'elemental matrices.'
print'What do you do?'
done = 0
while not done:
c = raw_input('[H]elp is available.\n>>').lower()
if c=='a':
print'PEW PEW PEW'
elif c=='m':
print'you travel many days and nights'
if randrange(5)==4:
print'AMBUSH OH SHIT'
c = raw_input('[R]un or [G]un!?!?\n?')
if c=='r':
print'you didn\'t get away fast enough'
elif c=='g':
print'you don\'t have a gun'
else:
print'you didn\'t act fast enough'
print'you fucking lose'
done = 1
elif c=='b':
if matrices != 'sufficient elemental matrices':
print'. . . INSUFFICIENT ELEMENTAL MATRICES'
if randrange(2)==0:
print'You ignorantly allocated elemental matrices for building. They\'re now gone.'
matrices = 0
elif c=='q':
rmat = randint(1234,5678)
matrices = matrices + rmat
print'you\'ve mined',str(rmat),'elemental matrices from some '+roid[randint(0,len(roid)-1)]+'-class maxteroids.'
print'you\'ve got',str(matrices),'elemental matrices.'
elif c=='t':
if randrange(6)==2:
civilians = civilians - 1
militaryunits = militaryunits+1
print'you have trained 1 extra military unit.'
elif randrange(7)==2:
civilians = civilians - 1
productionunits = productionunits + 1
print'you have trained 1 extra production unit.'
else:
print'your hamfisted attempts at training local aliens to serve you has FAILED!'
if randrange(5)==0:
print'the cretinous beast destroyed many matrices and killed many men'
matrices = 0
if civilians > 0:
civilians = civilians - randint(10,50)
else:
'the beast makes its home in the ruins of your former civilian population. this bothers your troops.'
elif c=='s':
print'#'*25
print'You have',militaryunits,'miliary units.'
print'You have',productionunits,'production units.'
print'You have',civilians,'civilians in your care.'
print'You have',matrices,'matrices.'
print'You don\'t have anywhere to build anything!'
print'#'*25
elif c=='h':
print'#'*34
print"'A' is used to attack\n'M' is used to move\n'Q' is used to mine elemental matrices"
print"'T' is used to train miliary units\n'S' is used to view player statistics\n'B' is used to build structures."
print"\n'Save' is used to save a file.\n'Load' is used to load a saved game."
print"'Quit' is used to quit the game and close the program."
print'#'*34
elif c=='load':
filename = raw_input('name of savefile: ')
savefile = open(filename+'.dat', 'r').read()
matrices,militaryunits,productionunits,civilians = savefile.split("|")
int(matrices)
int(militaryunits)
int(productionunits)
int(civilians)
elif c=='save':
filename = raw_input('filename to save as: ')
savefile = open(filename+'.dat', 'w')
savefile.write(str(matrices)+"|"+str(militaryunits)+"|"+str(productionunits)+"|"+str(civilians))
savefile.close()
elif c=='quit':
print "-"*10+"Goodbye!"+"-"*10
done = 1