コード例 #1
0
def l1ll1lll_opy_():
    window = Window(l11l1_opy_(u"ࠫࡕࡵ࡫ࡦࠢࡷ࡬ࡪࠦࡄࡰࡶࡶࠫࢅ"), 500, 400)
    window.set_font_name(l11l1_opy_(u"ࠬࡧࡲࡪࡧ࡯ࠫࢆ"))
    window.set_font_size(64)
    window.set_font_color(l11l1_opy_(u"࠭ࡷࡩ࡫ࡷࡩࠬࢇ"))
    window.set_bg_color(l11l1_opy_(u"ࠧࡣ࡮ࡤࡧࡰ࠭࢈"))
    return window
コード例 #2
0
def main():

    window = Window('PARK', 1500, 800)
    window.set_auto_update(False)
    map = Map(window)
    #pass map to car
    map.play()
コード例 #3
0
def l11ll111l_opy_():
    window = Window(l1ll11_opy_ (u"ࠧࡉࡣࡦ࡯࡮ࡴࡧࠨऍ"), 600, 500)
    window.set_font_name(l1ll11_opy_ (u"ࠨࡥࡲࡹࡷ࡯ࡥࡳࡰࡨࡻࠬऎ"))
    window.set_font_size(18)
    window.set_font_color(l1ll11_opy_ (u"ࠩࡪࡶࡪ࡫࡮ࠨए"))
    window.set_bg_color(l1ll11_opy_ (u"ࠪࡦࡱࡧࡣ࡬ࠩऐ"))
    return window
コード例 #4
0
def l11l11l11_opy_():
    window = Window(l1ll1l_opy_(u"ࠬࡎࡡࡤ࡭࡬ࡲ࡬࠭व"), 600, 500)
    window.set_font_name(l1ll1l_opy_(u"࠭ࡣࡰࡷࡵ࡭ࡪࡸ࡮ࡦࡹࠪश"))
    window.set_font_size(18)
    window.set_font_color(l1ll1l_opy_(u"ࠧࡨࡴࡨࡩࡳ࠭ष"))
    window.set_bg_color(l1ll1l_opy_(u"ࠨࡤ࡯ࡥࡨࡱࠧस"))
    return window
コード例 #5
0
def create_window():
    window = Window('Hacking', 600, 500)
    window.set_font_name('couriernew')
    window.set_font_size(18)
    window.set_font_color('green')
    window.set_bg_color('black')   
    return window
コード例 #6
0
ファイル: Hacking7.py プロジェクト: rogergranada/MOOCs
def create_window():
    # Create a window for the game, open it and return it
    window = Window('Hacking', 600, 500)
    window.set_font_name('couriernew')
    window.set_font_size(18)
    window.set_font_color('green')
    window.set_bg_color('black')
    return window
コード例 #7
0
def create_window():
    # Create a window for the game, open it, and return it
    window = Window('Poke the Dots', 500, 400)
    window.set_font_name('ariel')
    window.set_font_size(64)
    window.set_font_color('white')
    window.set_bg_color('black')
    return window 
コード例 #8
0
ファイル: hacking7.py プロジェクト: justyna-t/hacking-game
def create_window():
    # Create a window for the game, open it and return it
    window = Window("Hacking", 600, 500)
    window.set_font_name("couriernew")
    window.set_font_size(18)
    window.set_font_color("green")
    window.set_bg_color("black")
    return window
コード例 #9
0
ファイル: poke3.py プロジェクト: justyna-t/poke-dots
def create_window():
    # Create a Window for the game, open it, and return it.

    window = Window("Poke the Dots", 500, 400)
    window.set_font_name('ariel')
    window.set_font_size(64)
    window.set_font_color('white')
    window.set_bg_color("black")
    return window
コード例 #10
0
 def __init__(self):
     self.window = Window('Poke the Dots', 500, 400)
     self._adjust_window()
     self.close_selected = False
     self.small_dot = Dot('red', 30, [0, 0], [1, 2], self.window)
     self.small_dot.generate_center()
     self.big_dot = Dot('blue', 40, [0, 0], [2, 1], self.window)
     self.big_dot.generate_center()
     self.clock = Clock()
