Hardware Reference
In-Depth Information
column = 0
while column == 0:
column = pfio.read_input()
pygame.display.update()
if column == 1:
state = 1
elif column == 2:
state = 2
if state == 1:
menu_sound.stop()
runGame(isFirstGame)
isFirstGame = False
state = 0
prev_state = 1
elif state == 2 :
print 'Exit'
pygame.quit()
sys.exit()
Objective complete - mini debriefing
In this task, we completed the transfer of controls to make use of the arcade style butons.
We will now proceed to the next stage where we will discuss the game AI, marquee design,
and so on.
A brief description of the Connect
Four Game AI
In this task, we will discuss the general mechanism of the game. We will discuss the funcion
calls used, game flow, and a general idea of the game mechanism. It would be a good idea
to follow this code review along with the game code available in this project.
Prepare for lift off
We are building this arcade game based on the code from Making Games with Python
& Pygame by Al Sweigart ( http://inventwithpython.com/makinggames.pdf ).
This topic is an interesing read and it should enable us to build our own arcade game
(not necessarily the Connect Four game).
 
Search WWH ::




Custom Search