![]() |
2010-05-29
, 17:10
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#2
|
Taking a look at how to develop in python, I've relised the similarity to python and the Game Maker Language. Take a look at a simple equasion.
Py:
GML:Code:c=2*6 #Set the varable "c" to equal the sum of 2*6 print "What is 2*6?" #Ask the question a=input("")# Input number if a==c: #check if were right print "correct!" #If correct then display elif a!=c: # If it wasn't equal to "c" print "incorrect!" #If incorrect then display
Create event: run only once
Step event: for continus cyclesCode://Set varables c= 2*6//Set the varable "c" to equal the sum of 2*6 a=0//Create a varable called "a"
Very similar, to believe I've known how to code in a GUI "version" of python for a couple of years now. Right off to make some apps!Code:show_message(string("What is 2*6?")) //Ask the question get_string("What is the answer?",a) // Input number if a=c //check if were right show_message("correct!") //If correct then display else // If it wasn't equal to "c" show_message("incorrect!") //If incorrect then display
![]() |
2010-05-29
, 17:42
|
Posts: 118 |
Thanked: 31 times |
Joined on Feb 2010
|
#3
|
dont forget to have a look at Pygame
it has full SDL 3d support
http://www.pygame.org/news.html
Py:
Create event: run only once