コード例 #11
0
ファイル: Hacking6.py プロジェクト: rogergranada/MOOCs
def create_window():
    # create window with aspect ration of 6:5, black screen
    # and green letters, and small font-size
    window = Window('Hacking', 600, 500)
    window.set_font_name('couriernew')
    window.set_font_size(18)
    window.set_font_color('green')
    window.set_bg_color('black')
    return window
コード例 #12
0
 def __init__(self):
     self._window = Window('Poke the Dots', 500, 400)
     self._clock = Clock()
     self._frame_rate = 90
     self._close_selected = False
     self._small_dot = Dot('red', [200, 100], 20, [1, 2], self._window)
     self._small_dot.randomize()
     self._big_dot = Dot('blue', [200, 100], 40, [2, 1], self._window)
     self._big_dot.randomize()
     self._score = 0
     self._adjust_window()
コード例 #13
0
    def __init__(self):
        self._11l111_opy_ = Window(l11l1_opy_ (u"ࠪࡔࡴࡱࡥࠡࡶ࡫ࡩࠥࡊ࡯ࡵࡵࠪࡽ"), 500, 400)
        self._11llll_opy_()
        self._111ll_opy_ = 90
        self._111l1_opy_ = False
#        self._11l11l_opy_ = Clock()
        self._11l1ll_opy_ = l1l1ll_opy_(l11l1_opy_ (u"ࠫࡷ࡫ࡤࠨࡾ"), [50,75], 30, [1,2], self._11l111_opy_)
        self._1ll111_opy_ = l1l1ll_opy_(l11l1_opy_ (u"ࠬࡨ࡬ࡶࡧࠪࡿ"), [200,100], 40, [2,1], self._11l111_opy_)
        self._11l1ll_opy_.l1lllll1_opy_()
        self._1ll111_opy_.l1lllll1_opy_()
        self._11l1l_opy_ = 0
        self._11l1lll1_opy_ = True
コード例 #14
0
ファイル: Poke4.py プロジェクト: filippostmech/coursera-pvg
 def __init__(self):
     self._11l111_opy_ = Window(l11l1_opy_(u"ࠬࡖ࡯࡬ࡧࠣࡸ࡭࡫ࠠࡅࡱࡷࡷࠬࠏ"), 500, 400)
     self._11llll_opy_()
     self._111ll_opy_ = 90
     self._111l1_opy_ = False
     #        self._11l11l_opy_ = Clock()
     self._11l1ll_opy_ = l1l1ll_opy_(l11l1_opy_(u"࠭ࡲࡦࡦࠪࠐ"), [50, 75], 30,
                                     [1, 2], self._11l111_opy_)
     self._1ll111_opy_ = l1l1ll_opy_(l11l1_opy_(u"ࠧࡣ࡮ࡸࡩࠬࠑ"), [200, 100], 40,
                                     [2, 1], self._11l111_opy_)
     self._11l1ll_opy_.l1lllll1_opy_()
     self._1ll111_opy_.l1lllll1_opy_()
     self._11l1l_opy_ = 0
コード例 #15
0
    def __init__(self):

        self._window = Window('Poke the Dots', 500, 400)
        self._adjust_window()
        self._frame_rate = 90  # larger is faster game
        self._close_selected = False
        self._clock = Clock()
        self._small_dot = Dot('red', [50, 75], 30, [1, 2], self._window)
        self._big_dot = Dot('blue', [200, 100], 40, [2, 1], self._window)
        self._small_dot.randomize()
        self._big_dot.randomize()
        self._score = 0
        self._continue_game = True
コード例 #16
0
	def __init__(self):

		self.window=Window('Poke the Dots', 500, 400)
		self.adjust_window()
		self.close_selected=False
		self.small_dot=Dot(self.window, 'red', [50,50], 30, [1,2])
		self.big_dot=Dot(self.window, 'blue', [200,100], 40, [2,1])
		self.frame_rate=90
		self.clock=Clock()
		self.small_dot.randomize()
		self.big_dot.randomize()
		self.score=0
		self.continue_game=True
コード例 #17
0
def main():
    # create window
    window_width = 500
    window_height = 400
    window_title = 'Pong'
    window = Window(window_title, window_width, window_height)
    
    # create game object
    game = Game(window)
    
    # play the game
    game.play()
    
    # close the window
    window.close()
