コード例 #1
0
if __name__ == '__main__':
    import pygame
    import sys
    import datetime
    logat = str(datetime.datetime.now().time()) + '@' + 'APP: '
    print(logat + ': ' + 'Loading Rects Fight V1.5')
    sys.path.insert(0, './data')
    import game as g
    print('Starting')
    pygame.init()
    g.title()
    g.char_select()
    g.main()
    pygame.quit()
コード例 #2
0
ファイル: fighter.py プロジェクト: carlosrh18/Fie-Fighter
            import pygame
        except ModuleNotFoundError:
            print('X')
            print('Pygame is not installed! Installing...')
            subprocess.call(['py', '-m', 'pip', 'install', 'pygame'])
            print('Finished, continuing...')
            import pygame
    else:
        try:
            import pygame
        except ModuleNotFoundError:
            print('YOU ARE USING LINUX/MAC, PLEASE INSTALL PYGAME MANUALLY')
            time.sleep(3)
            sys.exit()

    # Import Game Module [Which Loads Sprites, Global, Media, etc.]
    sys.path.insert(0, './data')
    import game

    print('Done')

    #pygame.init()

    pygame.init()
    game.title_screen()
    game.mode_select()
    game.char_select()
    while game.globals.superloop:
        game.main()
    pygame.quit()