This is a technic question, I paused the game dev for myself, because i think i must learn Python at least 70% to then introduce Panda.
Now, i have a basic knowledge of Python, e.x : while, if, elif, else, print, raw_input, int, float, strings, for, def…etc. etc. from ¨Introduccion a la programacion con Python¨ a spanish book.
In game development, what are the most internal commands do you use to program (not API)?.
This is the way that i imagine programing a game :
def startgame():
import gameinit # External module goes directly to game.
def sectionmenu():
print "Select your model"
print "1 - Blue Ship"
print "2 - Red Ship"
option = int(raw_input("Select: "))
if option == 1:
model = loader.loadModel("models/blue_ship")
print "Select the size of your ship"
print "H - Huge"
print "S - Small"
size = raw_input("Size: ")
if size == "H":
model.setScale(5,5,5)
model.reparentTo(render)
startgame()
elif size == "S":
model.setScale(1,1,1)
startgame()
elif option == 2:
model = loader.loadModel("models/red_ship")
print "Select the size of your ship"
print "H - Huge"
print "S - Small"
size = raw_input("Size: ")
if size == "H":
model.setScale(5,5,5)
model.reparentTo(render)
startgame()
elif size == "S":
model.setScale(1,1,1)
model.reparentTo(render)
startgame()
sectionmenu()
That is what i has been studying, i do programs like this way (python programs without gui), but … is the same way for games?, i know that raw_input() does not work with engines… just tried and it does not ask nothing…