コード例 #18
0
def create_window():
    # this is user defined function creates the window
    # and returns the window
    title = 'Remember The Word'
    width = 500
    height = 400
    window = Window(title, width, height)
    return window
コード例 #19
0
    def __init__(self):
        # Initialize a Game.
        # - self is the Game to initialize
        self._frame_rate = 90  # larger is faster game
        self._close_selected = False
        self._score = 0

        # create and adjust window
        self._window = Window("Poke the Dots", 500, 400)
        self._adjust_window()

        # create dots
        self._small_dot = Dot("red", [50, 100], 30, [1, 2])
        self._big_dot = Dot("blue", [200, 100], 40, [2, 1])

        # randomize dots
        self._small_dot.randomize(self._window)
        self._big_dot.randomize(self._window)
コード例 #20
0
    def __init__(self):
        # Initialize a Game.
        # - self is the Game to initialize
        self._close_selected = False
        self._score = 0
        self._last_score = 0
        self._continue_game = True
        self._reset = False

        # create and adjust window
        self._window = Window("Poke the Dots", 500, 400)
        self._adjust_window()

        # create dots
        self._small_dot = Dot("red", [50, 100], 30, [1, 2])
        self._big_dot = Dot("blue", [200, 100], 40, [2, 1])

        # randomize dots
        self._small_dot.randomize(self._window)
        self._small_dot.randomize_second_dot(self._window, self._big_dot, 200)
コード例 #21
0
def create_window():
	# Create a window for the game and open it.
	window = Window("Word Presenter", WINDOW_SIZE[0], WINDOW_SIZE[1])
	window.clear()
	window.update()

	return window   
コード例 #22
0
ファイル: exampler4.py プロジェクト: usamah13/Python-games-
def main():

    window = Window('Exemplar Graphics 4', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
コード例 #23
0
def main():

    window = Window('Fox Bunny Chase', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
コード例 #24
0
ファイル: memory.py プロジェクト: cheungis/memory-game
def main():

    window = Window('Memory', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
コード例 #25
0
def display_icon(window, text_size, text_color):
    # function display the icon
    # -window uagame.Window object on which the icon is displayed
    icon_size = 100
    icon_color = 'purple'
    icon_string = 'UA'
    window.set_font_size(icon_size)
    window.set_font_color(icon_color)
    window_width = Window.get_width()
    icon_width = window.get_string_width(icon_string)
    x_icon = window_width - icon_width
    y_icon = 0
    window.draw_string(icon_string, x_icon, y_icon)
コード例 #26
0
ファイル: pong.py プロジェクト: HaochenGou/pong
def main():
   window_wide=500
   window_height=400
   window = Window('Pong', window_wide, window_height)
   window.set_auto_update(False)
   game = Game(window)
   game.play()
   window.close()
コード例 #27
0
def main():
    # Creates the game window and game, and runs game

    window = Window('Tic Tac Toe', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
コード例 #28
0
ファイル: pokev2.py プロジェクト: usamah13/Python-games-
def main():
    
    # Create our game window and game, then play
    # until a game end condition is met.
    window = Window('Poke the Dots', 500, 400)
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
コード例 #29
0
def main():
    # create window
    window = Window('Pong V3', 500, 400)

    # play game
    window.set_auto_update(False)
    game = Game(window)
    game.play()
    window.close()
コード例 #30
0
def main():

    # create window
    title = 'Remember the Word'
    width = 500
    height = 400
    window = Window(title, width, height)

    # display icon
    display_icon(window)

    # display instructions
    text_size = 24
    text_color = 'white'
    window.set_font_size(text_size)
    font_height = window.get_font_height()
    display_instrcutions(window, text_size, text_color, font_height)

    # clear window
    window.clear()
    # display the icon
    display_icon(window)

    # display words
    word_list = ['orange', 'chair', 'mouse', 'sandwich']
    correct_answer = word_list[3]
    start_letter = correct_answer[0]
    # FUNCTION CALL TO DISPLAY WORDS
    display_words(window, text_size, text_color, word_list)

    # get guess -  FUNCTION CALL
    guess = get_guess(window, text_size, text_color, start_letter)
    # clear window
    window.clear()
    # display the icon
    display_icon(window)
    # display results
    display_results(window, text_size, text_color, guess, correct_answer)
    # end game
    end_game(window)